WriteConsole PROC   (MS-Windows)

   Writes a character string to a console screen buffer beginning at the current cursor location and advances the cursor position as the characters are written.
   It acts upon standard ASCII control characters such as tab, carriage return, and line feed, but does not support ANSI escape sequences.
   Writes in either Unicode (wide-character) or ANSI mode.


WriteConsole PROTO,                   ; write a buffer to the console
    handle:DWORD,                     ; output handle
    lpBuffer:PTR BYTE,                ; pointer to buffer
    nNumberOfCharsToWrite:DWORD,      ; size of buffer
    lpNumberOfCharsWritten:PTR DWORD, ; number of chars written
    lpReserved:PTR DWORD              ; 0 (not used)

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 screen buffer to be written.
 The handle must have GENERIC_WRITE access.
lpBuffer CONST VOID PTR BYTE  Pointer to a buffer that contains characters to be written to the screen buffer.
nNumberOfCharsToWrite DWORD DWORD  The number of characters to write.
lpNumberOfCharsWritten LPDWORD PTR DWORD  Pointer to a DWORD that receives the number of characters written.
lpReserved LPVOID PTR DWORD  Reserved, must be NULL.

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