add some structs and constants to setupapi

Aric Stewart aric at codeweavers.com
Wed Aug 11 13:58:12 CDT 2004


add some more needed structs and constants to setupapi (working toward 
usb support)
-------------- next part --------------
Index: include/setupapi.h
===================================================================
RCS file: /home/wine/wine/include/setupapi.h,v
retrieving revision 1.20
diff -u -w -r1.20 setupapi.h
--- include/setupapi.h	15 Mar 2004 20:07:25 -0000	1.20
+++ include/setupapi.h	11 Aug 2004 18:57:31 -0000
@@ -196,6 +196,40 @@
     CHAR   RemoteMachineName[SP_MAX_MACHINENAME_LENGTH];
 } SP_DEVINFO_LIST_DETAIL_DATA_A, *PSP_DEVINFO_LIST_DETAIL_DATA_A;
 
+typedef struct _SP_CLASSINSTALL_HEADER {
+  DWORD  cbSize;
+  DWORD  InstallFunction;
+} SP_CLASSINSTALL_HEADER, *PSP_CLASSINSTALL_HEADER;
+
+typedef struct _SP_PROPCHANGE_PARAMS {
+  SP_CLASSINSTALL_HEADER  ClassInstallHeader;
+  DWORD  StateChange;
+  DWORD  Scope;
+  DWORD  HwProfile;
+} SP_PROPCHANGE_PARAMS, *PSP_PROPCHANGE_PARAMS;
+
+//
+// Values indicating a change in a device's state
+//
+#define DICS_ENABLE      0x00000001
+#define DICS_DISABLE     0x00000002
+#define DICS_PROPCHANGE  0x00000003
+#define DICS_START       0x00000004
+#define DICS_STOP        0x00000005
+
+typedef struct _SP_DEVINSTALL_PARAMSA {
+  DWORD  cbSize;
+  DWORD  Flags;
+  DWORD  FlagsEx;
+  HWND  hwndParent;
+  PSP_FILE_CALLBACK_A  InstallMsgHandler;
+  PVOID  InstallMsgHandlerContext;
+  HSPFILEQ  FileQueue;
+  ULONG_PTR  ClassInstallReserved;
+  DWORD  Reserved;
+  CHAR  DriverPath[MAX_PATH];
+} SP_DEVINSTALL_PARAMSA, *PSP_DEVINSTALL_PARAMSA;
+
 typedef struct _SP_DEVINFO_LIST_DETAIL_DATA_W {
     DWORD  cbSize;
     GUID   ClassGuid;


More information about the wine-patches mailing list