WriteConsoleOutputCharacter PROC   (MS-Windows)

   Copies a number of characters to consecutive cells of a console screen buffer, beginning at the specified location.
   If the text reaches the end of a line, it wraps to the next line but will not write past the end of the screen buffer.
   The attribute values in the screen buffer are not changed.
   ASCII control characters such as tab, carriage return, and line feed are ignored.
   Uses either Unicode or (wide-characters) or 8-bit characters from the console's current code page.


WriteConsoleOutputCharacter PROTO,
    handleScreenBuf:DWORD,   ; console output handle
    pBuffer:PTR BYTE,        ; pointer to buffer
    bufsize:DWORD,           ; size of buffer
    xyPos:COORD,             ; first cell coordinates
    pCount:PTR DWORD         ; output count

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

Argument Win Type MASM Type Description
handleScreenBuf HANDLE DWORD  Handle to the screen buffer.
 The handle must have GENERIC_WRITE access.
pBuffer LPCTSTR PTR BYTE  Pointer to a buffer that contains the characters to write to the screen buffer.
bufsize DWORD DWORD  The number of screen buffer character cells to write to.
xyPos COORD COORD  A COORD structure that specifies the column and row coordinates of the first cell in the screen buffer to write to.
pCount LPDWORD PTR DWORD  Pointer to a DWORD that receives the number of characters written to the screen buffer.

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