1 #ifndef __WINE_WINCON_H
2 #define __WINE_WINCON_H
5 #define CTRL_BREAK_EVENT 1
6 #define CTRL_CLOSE_EVENT 2
7 #define CTRL_LOGOFF_EVENT 5
8 #define CTRL_SHUTDOWN_EVENT 6
10 /* Console Mode flags */
11 #define ENABLE_PROCESSED_INPUT 0x01
12 #define ENABLE_LINE_INPUT 0x02
13 #define ENABLE_ECHO_INPUT 0x04
14 #define ENABLE_WINDOW_INPUT 0x08
15 #define ENABLE_MOUSE_INPUT 0x10
17 #define ENABLE_PROCESSED_OUTPUT 0x01
18 #define ENABLE_WRAP_AT_EOL_OUTPUT 0x02
21 typedef BOOL32
HANDLER_ROUTINE(WORD
);
23 /* Attributes flags: */
25 #define FOREGROUND_BLUE 0x0001 /* text color contains blue. */
26 #define FOREGROUND_GREEN 0x0002 /* text color contains green. */
27 #define FOREGROUND_RED 0x0004 /* text color contains red. */
28 #define FOREGROUND_INTENSITY 0x0008 /* text color is intensified. */
29 #define BACKGROUND_BLUE 0x0010 /* background color contains blue. */
30 #define BACKGROUND_GREEN 0x0020 /* background color contains green. */
31 #define BACKGROUND_RED 0x0040 /* background color contains red. */
32 #define BACKGROUND_INTENSITY 0x0080 /* background color is intensified. */
35 typedef struct tagCOORD
42 typedef struct tagSMALL_RECT
48 } SMALL_RECT
,*LPSMALL_RECT
;
50 typedef struct tagCONSOLE_SCREEN_BUFFER_INFO
53 COORD dwCursorPosition
;
56 COORD dwMaximumWindowSize
;
57 } CONSOLE_SCREEN_BUFFER_INFO
,*LPCONSOLE_SCREEN_BUFFER_INFO
;
59 typedef struct tagCHAR_INFO
67 } CHAR_INFO
,*LPCHAR_INFO
;
69 typedef struct tagKEY_EVENT_RECORD
74 WORD wVirtualScanCode
;
80 DWORD dwControlKeyState
;
81 } KEY_EVENT_RECORD
,*LPKEY_EVENT_RECORD
;
83 typedef struct tagMOUSE_EVENT_RECORD
85 COORD dwMousePosition
;
87 DWORD dwControlKeyState
;
89 } MOUSE_EVENT_RECORD
,*LPMOUSE_EVENT_RECORD
;
91 typedef struct tagWINDOW_BUFFER_SIZE_RECORD
94 } WINDOW_BUFFER_SIZE_RECORD
,*LPWINDOW_BUFFER_SIZE_RECORD
;
96 typedef struct tagMENU_EVENT_RECORD
98 UINT32 dwCommandId
; /* perhaps UINT16 ??? */
99 } MENU_EVENT_RECORD
,*LPMENU_EVENT_RECORD
;
101 typedef struct tagFOCUS_EVENT_RECORD
103 BOOL32 bSetFocus
; /* perhaps BOOL16 ??? */
104 } FOCUS_EVENT_RECORD
,*LPFOCUS_EVENT_RECORD
;
106 typedef struct tagINPUT_RECORD
111 KEY_EVENT_RECORD KeyEvent
;
112 MOUSE_EVENT_RECORD MouseEvent
;
113 WINDOW_BUFFER_SIZE_RECORD WindowBufferSizeEvent
;
114 MENU_EVENT_RECORD MenuEvent
;
115 FOCUS_EVENT_RECORD FocusEvent
;
117 } INPUT_RECORD
,*LPINPUT_RECORD
;
119 #endif /* __WINE_WINCON_H */