Declare some WinXP related structures

Kovács András andras at csevego.net
Tue Feb 13 14:51:44 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 8954f4bda82c99f2dbf47e14e370cbf02c625b63 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Andr=C3=A1s_Kov=C3=A1cs?= <andras at debian.sth.sze.hu>
Date: Tue, 13 Feb 2007 20:55:54 +0100
Subject: [PATCH] Declare some WinXP related structures

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

diff --git a/include/winuser.h b/include/winuser.h
index 7533312..8deff4d 100644
--- a/include/winuser.h
+++ b/include/winuser.h
@@ -1055,6 +1055,51 @@ BOOL        WINAPI SetSysColors(INT,const INT*,const COLORREF*);
 #define WM_GETICON		0x007f
 #define WM_SETICON		0x0080
 
+  /* Windows XP messages */
+#define WM_INPUT                0x00FF
+
+  /* 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;
+
   /* Non-client system messages */
 #define WM_NCCREATE         0x0081
 #define WM_NCDESTROY        0x0082
-- 
1.4.4.4



More information about the wine-patches mailing list