diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2004-08-25 12:43:25 +0400 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2004-08-25 12:43:25 +0400 |
commit | b8a6a751f4900bd0a22ef85519d4e372ce7729aa (patch) | |
tree | 1af20e02402363ed5f9b5d2e3e15162785287aa2 /winsup | |
parent | 6f564c4f6e7746ccb29ec2bb9b3c4c4b07d912d2 (diff) |
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.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/w32api/ChangeLog | 7 | ||||
-rw-r--r-- | winsup/w32api/include/wincon.h | 16 |
2 files changed, 19 insertions, 4 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index f7f479a33..59aa6a398 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -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. diff --git a/winsup/w32api/include/wincon.h b/winsup/w32api/include/wincon.h index 6c92f09ce..8eaa5e788 100644 --- a/winsup/w32api/include/wincon.h +++ b/winsup/w32api/include/wincon.h @@ -1,6 +1,6 @@ #ifndef _WINCON_H #define _WINCON_H -#if __GNUC__ >=3 +#if __GNUC__ >= 3 #pragma GCC system_header #endif @@ -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 @@ -57,13 +61,13 @@ typedef struct _CHAR_INFO { CHAR AsciiChar; } Char; WORD Attributes; -} CHAR_INFO,*PCHAR_INFO; +} CHAR_INFO, *PCHAR_INFO; typedef struct _SMALL_RECT { SHORT Left; SHORT Top; SHORT Right; SHORT Bottom; -} SMALL_RECT,*PSMALL_RECT; +} SMALL_RECT, *PSMALL_RECT; typedef struct _CONSOLE_CURSOR_INFO { DWORD dwSize; BOOL bVisible; @@ -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); |