Added stub for CreateBindCtx() and added missing CoGetClassObject()
[wine/multimedia.git] / include / wincon.h
blobbc7c710be1b708585ce02c73ff04345f8fb6c71a
1 #ifndef __WINE_WINCON_H
2 #define __WINE_WINCON_H
4 #define CTRL_C_EVENT 0
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
37 INT16 x;
38 INT16 y;
39 } COORD,*LPCOORD;
42 typedef struct tagSMALL_RECT
44 INT16 Left;
45 INT16 Top;
46 INT16 Right;
47 INT16 Bottom;
48 } SMALL_RECT,*LPSMALL_RECT;
50 typedef struct tagCONSOLE_SCREEN_BUFFER_INFO
52 COORD dwSize;
53 COORD dwCursorPosition;
54 WORD wAttributes;
55 SMALL_RECT srWindow;
56 COORD dwMaximumWindowSize;
57 } CONSOLE_SCREEN_BUFFER_INFO,*LPCONSOLE_SCREEN_BUFFER_INFO;
59 typedef struct tagCHAR_INFO
61 union
63 WCHAR UnicodeChar;
64 CHAR AsciiChar;
65 } Char;
66 WORD Attributes;
67 } CHAR_INFO,*LPCHAR_INFO;
69 typedef struct tagKEY_EVENT_RECORD
71 BOOL32 bKeyDown;
72 WORD wRepeatCount;
73 WORD wVirtualKeyCode;
74 WORD wVirtualScanCode;
75 union
77 WCHAR UniCodeChar;
78 CHAR AsciiChar;
79 } uChar;
80 DWORD dwControlKeyState;
81 } KEY_EVENT_RECORD,*LPKEY_EVENT_RECORD;
83 typedef struct tagMOUSE_EVENT_RECORD
85 COORD dwMousePosition;
86 DWORD dwButtonState;
87 DWORD dwControlKeyState;
88 DWORD dwEventFlags;
89 } MOUSE_EVENT_RECORD,*LPMOUSE_EVENT_RECORD;
91 typedef struct tagWINDOW_BUFFER_SIZE_RECORD
93 COORD dwSize;
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
108 WORD EventType;
109 union
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;
116 } Event;
117 } INPUT_RECORD,*LPINPUT_RECORD;
119 #endif /* __WINE_WINCON_H */