ReactOS 0.4.16-dev-1537-g4e425b5
wincontypes.h
Go to the documentation of this file.
1/*
2 * Copyright (C) the Wine project
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#ifndef _WINCONTYPES_
20#define _WINCONTYPES_
21
22typedef struct tagCOORD
23{
24 SHORT X;
25 SHORT Y;
27
28typedef struct tagSMALL_RECT
29{
30 SHORT Left;
31 SHORT Top;
35
36typedef struct tagKEY_EVENT_RECORD
37{
38 BOOL bKeyDown; /* 04 */
42 union /* 0E */
43 {
45 CHAR AsciiChar; /* 0E */
49
50/* dwControlKeyState bitmask */
51#define RIGHT_ALT_PRESSED 0x0001
52#define LEFT_ALT_PRESSED 0x0002
53#define RIGHT_CTRL_PRESSED 0x0004
54#define LEFT_CTRL_PRESSED 0x0008
55#define SHIFT_PRESSED 0x0010
56#define NUMLOCK_ON 0x0020
57#define SCROLLLOCK_ON 0x0040
58#define CAPSLOCK_ON 0x0080
59#define ENHANCED_KEY 0x0100
60
62{
68
69/* MOUSE_EVENT_RECORD.dwButtonState */
70#define FROM_LEFT_1ST_BUTTON_PRESSED 0x0001
71#define RIGHTMOST_BUTTON_PRESSED 0x0002
72#define FROM_LEFT_2ND_BUTTON_PRESSED 0x0004
73#define FROM_LEFT_3RD_BUTTON_PRESSED 0x0008
74#define FROM_LEFT_4TH_BUTTON_PRESSED 0x0010
75
76/* MOUSE_EVENT_RECORD.dwEventFlags */
77#define MOUSE_MOVED 0x0001
78#define DOUBLE_CLICK 0x0002
79#define MOUSE_WHEELED 0x0004
80#define MOUSE_HWHEELED 0x0008
81
83{
86
88{
91
93{
96
97typedef struct tagINPUT_RECORD
98{
100 union
101 {
109
110/* INPUT_RECORD.wEventType */
111#define KEY_EVENT 0x01
112#define MOUSE_EVENT 0x02
113#define WINDOW_BUFFER_SIZE_EVENT 0x04
114#define MENU_EVENT 0x08
115#define FOCUS_EVENT 0x10
116
117typedef struct tagCHAR_INFO
118{
119 union
120 {
126
127typedef struct _CONSOLE_FONT_INFO
128{
129 DWORD nFont;
132
133typedef void *HPCON;
134
135#endif /* _WINCONTYPES_ */
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned int UINT
Definition: ndis.h:50
short SHORT
Definition: pedump.c:59
COORD dwFontSize
Definition: wincon.h:245
Definition: bl.h:1338
union tagCHAR_INFO::@3478 Char
WCHAR UnicodeChar
Definition: wincontypes.h:121
Definition: blue.h:25
SHORT Y
Definition: blue.h:27
SHORT X
Definition: blue.h:26
FOCUS_EVENT_RECORD FocusEvent
Definition: wincontypes.h:106
WINDOW_BUFFER_SIZE_RECORD WindowBufferSizeEvent
Definition: wincontypes.h:104
MENU_EVENT_RECORD MenuEvent
Definition: wincontypes.h:105
MOUSE_EVENT_RECORD MouseEvent
Definition: wincontypes.h:103
KEY_EVENT_RECORD KeyEvent
Definition: wincontypes.h:102
union tagINPUT_RECORD::@3477 Event
union tagKEY_EVENT_RECORD::@3476 uChar
SHORT Right
Definition: blue.h:34
SHORT Left
Definition: blue.h:32
SHORT Top
Definition: blue.h:33
SHORT Bottom
Definition: blue.h:35
struct tagCOORD * LPCOORD
struct tagMOUSE_EVENT_RECORD MOUSE_EVENT_RECORD
struct tagCHAR_INFO CHAR_INFO
struct tagMENU_EVENT_RECORD MENU_EVENT_RECORD
void * HPCON
Definition: wincontypes.h:133
struct tagWINDOW_BUFFER_SIZE_RECORD * LPWINDOW_BUFFER_SIZE_RECORD
struct tagKEY_EVENT_RECORD KEY_EVENT_RECORD
struct tagFOCUS_EVENT_RECORD FOCUS_EVENT_RECORD
struct tagINPUT_RECORD * PINPUT_RECORD
struct _CONSOLE_FONT_INFO * LPCONSOLE_FONT_INFO
struct _CONSOLE_FONT_INFO CONSOLE_FONT_INFO
struct tagSMALL_RECT SMALL_RECT
struct tagCHAR_INFO * LPCHAR_INFO
struct tagINPUT_RECORD INPUT_RECORD
struct tagCOORD COORD
struct tagKEY_EVENT_RECORD * LPKEY_EVENT_RECORD
struct tagSMALL_RECT * LPSMALL_RECT
struct tagMOUSE_EVENT_RECORD * LPMOUSE_EVENT_RECORD
struct tagFOCUS_EVENT_RECORD * LPFOCUS_EVENT_RECORD
struct tagMENU_EVENT_RECORD * LPMENU_EVENT_RECORD
struct tagWINDOW_BUFFER_SIZE_RECORD WINDOW_BUFFER_SIZE_RECORD
__wchar_t WCHAR
Definition: xmlstorage.h:180
char CHAR
Definition: xmlstorage.h:175