Declare some Windows Xp related structures (try2)

Kovács András andras at csevego.net
Mon Feb 19 03:13:48 CST 2007


Declare some Windows Xp related structures, and a define, that is needed for 
raw input handling.
-- 
------------------
andras
NetClub
Lamarr
csevego.net
andras at csevego.net
------------------
-------------- next part --------------
From b86afa3bfa1153cdd09701435ae456dcaeb31dec Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Andr=C3=A1s_Kov=C3=A1cs?= <andras at debian.sth.sze.hu>
Date: Mon, 19 Feb 2007 10:09:28 +0100
Subject: [PATCH] Declare some WinXP related structures

---
 include/winuser.h |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/include/winuser.h b/include/winuser.h
index 7533312..7c35109 100644
--- a/include/winuser.h
+++ b/include/winuser.h
@@ -443,6 +443,49 @@ typedef struct tagINPUT
     } DUMMYUNIONNAME;
 } INPUT, *PINPUT, *LPINPUT;
 
+  /* Windows XP related raw input structures */
+
+typedef struct tagRAWINPUTDEVICE {
+    USHORT usUsagePage;
+    USHORT usUsage;
+    DWORD dwFlags;
+    HWND hwndTarget;
+} RAWINPUTDEVICE, *PRAWINPUTDEVICE, *LPRAWINPUTDEVICE;
+
+typedef struct tagRID_DEVICE_INFO_MOUSE {
+    DWORD dwId;
+    DWORD dwNumberOfButtons;
+    DWORD dwSampleRate;
+    BOOL fHasHorizontalWheel;
+} RID_DEVICE_INFO_MOUSE, *PRID_DEVICE_INFO_MOUSE;
+
+typedef struct tagRID_DEVICE_INFO_KEYBOARD {
+    DWORD dwType;
+    DWORD dwSubType;
+    DWORD dwKeyboardMode;
+    DWORD dwNumberOfFunctionKeys;
+    DWORD dwNumberOfIndicators;
+    DWORD dwNumberOfKeysTotal;
+} RID_DEVICE_INFO_KEYBOARD, *PRID_DEVICE_INFO_KEYBOARD;
+
+typedef struct tagRID_DEVICE_INFO_HID {
+    DWORD dwVendorId;
+    DWORD dwProductId;
+    DWORD dwVersionNumber;
+    USHORT usUsagePage;
+    USHORT usUsage;
+} RID_DEVICE_INFO_HID, *PRID_DEVICE_INFO_HID;
+
+typedef struct tagRID_DEVICE_INFO {
+    DWORD    cbSize;
+    DWORD    dwType;
+    union {
+    RID_DEVICE_INFO_MOUSE     mouse;
+    RID_DEVICE_INFO_KEYBOARD  keyboard;
+    RID_DEVICE_INFO_HID       hid;
+    } DUMMYUNIONNAME;
+} RID_DEVICE_INFO, *PRID_DEVICE_INFO, *LPRID_DEVICE_INFO;
+
 
 typedef struct tagGUITHREADINFO
 {
@@ -1083,6 +1126,9 @@ BOOL        WINAPI SetSysColors(INT,const INT*,const COLORREF*);
 #define WM_NCXBUTTONUP      0x00ac
 #define WM_NCXBUTTONDBLCLK  0x00ad
 
+  /* Windows XP message for raw input */
+#define WM_INPUT            0x00FF
+
   /* Keyboard messages */
 #define WM_KEYDOWN          0x0100
 #define WM_KEYUP            0x0101
-- 
1.4.4.4



More information about the wine-patches mailing list