22 SHORT oldWidth, oldHeight;
24 oldWidth = pcsbi->srWindow.
Right - pcsbi->srWindow.Left + 1;
25 oldHeight = pcsbi->srWindow.Bottom - pcsbi->srWindow.Top + 1;
138 ConRect.
Left = ConRect.
Top = 0;
144 ok(
Success,
"Setting console wnd info\n");
152 ConRect.
Left = ConRect.
Top = -5;
160 ok(
Success,
"Setting console wnd info should have succeeded!\n");
186 ConRect.
Left = ConRect.
Top = -5;
192 ok(!
Success,
"Setting console wnd info should have failed!\n");
204 ok(csbi2.
srWindow.
Top == 0,
"srWindow.Top = %d, expected %d\n",
216 ConRect.
Left = ConRect.
Top = 2;
222 ok(!
Success,
"Setting console wnd info should have failed!\n");
233 ok(csbi2.
srWindow.
Top == 0,
"srWindow.Top = %d, expected %d\n",
252 ok(!
Success,
"Setting console wnd info should have failed!\n");
263 ok(
Success,
"Setting console wnd info should have succeeded!\n");
294 "dwMaximumWindowSize = {%d, %d} was expected to be smaller than Resolution = {%d, %d}\n",
298 ConRect.
Left = ConRect.
Top = 0;
304 ok(
Success,
"Setting console wnd info should have succeeded!\n");
324 ConRect.
Left = ConRect.
Top = 0;
330 ok(!
Success,
"Setting console wnd info should have failed!\n");
341 ok(csbi2.
srWindow.
Top == 0,
"srWindow.Top = %d, expected %d\n",
static VOID ResizeTextConsole(IN HANDLE hConOut, IN OUT PCONSOLE_SCREEN_BUFFER_INFO pcsbi, IN COORD Resolution, IN PSMALL_RECT WindowSize OPTIONAL)
BOOL WINAPI GetConsoleScreenBufferInfo(IN HANDLE hConsoleOutput, OUT PCONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo)
#define ERROR_INVALID_PARAMETER
#define INVALID_HANDLE_VALUE
BOOL WINAPI SetConsoleWindowInfo(HANDLE hConsoleOutput, BOOL bAbsolute, CONST SMALL_RECT *lpConsoleWindow)
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleScreenBufferSize(HANDLE hConsoleOutput, COORD dwSize)
static const WCHAR Cleanup[]
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN _In_opt_ ULONG WindowSize
PULONG MinorVersion OPTIONAL
COORD dwMaximumWindowSize
DWORD WINAPI GetLastError(void)