ReadConsole PROC   (MS-Windows)

   Reads character input from the console input buffer and removes it from the buffer.
   Similar to ReadFile but it can read in either Unicode (wide-character) or ANSI mode.


ReadConsole PROTO,
    handle:DWORD,                     ; input handle
    lpBuffer:PTR BYTE,                ; pointer to buffer
    nNumberOfCharsToRead:DWORD,       ; number of chars to read
    lpNumberOfCharsRead:PTR DWORD,    ; number of chars read
    lpReserved:PTR DWORD              ; 0 (not used - reserved)

Returns: (BOOL) EAX = TRUE (non-zero) if successful,
                      FALSE (zero) if fails.

Argument Win Type MASM Type Description
handle HANDLE DWORD  Handle to the console input buffer.
 The handle must have GENERIC_READ access.
lpBuffer LPVOID PTR BYTE  Pointer to the buffer that receives the data from the console input buffer.
nNumberOfCharsToRead DWORD DWORD  The number of characters to read.
 Must be at least nNumberOfCharsToRead * SIZEOF TCHAR (characters may be 2-byte Unicode).
lpNumberOfCharsRead LPDWORD PTR DWORD  Pointer to a DWORD that receives the number of characters read.
lpReserved LPVOID PTR DWORD  Reserved, must be NULL.

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)