2 * Win32 kernel functions
4 * Copyright 1995 Martin von Loewis and Cameron Heide
14 static CONSOLE_SCREEN_BUFFER_INFO dummyinfo
=
23 /***********************************************************************
24 * SetConsoleCtrlHandler (KERNEL32.459)
26 BOOL
SetConsoleCtrlHandler(HANDLER_ROUTINE
* func
, BOOL a
)
31 /***********************************************************************
32 * GetConsoleScreenBufferInfo (KERNEL32.190)
34 BOOL32
GetConsoleScreenBufferInfo( HANDLE32 hConsoleOutput
,
35 LPCONSOLE_SCREEN_BUFFER_INFO csbi
)
39 csbi
->dwCursorPosition
.x
= 0;
40 csbi
->dwCursorPosition
.y
= 0;
41 csbi
->wAttributes
= 0;
42 csbi
->srWindow
.Left
= 0;
43 csbi
->srWindow
.Right
= 79;
44 csbi
->srWindow
.Top
= 0;
45 csbi
->srWindow
.Bottom
= 23;
46 csbi
->dwMaximumWindowSize
.x
= 80;
47 csbi
->dwMaximumWindowSize
.y
= 24;
51 /***********************************************************************
52 * GetLargestConsoleWindowSize (KERNEL32.226)
54 COORD
GetLargestConsoleWindowSize( HANDLE32 hConsoleOutput
)
56 return dummyinfo
.dwMaximumWindowSize
;