SetConsoleWindowInfo PROC
(MS-Windows)
Sets the current size and position of a console
screen buffer's window.
This function fails if the specified size extends
beyond the boundaries of the screen buffer.
This function can be used to scroll the contents
of the screen buffer by shifting the position of the window
rectangle without changing its size.
Invoke GetConsoleScreenBufferInfo
to get the current size and position of a console screen buffer's
window.
SetConsoleWindowInfo PROTO, ; set position of console window nStdHandle:DWORD, ; screen buffer handle bAbsolute:DWORD, ; coordinate type pConsoleRect:PTR SMALL_RECT ; ptr to window rectangle Returns: (BOOL) EAX = TRUE (non-zero) if successful, FALSE (zero) if fails. |
Argument | Win Type | MASM Type | Description |
---|---|---|---|
nStdHandle | HANDLE | DWORD | Handle to a console screen buffer. The handle must have GENERIC_WRITE access. |
bAbsolute | BOOL | DWORD | Specifies how the coordinates in the structure
pointed to by pConsoleRect are used. · TRUE - coordinates specify the new upper-left and lower-right corners. · FALSE - coordinates are offsets to the current window-corner coordinates. |
pConsoleRect | CONST SMALL_RECT | PTR SMALL_RECT | Pointer to a SMALL_RECT structure that contains the coordinates of the corners of the new window. |
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |