2004-08-25 Lars Rune N�stdal <daysleper@users.sourceforge.net>

* include/wincon.h (CONSOLE_FULLSCREEN_MODE, CONSOLE_WINDOWED_MODE):
	Add defines.
	(PCOORD): Add typedef.
	(GetConsoleDisplayMode, SetConsoleDisplayMode): Add prototypes.
This commit is contained in:
Danny Smith 2004-08-25 08:43:25 +00:00
parent 6f564c4f6e
commit b8a6a751f4
2 changed files with 19 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2004-08-25 Lars Rune Nøstdal <daysleper@users.sourceforge.net>
* include/wincon.h (CONSOLE_FULLSCREEN_MODE, CONSOLE_WINDOWED_MODE):
Add XP defines.
(PCOORD): Add typedef.
(GetConsoleDisplayMode, SetConsoleDisplayMode): Add prototypes.
2004-08-25 Danny Smith <dannysmith@users.sourceforge.net>
* include/winldap.h: Don't check value of UNICODE.

View File

@ -16,6 +16,10 @@ extern "C" {
#define BACKGROUND_GREEN 32
#define BACKGROUND_RED 64
#define BACKGROUND_INTENSITY 128
#if (_WIN32_WINNT >= 0x0501)
#define CONSOLE_FULLSCREEN_MODE 1
#define CONSOLE_WINDOWED_MODE 0
#endif
#define CTRL_C_EVENT 0
#define CTRL_BREAK_EVENT 1
#define CTRL_CLOSE_EVENT 2
@ -71,7 +75,7 @@ typedef struct _CONSOLE_CURSOR_INFO {
typedef struct _COORD {
SHORT X;
SHORT Y;
} COORD;
} COORD, *PCOORD;
typedef struct _CONSOLE_FONT_INFO {
DWORD nFont;
COORD dwFontSize;
@ -140,6 +144,7 @@ BOOL WINAPI GetConsoleScreenBufferInfo(HANDLE,PCONSOLE_SCREEN_BUFFER_INFO);
DWORD WINAPI GetConsoleTitleA(LPSTR,DWORD);
DWORD WINAPI GetConsoleTitleW(LPWSTR,DWORD);
#if (_WIN32_WINNT >= 0x0500)
BOOL WINAPI GetConsoleDisplayMode(LPDWORD);
HWND WINAPI GetConsoleWindow(void);
#endif
COORD WINAPI GetLargestConsoleWindowSize(HANDLE);
@ -163,6 +168,9 @@ BOOL WINAPI SetConsoleCP(UINT);
BOOL WINAPI SetConsoleCtrlHandler(PHANDLER_ROUTINE,BOOL);
BOOL WINAPI SetConsoleCursorInfo(HANDLE,const CONSOLE_CURSOR_INFO*);
BOOL WINAPI SetConsoleCursorPosition(HANDLE,COORD);
#if (_WIN32_WINNT >= 0x0501)
BOOL WINAPI SetConsoleDisplayMode(HANDLE,DWORD,PCOORD);
#endif
BOOL WINAPI SetConsoleMode(HANDLE,DWORD);
BOOL WINAPI SetConsoleOutputCP(UINT);
BOOL WINAPI SetConsoleScreenBufferSize(HANDLE,COORD);