msi: Implement and test MsiEnumComponentCostsA/W.
[wine] / include / setupapi.h
1 /*
2  * Copyright (C) 2000 James Hatheway
3  * Copyright (C) 2007 Juan Lang
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18  */
19
20 #ifndef _INC_SETUPAPI
21 #define _INC_SETUPAPI
22
23 #include <commctrl.h>
24
25 #ifdef _WIN64
26 #include <pshpack8.h>
27 #else
28 #include <pshpack1.h>
29 #endif
30
31 /* setupapi doesn't use the normal convention, it adds an underscore before A/W */
32 #ifdef WINE_NO_UNICODE_MACROS
33 # define DECL_WINELIB_SETUPAPI_TYPE_AW(type)  /* nothing */
34 #else
35 # define DECL_WINELIB_SETUPAPI_TYPE_AW(type)  typedef WINELIB_NAME_AW(type##_) type;
36 #endif
37
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41
42 /* Define type for handle to a loaded inf file */
43 typedef PVOID HINF;
44
45 /* Define type for handle to a device information set */
46 typedef PVOID HDEVINFO;
47
48 /* Define type for handle to a setup log file */
49 typedef PVOID HSPFILELOG;
50
51 /* Define type for setup file queue */
52 typedef PVOID HSPFILEQ;
53
54 typedef PVOID HDSKSPC;
55
56 /* inf structure. */
57 typedef struct _INFCONTEXT
58 {
59    PVOID Inf;
60    PVOID CurrentInf;
61    UINT  Section;
62    UINT  Line;
63 } INFCONTEXT, *PINFCONTEXT;
64
65 typedef struct _SP_ALTPLATFORM_INFO_V2
66 {
67     DWORD cbSize;
68     DWORD Platform;
69     DWORD MajorVersion;
70     DWORD MinorVersion;
71     WORD  ProcessorArchitecture;
72     union
73     {
74         WORD  Reserved;
75         WORD  Flags;
76     } DUMMYUNIONNAME;
77     DWORD FirstValidatedMajorVersion;
78     DWORD FirstValidatedMinorVersion;
79 } SP_ALTPLATFORM_INFO_V2, *PSP_ALTPLATFORM_INFO_V2;
80
81 #define SP_ALTPLATFORM_FLAGS_VERSION_RANGE 0x0001
82
83 typedef struct _SP_ALTPLATFORM_INFO_V1
84 {
85     DWORD cbSize;
86     DWORD Platform;
87     DWORD MajorVersion;
88     DWORD MinorVersion;
89     WORD  ProcessorArchitecture;
90     WORD  Reserved;
91 } SP_ALTPLATFORM_INFO_V1, *PSP_ALTPLATFORM_INFO_V1;
92
93 typedef SP_ALTPLATFORM_INFO_V2 SP_ALTPLATFORM_INFO;
94 typedef PSP_ALTPLATFORM_INFO_V2 PSP_ALTPLATFORM_INFO;
95
96 typedef struct _SP_FILE_COPY_PARAMS_A
97 {
98     DWORD    cbSize;
99     HSPFILEQ QueueHandle;
100     PCSTR    SourceRootPath;
101     PCSTR    SourcePath;
102     PCSTR    SourceFilename;
103     PCSTR    SourceDescription;
104     PCSTR    SourceTagfile;
105     PCSTR    TargetDirectory;
106     PCSTR    TargetFilename;
107     DWORD    CopyStyle;
108     HINF     LayoutInf;
109     PCSTR    SecurityDescriptor;
110 } SP_FILE_COPY_PARAMS_A, *PSP_FILE_COPY_PARAMS_A;
111
112 typedef struct _SP_FILE_COPY_PARAMS_W
113 {
114     DWORD    cbSize;
115     HSPFILEQ QueueHandle;
116     PCWSTR   SourceRootPath;
117     PCWSTR   SourcePath;
118     PCWSTR   SourceFilename;
119     PCWSTR   SourceDescription;
120     PCWSTR   SourceTagfile;
121     PCWSTR   TargetDirectory;
122     PCWSTR   TargetFilename;
123     DWORD    CopyStyle;
124     HINF     LayoutInf;
125     PCWSTR   SecurityDescriptor;
126 } SP_FILE_COPY_PARAMS_W, *PSP_FILE_COPY_PARAMS_W;
127
128 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_FILE_COPY_PARAMS)
129 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_FILE_COPY_PARAMS)
130
131 typedef struct _SP_REGISTER_CONTROL_STATUSA
132 {
133     DWORD    cbSize;
134     PCSTR    FileName;
135     DWORD    Win32Error;
136     DWORD    FailureCode;
137 } SP_REGISTER_CONTROL_STATUSA, *PSP_REGISTER_CONTROL_STATUSA;
138
139 typedef struct _SP_REGISTER_CONTROL_STATUSW
140 {
141     DWORD    cbSize;
142     PCWSTR   FileName;
143     DWORD    Win32Error;
144     DWORD    FailureCode;
145 } SP_REGISTER_CONTROL_STATUSW, *PSP_REGISTER_CONTROL_STATUSW;
146
147 DECL_WINELIB_TYPE_AW(SP_REGISTER_CONTROL_STATUS)
148 DECL_WINELIB_TYPE_AW(PSP_REGISTER_CONTROL_STATUS)
149
150 #define SPREG_SUCCESS       0x00000000
151 #define SPREG_LOADLIBRARY   0x00000001
152 #define SPREG_GETPROCADDR   0x00000002
153 #define SPREG_REGSVR        0x00000003
154 #define SPREG_DLLINSTALL    0x00000004
155 #define SPREG_TIMEOUT       0x00000005
156 #define SPREG_UNKNOWN       0xffffffff
157
158 typedef UINT (CALLBACK *PSP_FILE_CALLBACK_A)( PVOID Context, UINT Notification,
159                                               UINT_PTR Param1, UINT_PTR Param2 );
160 typedef UINT (CALLBACK *PSP_FILE_CALLBACK_W)( PVOID Context, UINT Notification,
161                                               UINT_PTR Param1, UINT_PTR Param2 );
162 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_FILE_CALLBACK)
163
164 #define LINE_LEN                    256
165 #define MAX_INF_STRING_LENGTH       4096
166 #define MAX_TITLE_LEN               60
167 #define MAX_INSTRUCTION_LEN         256
168 #define MAX_LABEL_LEN               30
169 #define MAX_SERVICE_NAME_LEN        256
170 #define MAX_SUBTITLE_LEN            256
171 #define SP_MAX_MACHINENAME_LENGTH   (MAX_PATH + 3)
172
173 typedef UINT DI_FUNCTION;
174
175 typedef struct _SP_CLASSINSTALL_HEADER
176 {
177   DWORD       cbSize;
178   DI_FUNCTION InstallFunction;
179 } SP_CLASSINSTALL_HEADER, *PSP_CLASSINSTALL_HEADER;
180
181 typedef struct _SP_ENABLECLASS_PARAMS
182 {
183     SP_CLASSINSTALL_HEADER ClassInstallHeader;
184     GUID                   ClassGuid;
185     DWORD                  EnableMessage;
186 } SP_ENABLECLASS_PARAMS, *PSP_ENABLECLASS_PARAMS;
187
188 /* SP_ENABLECLASS_PARAMS EnableMessage values */
189 #define ENABLECLASS_QUERY   0
190 #define ENABLECLASS_SUCCESS 1
191 #define ENABLECLASS_FAILURE 2
192
193 typedef struct _SP_PROPCHANGE_PARAMS
194 {
195   SP_CLASSINSTALL_HEADER  ClassInstallHeader;
196   DWORD  StateChange;
197   DWORD  Scope;
198   DWORD  HwProfile;
199 } SP_PROPCHANGE_PARAMS, *PSP_PROPCHANGE_PARAMS;
200
201 /* SP_PROPCHANGE_PARAMS StateChange values */
202 #define DICS_ENABLE      0x00000001
203 #define DICS_DISABLE     0x00000002
204 #define DICS_PROPCHANGE  0x00000003
205 #define DICS_START       0x00000004
206 #define DICS_STOP        0x00000005
207 /* SP_PROPCHANGE_PARAMS Scope values */
208 #define DICS_FLAG_GLOBAL         0x00000001
209 #define DICS_FLAG_CONFIGSPECIFIC 0x00000002
210 #define DICS_FLAG_CONFIGGENERAL  0x00000004
211
212
213 typedef struct _SP_DEVINSTALL_PARAMS_A
214 {
215     DWORD               cbSize;
216     DWORD               Flags;
217     DWORD               FlagsEx;
218     HWND                hwndParent;
219     PSP_FILE_CALLBACK_A InstallMsgHandler;
220     PVOID               InstallMsgHandlerContext;
221     HSPFILEQ            FileQueue;
222     ULONG_PTR           ClassInstallReserved;
223     DWORD               Reserved;
224     CHAR                DriverPath[MAX_PATH];
225 } SP_DEVINSTALL_PARAMS_A, *PSP_DEVINSTALL_PARAMS_A;
226
227 typedef struct _SP_DEVINSTALL_PARAMS_W
228 {
229     DWORD               cbSize;
230     DWORD               Flags;
231     DWORD               FlagsEx;
232     HWND                hwndParent;
233     PSP_FILE_CALLBACK_W InstallMsgHandler;
234     PVOID               InstallMsgHandlerContext;
235     HSPFILEQ            FileQueue;
236     ULONG_PTR           ClassInstallReserved;
237     DWORD               Reserved;
238     WCHAR               DriverPath[MAX_PATH];
239 } SP_DEVINSTALL_PARAMS_W, *PSP_DEVINSTALL_PARAMS_W;
240
241 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_DEVINSTALL_PARAMS)
242 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_DEVINSTALL_PARAMS)
243
244 /* SP_DEVINSTALL_PARAMS Flags values */
245 #define DI_SHOWOEM             0x00000001
246 #define DI_SHOWCOMPAT          0x00000002
247 #define DI_SHOWCLASS           0x00000004
248 #define DI_SHOWALL             0x00000007
249 #define DI_NOVCP               0x00000008
250 #define DI_DIDCOMPAT           0x00000010
251 #define DI_DIDCLASS            0x00000020
252 #define DI_AUTOASSIGNRES       0x00000040
253 #define DI_NEEDRESTART         0x00000080
254 #define DI_NEEDREBOOT          0x00000100
255 #define DI_NOBROWSE            0x00000200
256 #define DI_MULTMFGS            0x00000400
257 #define DI_DISABLED            0x00000800
258 #define DI_GENERALPAGE_ADDED   0x00001000
259 #define DI_RESOURCEPAGE_ADDED  0x00002000
260 #define DI_PROPERTIES_CHANGE   0x00004000
261 #define DI_INF_IS_SORTED       0x00080000
262 #define DI_ENUMSINGLEINF       0x00010000
263 #define DI_DONOTCALLCONFIGMG   0x00020000
264 #define DI_INSTALLDISABLED     0x00040000
265 #define DI_COMPAT_FROM_CLASS   0x00080000
266 #define DI_CLASSINSTALLPARAMS  0x00100000
267 #define DI_NODI_DEFAULTACTION  0x00200000
268 #define DI_QUIETINSTALL        0x00800000
269 #define DI_NOFILECOPY          0x01000000
270 #define DI_FORCECOPY           0x02000000
271 #define DI_DRIVERPAGE_ADDED    0x04000000
272 #define DI_USECI_SELECTSTRINGS 0x08000000
273 #define DI_OVERRIDE_INFFLAGS   0x10000000
274 #define DI_PROPS_NOCHANGEUSAGE 0x20000000
275 #define DI_NOSELECTICONS       0x40000000
276 #define DI_NOWRITE_IDS         0x80000000
277 /* SP_DEVINSTALL_PARAMS FlagsEx values */
278 #define DI_FLAGSEX_USEOLDINFSEARCH          0x00000001
279 #define DI_FLAGSEX_RESERVED2                0x00000002
280 #define DI_FLAGSEX_CI_FAILED                0x00000004
281 #define DI_FLAGSEX_FINISHINSTALL_ACTION     0x00000008
282 #define DI_FLAGSEX_DIDINFOLIST              0x00000010
283 #define DI_FLAGSEX_DIDCOMPATINFO            0x00000020
284 #define DI_FLAGSEX_FILTERCLASSES            0x00000040
285 #define DI_FLAGSEX_SETFAILEDINSTALL         0x00000080
286 #define DI_FLAGSEX_DEVICECHANGE             0x00000100
287 #define DI_FLAGSEX_ALWAYSWRITEIDS           0x00000200
288 #define DI_FLAGSEX_PROPCHANGE_PENDING       0x00000400
289 #define DI_FLAGSEX_ALLOWEXCLUDEDDRVS        0x00000800
290 #define DI_FLAGSEX_NOUIONQUERYREMOVE        0x00001000
291 #define DI_FLAGSEX_USECLASSFORCOMPAT        0x00002000
292 #define DI_FLAGSEX_RESERVED3                0x00004000
293 #define DI_FLAGSEX_NO_DRVREG_MODIFY         0x00008000
294 #define DI_FLAGSEX_IN_SYSTEM_SETUP          0x00010000
295 #define DI_FLAGSEX_INET_DRIVER              0x00020000
296 #define DI_FLAGSEX_APPENDDRIVERLIST         0x00040000
297 #define DI_FLAGSEX_PREINSTALLBACKUP         0x00080000
298 #define DI_FLAGSEX_BACKUPONREPLACE          0x00100000
299 #define DI_FLAGSEX_DRIVERLIST_FROM_URL      0x00200000
300 #define DI_FLAGSEX_RESERVED1                0x00400000
301 #define DI_FLAGSEX_EXCLUDE_OLD_INET_DRIVERS 0x00800000
302 #define DI_FLAGSEX_POWERPAGE_ADDED          0x01000000
303 #define DI_FLAGSEX_FILTERSIMILARDRIVERS     0x02000000
304 #define DI_FLAGSEX_INSTALLEDDRIVER          0x04000000
305 #define DI_FLAGSEX_NO_CLASSLIST_NODE_MERGE  0x08000000
306 #define DI_FLAGSEX_ALTPLATFORM_DRVSEARCH    0x10000000
307 #define DI_FLAGSEX_RESTART_DEVICE_ONLY      0x20000000
308 #define DI_FLAGSEX_RECURSIVESEARCH          0x40000000
309 #define DI_FLAGSEX_SEARCH_PUBLISHED_INFS    0x80000000
310
311 typedef struct _SP_REMOVEDEVICE_PARAMS
312 {
313     SP_CLASSINSTALL_HEADER ClassInstallHeader;
314     DWORD                  Scope;
315     DWORD                  HwProfile;
316 } SP_REMOVEDEVICE_PARAMS, *PSP_REMOVEDEVICE_PARAMS;
317
318 /* SP_REMOVEDEVICE_PARAMS Scope values */
319 #define DI_REMOVEDEVICE_GLOBAL         0x00000001
320 #define DI_REMOVEDEVICE_CONFIGSPECIFIC 0x00000002
321
322 typedef struct _SP_UNREMOVEDEVICE_PARAMS
323 {
324     SP_CLASSINSTALL_HEADER ClassInstallHeader;
325     DWORD                  Scope;
326     DWORD                  HwProfile;
327 } SP_UNREMOVEDEVICE_PARAMS, *PSP_UNREMOVEDEVICE_PARAMS;
328
329 /* SP_UNREMOVEDEVICE_PARAMS Scope values */
330 #define DI_UNREMOVEDEVICE_CONFIGSPECIFIC 0x00000002
331
332 typedef struct _SP_SELECTDEVICE_PARAMS_A
333 {
334     SP_CLASSINSTALL_HEADER ClassInstallHeader;
335     CHAR                   Title[MAX_TITLE_LEN];
336     CHAR                   Instructions[MAX_INSTRUCTION_LEN];
337     CHAR                   ListLabel[MAX_LABEL_LEN];
338     CHAR                   SubTitle[MAX_SUBTITLE_LEN];
339     BYTE                   Reserved[2];
340 } SP_SELECTDEVICE_PARAMS_A, *PSP_SELECTDEVICE_PARAMS_A;
341
342 typedef struct _SP_SELECTDEVICE_PARAMS_W
343 {
344     SP_CLASSINSTALL_HEADER ClassInstallHeader;
345     WCHAR                  Title[MAX_TITLE_LEN];
346     WCHAR                  Instructions[MAX_INSTRUCTION_LEN];
347     WCHAR                  ListLabel[MAX_LABEL_LEN];
348     WCHAR                  SubTitle[MAX_SUBTITLE_LEN];
349 } SP_SELECTDEVICE_PARAMS_W, *PSP_SELECTDEVICE_PARAMS_W;
350
351 typedef BOOL (CALLBACK *PDETECT_PROGRESS_NOTIFY)(PVOID ProgressNotifyParam,
352         DWORD DetectComplete);
353
354 typedef struct _SP_DETECTDEVICE_PARAMS
355 {
356     SP_CLASSINSTALL_HEADER  ClassInstallHeader;
357     PDETECT_PROGRESS_NOTIFY DetectProgressNotify;
358     PVOID                   ProgressNotifyParam;
359 } SP_DETECTDEVICE_PARAMS, *PSP_DETECTDEVICE_PARAMS;
360
361 #define MAX_INSTALLWIZARD_DYNAPAGES 20
362
363 typedef struct _SP_INSTALLWIZARD_DATA
364 {
365     SP_CLASSINSTALL_HEADER ClassInstallHeader;
366     DWORD                  Flags;
367     HPROPSHEETPAGE         DynamicPages[MAX_INSTALLWIZARD_DYNAPAGES];
368     DWORD                  NumDynamicPages;
369     DWORD                  DynamicPageFlags;
370     DWORD                  PrivateFlags;
371     LPARAM                 PrivateData;
372     HWND                   hwndWizardDlg;
373 } SP_INSTALLWIZARD_DATA, *PSP_INSTALLWIZARD_DATA;
374
375 /* SP_INSTALLWIZARD_DATA Flags values */
376 #define NDW_INSTALLFLAG_DIDFACTDEFS        0x00000001
377 #define NDW_INSTALLFLAG_HARDWAREALLREADYIN 0x00000002
378 #define NDW_INSTALLFLAG_NEEDRESTART        DI_NEEDRESTART
379 #define NDW_INSTALLFLAG_NEEDREBOOT         DI_NEEDREBOOT
380 #define NDW_INSTALLFLAG_NEEDSHUTDOWN       0x00000200
381 #define NDW_INSTALLFLAG_EXPRESSINTRO       0x00000400
382 #define NDW_INSTALLFLAG_SKIPISDEVINSTALLED 0x00000800
383 #define NDW_INSTALLFLAG_NODETECTEDDEVS     0x00001000
384 #define NDW_INSTALLFLAG_INSTALLSPECIFIC    0x00002000
385 #define NDW_INSTALLFLAG_SKIPCLASSLIST      0x00004000
386 #define NDW_INSTALLFLAG_CI_PICKED_OEM      0x00008000
387 #define NDW_INSTALLFLAG_PCMCIAMODE         0x00010000
388 #define NDW_INSTALLFLAG_PCMCIADEVICE       0x00020000
389 #define NDW_INSTALLFLAG_USERCANCEL         0x00040000
390 #define NDW_INSTALLFLAG_KNOWNCLASS         0x00080000
391 /* SP_INSTALLWIZARD_DATA DynamicPageFlags values */
392 #define DYNAWIZ_FLAG_PAGESADDED             0x00000001
393 #define DYNAWIZ_FLAG_INSTALLDET_NEXT        0x00000002
394 #define DYNAWIZ_FLAG_INSTALLDET_PREV        0x00000004
395 #define DYNAWIZ_FLAG_ANALYZE_HANDLECONFLICT 0x00000008
396
397 /* Resource IDs */
398 #define MIN_IDD_DYNAWIZ_RESOURCE_ID 10000
399 #define MAX_IDD_DYNAWIZ_RESOURCE_ID 11000
400
401 #define IDD_DYNAWIZ_FIRSTPAGE                10000
402 #define IDD_DYNAWIZ_SELECT_PREVPAGE          10001
403 #define IDD_DYNAWIZ_SELECT_NEXTPAGE          10002
404 #define IDD_DYNAWIZ_ANALYZE_PREVPAGE         10003
405 #define IDD_DYNAWIZ_ANALYZE_NEXTPAGE         10004
406 #define IDD_DYNAWIZ_INSTALLDETECTED_PREVPAGE 10006
407 #define IDD_DYNAWIZ_INSTALLDETECTED_NEXTPAGE 10007
408 #define IDD_DYNAWIZ_INSTALLDETECTED_NODEVS   10008
409 #define IDD_DYNAWIZ_SELECTDEV_PAGE           10009
410 #define IDD_DYNAWIZ_ANALYZEDEV_PAGE          10010
411 #define IDD_DYNAWIZ_INSTALLDETECTEDDEVS_PAGE 10011
412 #define IDD_DYNAWIZ_SELECTCLASS_PAGE         10012
413
414 #define IDI_RESOURCEFIRST        159
415 #define IDI_RESOURCE             IDI_RESOURCEFIRST
416 #define IDI_RESOURCELAST         161
417 #define IDI_RESOURCEOVERLAYFIRST 161
418 #define IDI_RESOURCEOVERLAYLAST  161
419
420 #define IDI_CLASSICON_OVERLAYFIRST 500
421 #define IDI_CLASSICON_OVERLAYLAST  502
422 #define IDI_PROBLEM_OVL            500
423 #define IDI_DISABLED_OVL           501
424 #define IDI_FORCED_OVL             502
425
426 typedef struct _SP_NEWDEVICEWIZARD_DATA
427 {
428     SP_CLASSINSTALL_HEADER ClassInstallHeader;
429     DWORD                  Flags;
430     HPROPSHEETPAGE         DynamicPages[MAX_INSTALLWIZARD_DYNAPAGES];
431     DWORD                  NumDynamicPages;
432     HWND                   hwndWizardDlg;
433 } SP_NEWDEVICEWIZARD_DATA, *PSP_NEWDEVICEWIZARD_DATA;
434
435 typedef SP_NEWDEVICEWIZARD_DATA  SP_ADDPROPERTYPAGE_DATA;
436 typedef PSP_NEWDEVICEWIZARD_DATA PSP_ADDPROPERTYPAGE_DATA;
437
438 typedef struct _SP_TROUBLESHOOTER_PARAMS_A
439 {
440     SP_CLASSINSTALL_HEADER ClassInstallHeader;
441     CHAR                   ChmFile[MAX_PATH];
442     CHAR                   HtmlTroubleShooter[MAX_PATH];
443 } SP_TROUBLESHOOTER_PARAMS_A, *PSP_TROUBLESHOOTER_PARAMS_A;
444
445 typedef struct _SP_TROUBLESHOOTER_PARAMS_W
446 {
447     SP_CLASSINSTALL_HEADER ClassInstallHeader;
448     WCHAR                  ChmFile[MAX_PATH];
449     WCHAR                  HtmlTroubleShooter[MAX_PATH];
450 } SP_TROUBLESHOOTER_PARAMS_W, *PSP_TROUBLESHOOTER_PARAMS_W;
451
452 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_TROUBLESHOOTER_PARAMS)
453 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_TROUBLESHOOTER_PARAMS)
454
455 typedef struct _SP_POWERMESSAGEWAKE_PARAMS_A
456 {
457     SP_CLASSINSTALL_HEADER ClassInstallHeader;
458     CHAR                   PowerMessageWake[LINE_LEN * 2];
459 } SP_POWERMESSAGEWAKE_PARAMS_A, *PSP_POWERMESSAGEWAKE_PARAMS_A;
460
461 typedef struct _SP_POWERMESSAGEWAKE_PARAMS_W
462 {
463     SP_CLASSINSTALL_HEADER ClassInstallHeader;
464     WCHAR                  PowerMessageWake[LINE_LEN * 2];
465 } SP_POWERMESSAGEWAKE_PARAMS_W, *PSP_POWERMESSAGEWAKE_PARAMS_W;
466
467 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_POWERMESSAGEWAKE_PARAMS)
468 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_POWERMESSAGEWAKE_PARAMS)
469
470 typedef struct _SP_DRVINFO_DATA_V1_A
471 {
472     DWORD     cbSize;
473     DWORD     DriverType;
474     ULONG_PTR Reserved;
475     CHAR      Description[LINE_LEN];
476     CHAR      MfgName[LINE_LEN];
477     CHAR      ProviderName[LINE_LEN];
478 } SP_DRVINFO_DATA_V1_A, *PSP_DRVINFO_DATA_V1_A;
479
480 typedef struct _SP_DRVINFO_DATA_V1_W
481 {
482     DWORD     cbSize;
483     DWORD     DriverType;
484     ULONG_PTR Reserved;
485     WCHAR     Description[LINE_LEN];
486     WCHAR     MfgName[LINE_LEN];
487     WCHAR     ProviderName[LINE_LEN];
488 } SP_DRVINFO_DATA_V1_W, *PSP_DRVINFO_DATA_V1_W;
489
490 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_DRVINFO_DATA_V1)
491 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_DRVINFO_DATA_V1)
492
493 typedef struct _SP_DRVINFO_DATA_V2_A
494 {
495     DWORD     cbSize;
496     DWORD     DriverType;
497     ULONG_PTR Reserved;
498     CHAR      Description[LINE_LEN];
499     CHAR      MfgName[LINE_LEN];
500     CHAR      ProviderName[LINE_LEN];
501     FILETIME  DriverDate;
502     DWORDLONG DriverVersion;
503 } SP_DRVINFO_DATA_V2_A, *PSP_DRVINFO_DATA_V2_A;
504
505 typedef struct _SP_DRVINFO_DATA_V2_W
506 {
507     DWORD     cbSize;
508     DWORD     DriverType;
509     ULONG_PTR Reserved;
510     WCHAR     Description[LINE_LEN];
511     WCHAR     MfgName[LINE_LEN];
512     WCHAR     ProviderName[LINE_LEN];
513     FILETIME  DriverDate;
514     DWORDLONG DriverVersion;
515 } SP_DRVINFO_DATA_V2_W, *PSP_DRVINFO_DATA_V2_W;
516
517 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_DRVINFO_DATA_V2)
518 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_DRVINFO_DATA_V2)
519
520 typedef SP_DRVINFO_DATA_V2_A SP_DRVINFO_DATA_A;
521 typedef PSP_DRVINFO_DATA_V2_A PSP_DRVINFO_DATA_A;
522 typedef SP_DRVINFO_DATA_V2_W SP_DRVINFO_DATA_W;
523 typedef PSP_DRVINFO_DATA_V2_W PSP_DRVINFO_DATA_W;
524
525 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_DRVINFO_DATA)
526 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_DRVINFO_DATA)
527
528 typedef struct _SP_DRVINFO_DETAIL_DATA_A
529 {
530     DWORD     cbSize;
531     FILETIME  InfDate;
532     DWORD     CompatIDsOffset;
533     DWORD     CompatIDsLength;
534     ULONG_PTR Reserved;
535     CHAR      SectionName[LINE_LEN];
536     CHAR      InfFileName[MAX_PATH];
537     CHAR      DrvDescription[LINE_LEN];
538     CHAR      HardwareID[ANYSIZE_ARRAY];
539 } SP_DRVINFO_DETAIL_DATA_A, *PSP_DRVINFO_DETAIL_DATA_A;
540
541 typedef struct _SP_DRVINFO_DETAIL_DATA_W
542 {
543     DWORD     cbSize;
544     FILETIME  InfDate;
545     DWORD     CompatIDsOffset;
546     DWORD     CompatIDsLength;
547     ULONG_PTR Reserved;
548     WCHAR     SectionName[LINE_LEN];
549     WCHAR     InfFileName[MAX_PATH];
550     WCHAR     DrvDescription[LINE_LEN];
551     WCHAR     HardwareID[ANYSIZE_ARRAY];
552 } SP_DRVINFO_DETAIL_DATA_W, *PSP_DRVINFO_DETAIL_DATA_W;
553
554 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_DRVINFO_DETAIL_DATA)
555 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_DRVINFO_DETAIL_DATA)
556
557 typedef struct _SP_DRVINSTALL_PARAMS
558 {
559     DWORD     cbSize;
560     DWORD     Rank;
561     DWORD     Flags;
562     DWORD_PTR PrivateData;
563     DWORD     Reserved;
564 } SP_DRVINSTALL_PARAMS, *PSP_DRVINSTALL_PARAMS;
565
566 /* SP_DRVINSTALL_PARAMS Flags values */
567 #define DNF_DUPDESC               0x00000001
568 #define DNF_OLDDRIVER             0x00000002
569 #define DNF_EXCLUDEFROMLIST       0x00000004
570 #define DNF_NODRIVER              0x00000008
571 #define DNF_LEGACYINF             0x00000010
572 #define DNF_CLASS_DRIVER          0x00000020
573 #define DNF_COMPATIBLE_DRIVER     0x00000040
574 #define DNF_INET_DRIVER           0x00000080
575 #define DNF_UNUSED1               0x00000100
576 #define DNF_INDEXED_DRIVER        0x00000200
577 #define DNF_OLD_INET_DRIVER       0x00000400
578 #define DNF_BAD_DRIVER            0x00000800
579 #define DNF_DUPPROVIDER           0x00001000
580 #define DNF_INF_IS_SIGNED         0x00002000
581 #define DNF_OEM_F6_INF            0x00004000
582 #define DNF_DUPDRIVERVER          0x00008000
583 #define DNF_BASIC_DRIVER          0x00010000
584 #define DNF_AUTHENTICODE_SIGNED   0x00020000
585 #define DNF_INSTALLEDDRIVER       0x00040000
586 #define DNF_ALWAYSEXCLUDEFROMLIST 0x00080000
587 /* SP_DRVINSTALL_PARAMS Rank values */
588 #define DRIVER_HARDWAREID_RANK             0x00000fff
589 #define DRIVER_COMPATID_RANK               0x00003fff
590 #define DRIVER_UNTRUSTED_RANK              0x00008000
591 #define DRIVER_UNTRUSTED_HARDWAREID_RANK   0x00008fff
592 #define DRIVER_UNTRUSTED_COMPATID_RANK     0x0000bfff
593 #define DRIVER_W9X_SUSPECT_RANK            0x0000c000
594 #define DRIVER_W9X_SUSPECT_HARDWAREID_RANK 0x0000cfff
595
596 /* Device Information structure (references a device instance that is a member
597    of a device information set) */
598 typedef struct _SP_DEVINFO_DATA
599 {
600    DWORD     cbSize;
601    GUID      ClassGuid;
602    DWORD     DevInst;   /* DEVINST handle */
603    ULONG_PTR Reserved;
604 } SP_DEVINFO_DATA, *PSP_DEVINFO_DATA;
605
606 typedef struct _SP_DEVICE_INTERFACE_DATA
607 {
608    DWORD      cbSize;
609    GUID       InterfaceClassGuid;
610    DWORD      Flags;
611    ULONG_PTR  Reserved;
612 } SP_DEVICE_INTERFACE_DATA, *PSP_DEVICE_INTERFACE_DATA;
613
614 #define SPINT_ACTIVE  0x00000001
615 #define SPINT_DEFAULT 0x00000002
616 #define SPINT_REMOVED 0x00000004
617
618 typedef SP_DEVICE_INTERFACE_DATA  SP_INTERFACE_DEVICE_DATA;
619 typedef PSP_DEVICE_INTERFACE_DATA PSP_INTERFACE_DEVICE_DATA;
620 #define SPID_ACTIVE  SPINT_ACTIVE
621 #define SPID_DEFAULT SPINT_DEFAULT
622 #define SPID_REMOVED SPINT_REMOVED
623
624 typedef struct _SP_DEVICE_INTERFACE_DETAIL_DATA_A
625 {
626    DWORD      cbSize;
627    CHAR       DevicePath[ANYSIZE_ARRAY];
628 } SP_DEVICE_INTERFACE_DETAIL_DATA_A, *PSP_DEVICE_INTERFACE_DETAIL_DATA_A;
629
630 typedef struct _SP_DEVICE_INTERFACE_DETAIL_DATA_W
631 {
632    DWORD      cbSize;
633    WCHAR      DevicePath[ANYSIZE_ARRAY];
634 } SP_DEVICE_INTERFACE_DETAIL_DATA_W, *PSP_DEVICE_INTERFACE_DETAIL_DATA_W;
635
636 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_DEVICE_INTERFACE_DETAIL_DATA)
637 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_DEVICE_INTERFACE_DETAIL_DATA)
638
639 typedef struct _SP_DEVINFO_LIST_DETAIL_DATA_A {
640     DWORD  cbSize;
641     GUID   ClassGuid;
642     HANDLE RemoteMachineHandle;
643     CHAR   RemoteMachineName[SP_MAX_MACHINENAME_LENGTH];
644 } SP_DEVINFO_LIST_DETAIL_DATA_A, *PSP_DEVINFO_LIST_DETAIL_DATA_A;
645
646 typedef struct _SP_DEVINFO_LIST_DETAIL_DATA_W {
647     DWORD  cbSize;
648     GUID   ClassGuid;
649     HANDLE RemoteMachineHandle;
650     WCHAR  RemoteMachineName[SP_MAX_MACHINENAME_LENGTH];
651 } SP_DEVINFO_LIST_DETAIL_DATA_W, *PSP_DEVINFO_LIST_DETAIL_DATA_W;
652
653 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_DEVINFO_LIST_DETAIL_DATA)
654 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_DEVINFO_LIST_DETAIL_DATA)
655
656 typedef DWORD (CALLBACK *PSP_DETSIG_CMPPROC)(HDEVINFO, PSP_DEVINFO_DATA,
657  PSP_DEVINFO_DATA, PVOID);
658
659 typedef struct _COINSTALLER_CONTEXT_DATA
660 {
661     BOOL  PostProcessing;
662     DWORD InstallResult;
663     PVOID PrivateData;
664 } COINSTALLER_CONTEXT_DATA, *PCOINSTALLER_CONTEXT_DATA;
665
666 typedef struct _SP_CLASSIMAGELIST_DATA
667 {
668     DWORD      cbSize;
669     HIMAGELIST ImageList;
670     ULONG_PTR  Reserved;
671 } SP_CLASSIMAGELIST_DATA, *PSP_CLASSIMAGELIST_DATA;
672
673 typedef struct _SP_PROPSHEETPAGE_REQUEST
674 {
675     DWORD            cbSize;
676     DWORD            PageRequested;
677     HDEVINFO         DeviceInfoSet;
678     PSP_DEVINFO_DATA DeviceInfoData;
679 } SP_PROPSHEETPAGE_REQUEST, *PSP_PROPSHEETPAGE_REQUEST;
680
681 /* SP_PROPSHEETPAGE_REQUEST PageRequested values */
682 #define SPPSR_SELECT_DEVICE_RESOURCES      1
683 #define SPPSR_ENUM_BASIC_DEVICE_PROPERTIES 2
684 #define SPPSR_ENUM_ADV_DEVICE_PROPERTIES   3
685
686 typedef struct _SP_BACKUP_QUEUE_PARAMS_V1_A
687 {
688     DWORD cbSize;
689     CHAR  FullInfPath[MAX_PATH];
690     INT   FilenameOffset;
691 } SP_BACKUP_QUEUE_PARAMS_V1_A, *PSP_BACKUP_QUEUE_PARAMS_V1_A;
692
693 typedef struct _SP_BACKUP_QUEUE_PARAMS_V1_W
694 {
695     DWORD cbSize;
696     WCHAR FullInfPath[MAX_PATH];
697     INT   FilenameOffset;
698 } SP_BACKUP_QUEUE_PARAMS_V1_W, *PSP_BACKUP_QUEUE_PARAMS_V1_W;
699
700 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_BACKUP_QUEUE_PARAMS_V1)
701 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_BACKUP_QUEUE_PARAMS_V1)
702
703 typedef struct _SP_BACKUP_QUEUE_PARAMS_V2_A
704 {
705     DWORD cbSize;
706     CHAR  FullInfPath[MAX_PATH];
707     INT   FilenameOffset;
708     CHAR  ReinstallInstance[MAX_PATH];
709 } SP_BACKUP_QUEUE_PARAMS_V2_A, *PSP_BACKUP_QUEUE_PARAMS_V2_A;
710
711 typedef struct _SP_BACKUP_QUEUE_PARAMS_V2_W
712 {
713     DWORD cbSize;
714     WCHAR FullInfPath[MAX_PATH];
715     INT   FilenameOffset;
716     WCHAR ReinstallInstance[MAX_PATH];
717 } SP_BACKUP_QUEUE_PARAMS_V2_W, *PSP_BACKUP_QUEUE_PARAMS_V2_W;
718
719 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_BACKUP_QUEUE_PARAMS_V2)
720 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_BACKUP_QUEUE_PARAMS_V2)
721
722 typedef SP_BACKUP_QUEUE_PARAMS_V2_A SP_BACKUP_QUEUE_PARAMS_A;
723 typedef PSP_BACKUP_QUEUE_PARAMS_V2_A PSP_BACKUP_QUEUE_PARAMS_A;
724 typedef SP_BACKUP_QUEUE_PARAMS_V2_W SP_BACKUP_QUEUE_PARAMS_W;
725 typedef PSP_BACKUP_QUEUE_PARAMS_V2_W PSP_BACKUP_QUEUE_PARAMS_W;
726
727 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_BACKUP_QUEUE_PARAMS)
728 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_BACKUP_QUEUE_PARAMS)
729
730 typedef struct _FILE_IN_CABINET_INFO_A {
731   LPCSTR NameInCabinet;
732   DWORD FileSize;
733   DWORD Win32Error;
734   WORD DosDate;
735   WORD DosTime;
736   WORD DosAttribs;
737   CHAR FullTargetName[MAX_PATH];
738 } FILE_IN_CABINET_INFO_A, *PFILE_IN_CABINET_INFO_A;
739
740 typedef struct _FILE_IN_CABINET_INFO_W {
741   LPCWSTR NameInCabinet;
742   DWORD FileSize;
743   DWORD Win32Error;
744   WORD DosDate;
745   WORD DosTime;
746   WORD DosAttribs;
747   WCHAR FullTargetName[MAX_PATH];
748 } FILE_IN_CABINET_INFO_W, *PFILE_IN_CABINET_INFO_W;
749
750 DECL_WINELIB_SETUPAPI_TYPE_AW(FILE_IN_CABINET_INFO)
751 DECL_WINELIB_SETUPAPI_TYPE_AW(PFILE_IN_CABINET_INFO)
752
753 typedef struct _CABINET_INFO_A {
754   PCSTR CabinetPath;
755   PCSTR CabinetFile;
756   PCSTR DiskName;
757   USHORT SetId;
758   USHORT CabinetNumber;
759 } CABINET_INFO_A, *PCABINET_INFO_A;
760
761 typedef struct _CABINET_INFO_W {
762   PCWSTR CabinetPath;
763   PCWSTR CabinetFile;
764   PCWSTR DiskName;
765   USHORT SetId;
766   USHORT CabinetNumber;
767 } CABINET_INFO_W, *PCABINET_INFO_W;
768
769 DECL_WINELIB_SETUPAPI_TYPE_AW(CABINET_INFO)
770 DECL_WINELIB_SETUPAPI_TYPE_AW(PCABINET_INFO)
771
772 typedef struct _SP_INF_INFORMATION {
773     DWORD InfStyle;
774     DWORD InfCount;
775     BYTE VersionData[ANYSIZE_ARRAY];
776 } SP_INF_INFORMATION, *PSP_INF_INFORMATION;
777
778 #define INF_STYLE_NONE           0x00
779 #define INF_STYLE_OLDNT          0x01
780 #define INF_STYLE_WIN4           0x02
781 #define INF_STYLE_CACHE_ENABLE   0x10
782 #define INF_STYLE_CACHE_DISABLE  0x20
783
784 #define FILEOP_COPY              0
785 #define FILEOP_RENAME            1
786 #define FILEOP_DELETE            2
787 #define FILEOP_BACKUP            3
788
789 #define FILEOP_ABORT             0
790 #define FILEOP_DOIT              1
791 #define FILEOP_SKIP              2
792 #define FILEOP_RETRY             FILEOP_DOIT
793 #define FILEOP_NEWPATH           4
794
795 #define COPYFLG_WARN_IF_SKIP                  0x00000001
796 #define COPYFLG_NOSKIP                        0x00000002
797 #define COPYFLG_NOVERSIONCHECK                0x00000004
798 #define COPYFLG_FORCE_FILE_IN_USE             0x00000008
799 #define COPYFLG_NO_OVERWRITE                  0x00000010
800 #define COPYFLG_NO_VERSION_DIALOG             0x00000020
801 #define COPYFLG_OVERWRITE_OLDER_ONLY          0x00000040
802 #define COPYFLG_PROTECTED_WINDOWS_DRIVER_FILE 0x00000100
803 #define COPYFLG_REPLACEONLY                   0x00000400
804 #define COPYFLG_NODECOMP                      0x00000800
805 #define COPYFLG_REPLACE_BOOT_FILE             0x00001000
806 #define COPYFLG_NOPRUNE                       0x00002000
807 #define COPYFLG_IN_USE_TRY_RENAME             0x00004000
808
809 #define DELFLG_IN_USE  0x00000001
810 #define DELFLG_IN_USE1 0x00010000
811
812 typedef struct _FILEPATHS_A
813 {
814     PCSTR  Target;
815     PCSTR  Source;
816     UINT   Win32Error;
817     DWORD  Flags;
818 } FILEPATHS_A, *PFILEPATHS_A;
819
820 typedef struct _FILEPATHS_W
821 {
822     PCWSTR Target;
823     PCWSTR Source;
824     UINT   Win32Error;
825     DWORD  Flags;
826 } FILEPATHS_W, *PFILEPATHS_W;
827
828 DECL_WINELIB_SETUPAPI_TYPE_AW(FILEPATHS)
829 DECL_WINELIB_SETUPAPI_TYPE_AW(PFILEPATHS)
830
831 typedef struct _FILEPATHS_SIGNERINFO_A
832 {
833     PCSTR Target;
834     PCSTR Source;
835     UINT  Win32Error;
836     DWORD Flags;
837     PCSTR DigitalSigner;
838     PCSTR Version;
839     PCSTR CatalogFile;
840 } FILEPATHS_SIGNERINFO_A, *PFILEPATHS_SIGNERINFO_A;
841
842 typedef struct _FILEPATHS_SIGNERINFO_W
843 {
844     PCWSTR Target;
845     PCWSTR Source;
846     UINT   Win32Error;
847     DWORD  Flags;
848     PCWSTR DigitalSigner;
849     PCWSTR Version;
850     PCWSTR CatalogFile;
851 } FILEPATHS_SIGNERINFO_W, *PFILEPATHS_SIGNERINFO_W;
852
853 DECL_WINELIB_SETUPAPI_TYPE_AW(FILEPATHS_SIGNERINFO)
854
855 typedef struct _SOURCE_MEDIA_A
856 {
857     PCSTR Reserved;
858     PCSTR Tagfile;
859     PCSTR Description;
860     PCSTR SourcePath;
861     PCSTR SourceFile;
862     DWORD Flags;
863 } SOURCE_MEDIA_A, *PSOURCE_MEDIA_A;
864
865 typedef struct _SOURCE_MEDIA_W
866 {
867     PCWSTR Reserved;
868     PCWSTR Tagfile;
869     PCWSTR Description;
870     PCWSTR SourcePath;
871     PCWSTR SourceFile;
872     DWORD  Flags;
873 } SOURCE_MEDIA_W, *PSOURCE_MEDIA_W;
874
875 DECL_WINELIB_SETUPAPI_TYPE_AW(SOURCE_MEDIA)
876
877 typedef struct _SP_ORIGINAL_FILE_INFO_A
878 {
879     DWORD cbSize;
880     CHAR  OriginalInfName[MAX_PATH];
881     CHAR  OriginalCatalogName[MAX_PATH];
882 } SP_ORIGINAL_FILE_INFO_A, *PSP_ORIGINAL_FILE_INFO_A;
883
884 typedef struct _SP_ORIGINAL_FILE_INFO_W
885 {
886     DWORD cbSize;
887     WCHAR  OriginalInfName[MAX_PATH];
888     WCHAR  OriginalCatalogName[MAX_PATH];
889 } SP_ORIGINAL_FILE_INFO_W, *PSP_ORIGINAL_FILE_INFO_W;
890
891 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_ORIGINAL_FILE_INFO)
892 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_ORIGINAL_FILE_INFO)
893
894 typedef struct _SP_INF_SIGNER_INFO_A
895 {
896     DWORD cbSize;
897     CHAR  CatalogFile[MAX_PATH];
898     CHAR  DigitalSigner[MAX_PATH];
899     CHAR  DigitalSignerVersion[MAX_PATH];
900 } SP_INF_SIGNER_INFO_A, *PSP_INF_SIGNER_INFO_A;
901
902 typedef struct _SP_INF_SIGNER_INFO_W
903 {
904     DWORD cbSize;
905     WCHAR CatalogFile[MAX_PATH];
906     WCHAR DigitalSigner[MAX_PATH];
907     WCHAR DigitalSignerVersion[MAX_PATH];
908 } SP_INF_SIGNER_INFO_W, *PSP_INF_SIGNER_INFO_W;
909
910 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_INF_SIGNER_INFO)
911 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_INF_SIGNER_INFO)
912
913 #define SPFILENOTIFY_STARTQUEUE           0x0001
914 #define SPFILENOTIFY_ENDQUEUE             0x0002
915 #define SPFILENOTIFY_STARTSUBQUEUE        0x0003
916 #define SPFILENOTIFY_ENDSUBQUEUE          0x0004
917 #define SPFILENOTIFY_STARTDELETE          0x0005
918 #define SPFILENOTIFY_ENDDELETE            0x0006
919 #define SPFILENOTIFY_DELETEERROR          0x0007
920 #define SPFILENOTIFY_STARTRENAME          0x0008
921 #define SPFILENOTIFY_ENDRENAME            0x0009
922 #define SPFILENOTIFY_RENAMEERROR          0x000a
923 #define SPFILENOTIFY_STARTCOPY            0x000b
924 #define SPFILENOTIFY_ENDCOPY              0x000c
925 #define SPFILENOTIFY_COPYERROR            0x000d
926 #define SPFILENOTIFY_NEEDMEDIA            0x000e
927 #define SPFILENOTIFY_QUEUESCAN            0x000f
928 #define SPFILENOTIFY_CABINETINFO          0x0010
929 #define SPFILENOTIFY_FILEINCABINET        0x0011
930 #define SPFILENOTIFY_NEEDNEWCABINET       0x0012
931 #define SPFILENOTIFY_FILEEXTRACTED        0x0013
932 #define SPFILENOTIFY_FILEOPDELAYED        0x0014
933 #define SPFILENOTIFY_STARTBACKUP          0x0015
934 #define SPFILENOTIFY_BACKUPERROR          0x0016
935 #define SPFILENOTIFY_ENDBACKUP            0x0017
936 #define SPFILENOTIFY_QUEUESCAN_EX         0x0018
937 #define SPFILENOTIFY_STARTREGISTRATION    0x0019
938 #define SPFILENOTIFY_ENDREGISTRATION      0x0020
939 #define SPFILENOTIFY_QUEUESCAN_SIGNERINFO 0x0040
940
941 #define SPFILENOTIFY_LANGMISMATCH         0x00010000
942 #define SPFILENOTIFY_TARGETEXISTS         0x00020000
943 #define SPFILENOTIFY_TARGETNEWER          0x00040000
944
945 #define SPINST_LOGCONFIG                  0x00000001
946 #define SPINST_INIFILES                   0x00000002
947 #define SPINST_REGISTRY                   0x00000004
948 #define SPINST_INI2REG                    0x00000008
949 #define SPINST_FILES                      0x00000010
950 #define SPINST_BITREG                     0x00000020
951 #define SPINST_REGSVR                     0x00000040
952 #define SPINST_UNREGSVR                   0x00000080
953 #define SPINST_PROFILEITEMS               0x00000100
954 #define SPINST_COPYINF                    0x00000200
955 #define SPINST_ALL                        0x000003ff
956 #define SPINST_SINGLESECTION              0x00010000
957 #define SPINST_LOGCONFIG_IS_FORCED        0x00020000
958 #define SPINST_LOGCONFIGS_ARE_OVERRIDES   0x00040000
959 #define SPINST_REGISTERCALLBACKAWARE      0x00080000
960
961 #define SPSVCINST_TAGTOFRONT               0x00000001
962 #define SPSVCINST_ASSOCSERVICE             0x00000002
963 #define SPSVCINST_DELETEEVENTLOGENTRY      0x00000004
964 #define SPSVCINST_NOCLOBBER_DISPLAYNAME    0x00000008
965 #define SPSVCINST_NOCLOBBER_STARTTYPE      0x00000010
966 #define SPSVCINST_NOCLOBBER_ERRORCONTROL   0x00000020
967 #define SPSVCINST_NOCLOBBER_LOADORDERGROUP 0x00000040
968 #define SPSVCINST_NOCLOBBER_DEPENDENCIES   0x00000080
969 #define SPSVCINST_NOCLOBBER_DESCRIPTION    0x00000100
970 #define SPSVCINST_STOPSERVICE              0x00000200
971 #define SPSVCINST_CLOBBER_SECURITY         0x00000400
972 #define SPSVCINST_STARTSERVICE             0x00000800
973
974 #define SP_COPY_DELETESOURCE              0x00000001
975 #define SP_COPY_REPLACEONLY               0x00000002
976 #define SP_COPY_NEWER                     0x00000004
977 #define SP_COPY_NEWER_OR_SAME             SP_COPY_NEWER
978 #define SP_COPY_NOOVERWRITE               0x00000008
979 #define SP_COPY_NODECOMP                  0x00000010
980 #define SP_COPY_LANGUAGEAWARE             0x00000020
981 #define SP_COPY_SOURCE_ABSOLUTE           0x00000040
982 #define SP_COPY_SOURCEPATH_ABSOLUTE       0x00000080
983 #define SP_COPY_IN_USE_NEEDS_REBOOT       0x00000100
984 #define SP_COPY_FORCE_IN_USE              0x00000200
985 #define SP_COPY_NOSKIP                    0x00000400
986 #define SP_FLAG_CABINETCONTINUATION       0x00000800
987 #define SP_COPY_FORCE_NOOVERWRITE         0x00001000
988 #define SP_COPY_FORCE_NEWER               0x00002000
989 #define SP_COPY_WARNIFSKIP                0x00004000
990 #define SP_COPY_NOBROWSE                  0x00008000
991 #define SP_COPY_NEWER_ONLY                0x00010000
992 #define SP_COPY_SOURCE_SIS_MASTER         0x00020000
993 #define SP_COPY_OEMINF_CATALOG_ONLY       0x00040000
994 #define SP_COPY_REPLACE_BOOT_FILE         0x00080000
995 #define SP_COPY_NOPRUNE                   0x00100000
996 #define SP_COPY_OEM_F6_INF                0x00200000
997
998 #define SP_BACKUP_BACKUPPASS 0x00000001
999 #define SP_BACKUP_DEMANDPASS 0x00000002
1000 #define SP_BACKUP_SPECIAL    0x00000004
1001 #define SP_BACKUP_BOOTFILE   0x00000008
1002
1003 #define SPOST_NONE  0
1004 #define SPOST_PATH  1
1005 #define SPOST_URL   2
1006 #define SPOST_MAX   3
1007
1008 #define SPQ_SCAN_FILE_PRESENCE            0x00000001
1009 #define SPQ_SCAN_FILE_VALIDITY            0x00000002
1010 #define SPQ_SCAN_USE_CALLBACK             0x00000004
1011 #define SPQ_SCAN_USE_CALLBACKEX           0x00000008
1012 #define SPQ_SCAN_INFORM_USER              0x00000010
1013 #define SPQ_SCAN_PRUNE_COPY_QUEUE         0x00000020
1014 #define SPQ_SCAN_USE_CALLBACK_SIGNERINFO  0x00000040
1015 #define SPQ_SCAN_PRUNE_DELREN             0x00000080
1016
1017 #define SPQ_DELAYED_COPY 0x00000001
1018
1019 #define SPQ_FLAG_BACKUP_AWARE      0x00000001
1020 #define SPQ_FLAG_ABORT_IF_UNSIGNED 0x00000002
1021 #define SPQ_FLAG_FILES_MODIFIED    0x00000004
1022 #define SPQ_FLAG_VALID             0x00000007
1023
1024 #define FLG_ADDREG_DELREG_BIT             0x00008000
1025 #define FLG_ADDREG_BINVALUETYPE           0x00000001
1026 #define FLG_ADDREG_NOCLOBBER              0x00000002
1027 #define FLG_ADDREG_DELVAL                 0x00000004
1028 #define FLG_ADDREG_APPEND                 0x00000008
1029 #define FLG_ADDREG_KEYONLY                0x00000010
1030 #define FLG_ADDREG_OVERWRITEONLY          0x00000020
1031 #define FLG_ADDREG_64BITKEY               0x00001000
1032 #define FLG_ADDREG_KEYONLY_COMMON         0x00002000
1033 #define FLG_ADDREG_32BITKEY               0x00004000
1034 #define FLG_ADDREG_TYPE_SZ                0x00000000
1035 #define FLG_ADDREG_TYPE_MULTI_SZ          0x00010000
1036 #define FLG_ADDREG_TYPE_EXPAND_SZ         0x00020000
1037 #define FLG_ADDREG_TYPE_BINARY           (0x00000000 | FLG_ADDREG_BINVALUETYPE)
1038 #define FLG_ADDREG_TYPE_DWORD            (0x00010000 | FLG_ADDREG_BINVALUETYPE)
1039 #define FLG_ADDREG_TYPE_NONE             (0x00020000 | FLG_ADDREG_BINVALUETYPE)
1040 #define FLG_ADDREG_TYPE_MASK             (0xFFFF0000 | FLG_ADDREG_BINVALUETYPE)
1041
1042 #define FLG_DELREG_VALUE                 (0x00000000)
1043 #define FLG_DELREG_TYPE_MASK             FLG_ADDREG_TYPE_MASK
1044 #define FLG_DELREG_TYPE_SZ               FLG_ADDREG_TYPE_SZ
1045 #define FLG_DELREG_TYPE_MULTI_SZ         FLG_ADDREG_TYPE_MULTI_SZ
1046 #define FLG_DELREG_TYPE_EXPAND_SZ        FLG_ADDREG_TYPE_EXPAND_SZ
1047 #define FLG_DELREG_TYPE_BINARY           FLG_ADDREG_TYPE_BINARY
1048 #define FLG_DELREG_TYPE_DWORD            FLG_ADDREG_TYPE_DWORD
1049 #define FLG_DELREG_TYPE_NONE             FLG_ADDREG_TYPE_NONE
1050 #define FLG_DELREG_64BITKEY              FLG_ADDREG_64BITKEY
1051 #define FLG_DELREG_KEYONLY_COMMON        FLG_ADDREG_KEYONLY_COMMON
1052 #define FLG_DELREG_32BITKEY              FLG_ADDREG_32BITKEY
1053 #define FLG_DELREG_OPERATION_MASK        (0x000000FE)
1054 #define FLG_DELREG_MULTI_SZ_DELSTRING    (FLG_DELREG_TYPE_MULTI_SZ | FLG_ADDREG_DELREG_BIT | 0x00000002)
1055
1056 #define FLG_REGSVR_DLLREGISTER           0x00000001
1057 #define FLG_REGSVR_DLLINSTALL            0x00000002
1058
1059 #define FLG_PROFITEM_CURRENTUSER         0x00000001
1060 #define FLG_PROFITEM_DELETE              0x00000002
1061 #define FLG_PROFITEM_GROUP               0x00000004
1062 #define FLG_PROFITEM_CSIDL               0x00000008
1063
1064 #define DI_NOVCP 0x00000008
1065
1066 /* Class installer function codes */
1067 #define DIF_SELECTDEVICE                    0x01
1068 #define DIF_INSTALLDEVICE                   0x02
1069 #define DIF_ASSIGNRESOURCES                 0x03
1070 #define DIF_PROPERTIES                      0x04
1071 #define DIF_REMOVE                          0x05
1072 #define DIF_FIRSTTIMESETUP                  0x06
1073 #define DIF_FOUNDDEVICE                     0x07
1074 #define DIF_SELECTCLASSDRIVERS              0x08
1075 #define DIF_VALIDATECLASSDRIVERS            0x09
1076 #define DIF_INSTALLCLASSDRIVERS             0x0a
1077 #define DIF_CALCDISKSPACE                   0x0b
1078 #define DIF_DESTROYPRIVATEDATA              0x0c
1079 #define DIF_VALIDATEDRIVER                  0x0d
1080 #define DIF_MOVEDEVICE                      0x0e
1081 #define DIF_DETECT                          0x0f
1082 #define DIF_INSTALLWIZARD                   0x10
1083 #define DIF_DESTROYWIZARDDATA               0x11
1084 #define DIF_PROPERTYCHANGE                  0x12
1085 #define DIF_ENABLECLASS                     0x13
1086 #define DIF_DETECTVERIFY                    0x14
1087 #define DIF_INSTALLDEVICEFILES              0x15
1088 #define DIF_UNREMOVE                        0x16
1089 #define DIF_SELECTBESTCOMPATDRV             0x17
1090 #define DIF_ALLOW_INSTALL                   0x18
1091 #define DIF_REGISTERDEVICE                  0x19
1092 #define DIF_NEWDEVICEWIZARD_PRESELECT       0x1a
1093 #define DIF_NEWDEVICEWIZARD_SELECT          0x1b
1094 #define DIF_NEWDEVICEWIZARD_PREANALYZE      0x1c
1095 #define DIF_NEWDEVICEWIZARD_POSTANALYZE     0x1d
1096 #define DIF_NEWDEVICEWIZARD_FINISHINSTALL   0x1e
1097 #define DIF_UNUSED1                         0x1f
1098 #define DIF_INSTALLINTERFACES               0x20
1099 #define DIF_DETECTCANCEL                    0x21
1100 #define DIF_REGISTER_COINSTALLERS           0x22
1101 #define DIF_ADDPROPERTYPAGE_ADVANCED        0x23
1102 #define DIF_ADDPROPERTYPAGE_BASIC           0x24
1103 #define DIF_RESERVED1                       0x25
1104 #define DIF_TROUBLESHOOTER                  0x26
1105 #define DIF_POWERMESSAGEWAKE                0x27
1106 #define DIF_ADDREMOTEPROPERTYPAGE_ADVANCED  0x28
1107 #define DIF_UPDATEDRIVER_UI                 0x29
1108 #define DIF_RESERVED2                       0x30
1109
1110 /* Directory ids */
1111 #define DIRID_ABSOLUTE                (-1)
1112 #define DIRID_ABSOLUTE_16BIT          0xffff
1113 #define DIRID_NULL                    0
1114 #define DIRID_SRCPATH                 1
1115 #define DIRID_WINDOWS                 10
1116 #define DIRID_SYSTEM                  11
1117 #define DIRID_DRIVERS                 12
1118 #define DIRID_IOSUBSYS                DIRID_DRIVERS
1119 #define DIRID_INF                     17
1120 #define DIRID_HELP                    18
1121 #define DIRID_FONTS                   20
1122 #define DIRID_VIEWERS                 21
1123 #define DIRID_COLOR                   23
1124 #define DIRID_APPS                    24
1125 #define DIRID_SHARED                  25
1126 #define DIRID_BOOT                    30
1127 #define DIRID_SYSTEM16                50
1128 #define DIRID_SPOOL                   51
1129 #define DIRID_SPOOLDRIVERS            52
1130 #define DIRID_USERPROFILE             53
1131 #define DIRID_LOADER                  54
1132 #define DIRID_PRINTPROCESSOR          55
1133 #define DIRID_DEFAULT                 DIRID_SYSTEM
1134
1135 #define DIRID_COMMON_STARTMENU        16406
1136 #define DIRID_COMMON_PROGRAMS         16407
1137 #define DIRID_COMMON_STARTUP          16408
1138 #define DIRID_COMMON_DESKTOPDIRECTORY 16409
1139 #define DIRID_COMMON_FAVORITES        16415
1140 #define DIRID_COMMON_APPDATA          16419
1141 #define DIRID_PROGRAM_FILES           16422
1142 #define DIRID_SYSTEM_X86              16425
1143 #define DIRID_PROGRAM_FILES_X86       16426
1144 #define DIRID_PROGRAM_FILES_COMMON    16427
1145 #define DIRID_PROGRAM_FILES_COMMONX86 16428
1146 #define DIRID_COMMON_TEMPLATES        16429
1147 #define DIRID_COMMON_DOCUMENTS        16430
1148
1149 #define DIRID_USER                    0x8000
1150
1151
1152 /* Error code */
1153
1154 #define ERROR_EXPECTED_SECTION_NAME       (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0)
1155 #define ERROR_BAD_SECTION_NAME_LINE       (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|1)
1156 #define ERROR_SECTION_NAME_TOO_LONG       (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|2)
1157 #define ERROR_GENERAL_SYNTAX              (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|3)
1158 #define ERROR_WRONG_INF_STYLE             (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x100)
1159 #define ERROR_SECTION_NOT_FOUND           (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x101)
1160 #define ERROR_LINE_NOT_FOUND              (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x102)
1161 #define ERROR_NO_BACKUP                   (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x103)
1162 #define ERROR_NO_ASSOCIATED_CLASS         (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x200)
1163 #define ERROR_CLASS_MISMATCH              (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x201)
1164 #define ERROR_DUPLICATE_FOUND             (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x202)
1165 #define ERROR_NO_DRIVER_SELECTED          (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x203)
1166 #define ERROR_KEY_DOES_NOT_EXIST          (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x204)
1167 #define ERROR_INVALID_DEVINST_NAME        (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x205)
1168 #define ERROR_INVALID_CLASS               (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x206)
1169 #define ERROR_DEVINST_ALREADY_EXISTS      (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x207)
1170 #define ERROR_DEVINFO_NOT_REGISTERED      (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x208)
1171 #define ERROR_INVALID_REG_PROPERTY        (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x209)
1172 #define ERROR_NO_INF                      (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20A)
1173 #define ERROR_NO_SUCH_DEVINST             (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20B)
1174 #define ERROR_CANT_LOAD_CLASS_ICON        (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20C)
1175 #define ERROR_INVALID_CLASS_INSTALLER     (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20D)
1176 #define ERROR_DI_DO_DEFAULT               (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20E)
1177 #define ERROR_DI_NOFILECOPY               (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20F)
1178 #define ERROR_INVALID_HWPROFILE           (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x210)
1179 #define ERROR_NO_DEVICE_SELECTED          (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x211)
1180 #define ERROR_DEVINFO_LIST_LOCKED         (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x212)
1181 #define ERROR_DEVINFO_DATA_LOCKED         (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x213)
1182 #define ERROR_DI_BAD_PATH                 (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x214)
1183 #define ERROR_NO_CLASSINSTALL_PARAMS      (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x215)
1184 #define ERROR_FILEQUEUE_LOCKED            (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x216)
1185 #define ERROR_BAD_SERVICE_INSTALLSECT     (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x217)
1186 #define ERROR_NO_CLASS_DRIVER_LIST        (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x218)
1187 #define ERROR_NO_ASSOCIATED_SERVICE       (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x219)
1188 #define ERROR_NO_DEFAULT_DEVICE_INTERFACE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21A)
1189 #define ERROR_DEVICE_INTERFACE_ACTIVE     (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21B)
1190 #define ERROR_DEVICE_INTERFACE_REMOVED    (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21C)
1191 #define ERROR_BAD_INTERFACE_INSTALLSECT   (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21D)
1192 #define ERROR_NO_SUCH_INTERFACE_CLASS     (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21E)
1193 #define ERROR_INVALID_REFERENCE_STRING    (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21F)
1194 #define ERROR_INVALID_MACHINENAME         (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x220)
1195 #define ERROR_REMOTE_COMM_FAILURE         (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x221)
1196 #define ERROR_MACHINE_UNAVAILABLE         (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x222)
1197 #define ERROR_NO_CONFIGMGR_SERVICES       (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x223)
1198 #define ERROR_INVALID_PROPPAGE_PROVIDER   (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x224)
1199 #define ERROR_NO_SUCH_DEVICE_INTERFACE    (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x225)
1200 #define ERROR_DI_POSTPROCESSING_REQUIRED  (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x226)
1201 #define ERROR_INVALID_COINSTALLER         (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x227)
1202 #define ERROR_NO_COMPAT_DRIVERS           (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x228)
1203 #define ERROR_NO_DEVICE_ICON              (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x229)
1204 #define ERROR_INVALID_INF_LOGCONFIG       (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22A)
1205 #define ERROR_DI_DONT_INSTALL             (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22B)
1206 #define ERROR_INVALID_FILTER_DRIVER       (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22C)
1207 #define ERROR_NON_WINDOWS_NT_DRIVER       (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22D)
1208 #define ERROR_NON_WINDOWS_DRIVER          (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22E)
1209 #define ERROR_NO_CATALOG_FOR_OEM_INF      (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22F)
1210 #define ERROR_DEVINSTALL_QUEUE_NONNATIVE  (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x230)
1211 #define ERROR_NOT_DISABLEABLE             (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x231)
1212 #define ERROR_CANT_REMOVE_DEVINST         (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x232)
1213 #define ERROR_INVALID_TARGET              (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x233)
1214 #define ERROR_DRIVER_NONNATIVE            (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x234)
1215 #define ERROR_IN_WOW64                    (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x235)
1216 #define ERROR_SET_SYSTEM_RESTORE_POINT    (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x236)
1217 #define ERROR_INCORRECTLY_COPIED_INF      (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x237)
1218 #define ERROR_SCE_DISABLED                (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x238)
1219 #define ERROR_WRONG_INF_TYPE              (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x24A)
1220 #define ERROR_NO_DEFAULT_INTERFACE_DEVICE ERROR_NO_DEFAULT_DEVICE_INTERFACE
1221 #define ERROR_INTERFACE_DEVICE_ACTIVE     ERROR_DEVICE_INTERFACE_ACTIVE
1222 #define ERROR_INTERFACE_DEVICE_REMOVED    ERROR_DEVICE_INTERFACE_REMOVED
1223 #define ERROR_NO_SUCH_INTERFACE_DEVICE    ERROR_NO_SUCH_DEVICE_INTERFACE
1224 #define ERROR_NOT_INSTALLED               (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x1000)
1225
1226 /* flags for SetupDiGetClassDevs */
1227 #define DIGCF_DEFAULT         0x00000001
1228 #define DIGCF_PRESENT         0x00000002
1229 #define DIGCF_ALLCLASSES      0x00000004
1230 #define DIGCF_PROFILE         0x00000008
1231 #define DIGCF_DEVICEINTERFACE 0x00000010
1232
1233 /* Flags for SetupDiOpenClassRegKeyEx */
1234 #define DIOCR_INSTALLER       0x00000001
1235 #define DIOCR_INTERFACE       0x00000002
1236
1237 /* Flags for SetupDiBuildClassInfoList(Ex) */
1238 #define DIBCI_NOINSTALLCLASS  0x00000001
1239 #define DIBCI_NODISPLAYCLASS  0x00000002
1240
1241 /* Flags for SetupDiCreateDeviceInfo */
1242 #define DICD_GENERATE_ID       0x00000001
1243 #define DICD_INHERIT_CLASSDRVS 0x00000002
1244
1245 /* Flags for SetupDiOpenDeviceInfo */
1246 #define DIOD_INHERIT_CLASSDRVS 0x00000002
1247 #define DIOD_CANCEL_REMOVE     0x00000004
1248
1249 /* Flags for SetupDiOpenDeviceInterface */
1250 #define DIODI_NO_ADD 0x00000001
1251
1252 /* Flags for SetupDiRegisterDeviceInfo */
1253 #define SPRDI_FIND_DUPS 0x00000001
1254
1255 /* Values for SetupDi*Info* DriverType */
1256 #define SPDIT_NODRIVER     0x00000000
1257 #define SPDIT_CLASSDRIVER  0x00000001
1258 #define SPDIT_COMPATDRIVER 0x00000002
1259
1260 /* setup device registry property codes */
1261 #define SPDRP_DEVICEDESC                  0x00000000
1262 #define SPDRP_HARDWAREID                  0x00000001
1263 #define SPDRP_COMPATIBLEIDS               0x00000002
1264 #define SPDRP_UNUSED0                     0x00000003
1265 #define SPDRP_SERVICE                     0x00000004
1266 #define SPDRP_UNUSED1                     0x00000005
1267 #define SPDRP_UNUSED2                     0x00000006
1268 #define SPDRP_CLASS                       0x00000007
1269 #define SPDRP_CLASSGUID                   0x00000008
1270 #define SPDRP_DRIVER                      0x00000009
1271 #define SPDRP_CONFIGFLAGS                 0x0000000a
1272 #define SPDRP_MFG                         0x0000000b
1273 #define SPDRP_FRIENDLYNAME                0x0000000c
1274 #define SPDRP_LOCATION_INFORMATION        0x0000000d
1275 #define SPDRP_PHYSICAL_DEVICE_OBJECT_NAME 0x0000000e
1276 #define SPDRP_CAPABILITIES                0x0000000f
1277 #define SPDRP_UI_NUMBER                   0x00000010
1278 #define SPDRP_UPPERFILTERS                0x00000011
1279 #define SPDRP_LOWERFILTERS                0x00000012
1280 #define SPDRP_BUSTYPEGUID                 0x00000013
1281 #define SPDRP_LEGACYBUSTYPE               0x00000014
1282 #define SPDRP_BUSNUMBER                   0x00000015
1283 #define SPDRP_ENUMERATOR_NAME             0x00000016
1284 #define SPDRP_SECURITY                    0x00000017
1285 #define SPDRP_SECURITY_SDS                0x00000018
1286 #define SPDRP_DEVTYPE                     0x00000019
1287 #define SPDRP_EXCLUSIVE                   0x0000001a
1288 #define SPDRP_CHARACTERISTICS             0x0000001b
1289 #define SPDRP_ADDRESS                     0x0000001c
1290 #define SPDRP_UI_NUMBER_DESC_FORMAT       0x0000001d
1291 #define SPDRP_DEVICE_POWER_DATA           0x0000001e
1292 #define SPDRP_REMOVAL_POLICY              0x0000001f
1293 #define SPDRP_REMOVAL_POLICY_HW_DEFAULT   0x00000020
1294 #define SPDRP_REMOVAL_POLICY_OVERRIDE     0x00000021
1295 #define SPDRP_INSTALL_STATE               0x00000022
1296 #define SPDRP_MAXIMUM_PROPERTY            0x00000023
1297
1298 #define DPROMPT_SUCCESS        0
1299 #define DPROMPT_CANCEL         1
1300 #define DPROMPT_SKIPFILE       2
1301 #define DPROMPT_BUFFERTOOSMALL 3
1302 #define DPROMPT_OUTOFMEMORY    4
1303
1304 #define SETDIRID_NOT_FULL_PATH 0x00000001
1305
1306 #define IDF_NOBROWSE     0x00000001
1307 #define IDF_NOSKIP       0x00000002
1308 #define IDF_NODETAILS    0x00000004
1309 #define IDF_NOCOMPRESSED 0x00000008
1310 #define IDF_CHECKFIRST   0x00000100
1311 #define IDF_NOBEEP       0x00000200
1312 #define IDF_NOFOREGROUND 0x00000400
1313 #define IDF_WARNIFSKIP   0x00000800
1314
1315 #define IDF_NOREMOVABLEMEDIAPROMPT 0x00001000
1316 #define IDF_USEDISKNAMEASPROMPT    0x00002000
1317 #define IDF_OEMDISK                0x80000000
1318
1319 #define INFINFO_INF_SPEC_IS_HINF        1
1320 #define INFINFO_INF_NAME_IS_ABSOLUTE    2
1321 #define INFINFO_DEFAULT_SEARCH          3
1322 #define INFINFO_REVERSE_DEFAULT_SEARCH  4
1323 #define INFINFO_INF_PATH_LIST_SEARCH    5
1324
1325 #define LogSeverity         DWORD
1326 #define LogSevInformation   0x00000000
1327 #define LogSevWarning       0x00000001
1328 #define LogSevError         0x00000002
1329 #define LogSevFatalError    0x00000003
1330 #define LogSevMaximum       0x00000004
1331
1332 #define SRCINFO_PATH           1
1333 #define SRCINFO_TAGFILE        2
1334 #define SRCINFO_DESCRIPTION    3
1335 #define SRCINFO_FLAGS          4
1336 #define SRCINFO_TAGFILE2       5
1337
1338 #define SRC_FLAGS_CABFILE      (0x0010)
1339
1340 #define FILE_COMPRESSION_NONE       0
1341 #define FILE_COMPRESSION_WINLZA     1
1342 #define FILE_COMPRESSION_MSZIP      2
1343 #define FILE_COMPRESSION_NTCAB      3
1344
1345 #define SPDSL_IGNORE_DISK              0x00000001
1346 #define SPDSL_DISALLOW_NEGATIVE_ADJUST 0x00000002
1347
1348 /* SetupInitializeFileLog Flags values */
1349 #define SPFILELOG_SYSTEMLOG 0x00000001
1350 #define SPFILELOG_FORCENEW  0x00000002
1351 #define SPFILELOG_QUERYONLY 0x00000004
1352
1353 /* SetupLogFile Flags values */
1354 #define SPFILELOG_OEMFILE 0x00000001
1355
1356 /* SetupDiCreateDevRegKey, SetupDiOpenDevRegKey, and SetupDiDeleteDevRegKey
1357  * KeyType values
1358  */
1359 #define DIREG_DEV  0x00000001
1360 #define DIREG_DRV  0x00000002
1361 #define DIREG_BOTH 0x00000004
1362
1363 /* SetupDiDrawMiniIcon Flags values */
1364 #define DMI_MASK    0x00000001
1365 #define DMI_BKCOLOR 0x00000002
1366 #define DMI_USERECT 0x00000004
1367
1368 /* SetupDiGetClassDevPropertySheets PropertySheetType values */
1369 #define DIGCDP_FLAG_BASIC           0x00000001
1370 #define DIGCDP_FLAG_ADVANCED        0x00000002
1371 #define DIGCDP_FLAG_REMOTE_BASIC    0x00000003
1372 #define DIGCDP_FLAG_REMOTE_ADVANCED 0x00000004
1373
1374 typedef enum {
1375     SetupFileLogSourceFilename,
1376     SetupFileLogChecksum,
1377     SetupFileLogDiskTagfile,
1378     SetupFileLogDiskDescription,
1379     SetupFileLogOtherInfo,
1380     SetupFileLogMax
1381 } SetupFileLogInfo;
1382
1383 /* SetupDiGetWizardPage PageType values */
1384 #define SPWPT_SELECTDEVICE 0x00000001
1385 /* SetupDiGetWizardPage Flags values */
1386 #define SPWP_USE_DEVINFO_DATA 0x00000001
1387
1388 /* SetupDiGetCustomDeviceProperty Flags values */
1389 #define DICUSTOMDEVPROP_MERGE_MULTISZ 0x00000001
1390
1391 /* SetupConfigureWmiFromInfSection Flags values */
1392 #define SCWMI_CLOBBER_SECURITY 0x00000001
1393
1394 /* SetupUninstallOEMInf Flags values */
1395 #define SUOI_FORCEDELETE 0x00000001
1396
1397 LONG     WINAPI AddTagToGroupOrderList(PCWSTR lpGroupName, DWORD dwUnknown2, DWORD dwUnknown3);
1398 DWORD    WINAPI CaptureAndConvertAnsiArg(PCSTR lpSrc, PWSTR *lpDst);
1399 DWORD    WINAPI CaptureStringArg(PCWSTR lpSrc, PWSTR *lpDst);
1400 BOOL     WINAPI DelayedMove(PCWSTR lpExistingFileName, PCWSTR lpNewFileName);
1401 BOOL     WINAPI DoesUserHavePrivilege(PCWSTR lpPrivilegeName);
1402 PWSTR    WINAPI DuplicateString(PCWSTR lpSrc);
1403 BOOL     WINAPI EnablePrivilege(PCWSTR lpPrivilegeName, BOOL bEnable);
1404 BOOL     WINAPI FileExists(PCWSTR lpFileName, PWIN32_FIND_DATAW lpFileFindData);
1405 void     WINAPI InstallHinfSectionA( HWND hwnd, HINSTANCE handle, PCSTR cmdline, INT show );
1406 void     WINAPI InstallHinfSectionW( HWND hwnd, HINSTANCE handle, PCWSTR cmdline, INT show );
1407 #define         InstallHinfSection WINELIB_NAME_AW(InstallHinfSection)
1408 BOOL     WINAPI IsUserAdmin(VOID);
1409 PWSTR    WINAPI MultiByteToUnicode(PCSTR lpMultiByteStr, UINT uCodePage);
1410 VOID     WINAPI MyFree(PVOID lpMem);
1411 PVOID    WINAPI MyMalloc(DWORD dwSize);
1412 PVOID    WINAPI MyRealloc(PVOID lpSrc, DWORD dwSize);
1413 DWORD    WINAPI OpenAndMapForRead(PCWSTR, PDWORD, PHANDLE, PHANDLE, PVOID *);
1414 LONG     WINAPI QueryRegistryValue(HKEY, PCWSTR, PBYTE *, PDWORD, PDWORD);
1415 /* RetreiveFileSecurity is not a typo, as per Microsoft's dlls */
1416 DWORD    WINAPI RetreiveFileSecurity(PCWSTR, PSECURITY_DESCRIPTOR *);
1417 BOOL     WINAPI SetupAddSectionToDiskSpaceListA(HDSKSPC, HINF, HINF, PCSTR, UINT, PVOID, UINT);
1418 BOOL     WINAPI SetupAddSectionToDiskSpaceListW(HDSKSPC, HINF, HINF, PCWSTR, UINT, PVOID, UINT);
1419 #define         SetupAddSectionToDiskSpaceList WINELIB_NAME_AW(SetupAddSectionToDiskSpaceList)
1420 BOOL     WINAPI SetupAddToDiskSpaceListA(HDSKSPC, PCSTR, LONGLONG, UINT, PVOID, UINT);
1421 BOOL     WINAPI SetupAddToDiskSpaceListW(HDSKSPC, PCWSTR, LONGLONG, UINT, PVOID, UINT);
1422 #define         SetupAddToDiskSpaceList WINELIB_NAME_AW(SetupAddToDiskSpaceList)
1423 BOOL     WINAPI SetupAddToSourceListA(DWORD, PCSTR);
1424 BOOL     WINAPI SetupAddToSourceListW(DWORD, PCWSTR);
1425 #define         SetupAddToSourceList WINELIB_NAME_AW(SetupAddToSourceList)
1426 BOOL     WINAPI SetupAdjustDiskSpaceListA(HDSKSPC, LPCSTR, LONGLONG, PVOID, UINT);
1427 BOOL     WINAPI SetupAdjustDiskSpaceListW(HDSKSPC, LPCWSTR, LONGLONG, PVOID, UINT);
1428 #define         SetupAdjustDiskSpaceList WINELIB_NAME_AW(SetupAdjustDiskSpaceList)
1429 BOOL     WINAPI SetupCancelTemporarySourceList(void);
1430 BOOL     WINAPI SetupConfigureWmiFromInfSectionA(HINF, PCSTR, DWORD);
1431 BOOL     WINAPI SetupConfigureWmiFromInfSectionW(HINF, PCWSTR, DWORD);
1432 #define         SetupConfigureWmiFromInfSection WINELIB_NAME_AW(SetupConfigureWmiFromInfSection)
1433 UINT     WINAPI SetupBackupErrorA(HWND, PCSTR, PCSTR, PCSTR, UINT, DWORD);
1434 UINT     WINAPI SetupBackupErrorW(HWND, PCWSTR, PCWSTR, PCWSTR, UINT, DWORD);
1435 #define         SetupBackupError WINELIB_NAME_AW(SetupBackupError)
1436 BOOL     WINAPI SetupCloseFileQueue( HSPFILEQ );
1437 void     WINAPI SetupCloseInfFile( HINF hinf );
1438 void     WINAPI SetupCloseLog(void);
1439 BOOL     WINAPI SetupCommitFileQueueA( HWND, HSPFILEQ, PSP_FILE_CALLBACK_A, PVOID );
1440 BOOL     WINAPI SetupCommitFileQueueW( HWND, HSPFILEQ, PSP_FILE_CALLBACK_W, PVOID );
1441 #define         SetupCommitFileQueue WINELIB_NAME_AW(SetupCommitFileQueue)
1442 UINT     WINAPI SetupCopyErrorA( HWND, PCSTR, PCSTR, PCSTR, PCSTR, PCSTR, UINT, DWORD, PSTR, DWORD, PDWORD );
1443 UINT     WINAPI SetupCopyErrorW( HWND, PCWSTR, PCWSTR, PCWSTR, PCWSTR, PCWSTR, UINT, DWORD, PWSTR, DWORD, PDWORD );
1444 #define         SetupCopyError WINELIB_NAME_AW(SetupCopyError)
1445 BOOL     WINAPI SetupCopyOEMInfA( PCSTR, PCSTR, DWORD, DWORD, PSTR, DWORD, PDWORD, PSTR * );
1446 BOOL     WINAPI SetupCopyOEMInfW( PCWSTR, PCWSTR, DWORD, DWORD, PWSTR, DWORD, PDWORD, PWSTR * );
1447 #define         SetupCopyOEMInf WINELIB_NAME_AW(SetupCopyOEMInf)
1448 HDSKSPC  WINAPI SetupCreateDiskSpaceListA(PVOID, DWORD, UINT);
1449 HDSKSPC  WINAPI SetupCreateDiskSpaceListW(PVOID, DWORD, UINT);
1450 #define         SetupCreateDiskSpaceList WINELIB_NAME_AW(SetupCreateDiskSpaceList)
1451 DWORD    WINAPI SetupDecompressOrCopyFileA( PCSTR, PCSTR, PUINT );
1452 DWORD    WINAPI SetupDecompressOrCopyFileW( PCWSTR, PCWSTR, PUINT );
1453 #define         SetupDecompressOrCopyFile WINELIB_NAME_AW(SetupDecompressOrCopyFile)
1454 UINT     WINAPI SetupDefaultQueueCallbackA( PVOID, UINT, UINT_PTR, UINT_PTR );
1455 UINT     WINAPI SetupDefaultQueueCallbackW( PVOID, UINT, UINT_PTR, UINT_PTR );
1456 #define         SetupDefaultQueueCallback WINELIB_NAME_AW(SetupDefaultQueueCallback)
1457 UINT     WINAPI SetupDeleteErrorA( HWND, PCSTR, PCSTR, UINT, DWORD );
1458 UINT     WINAPI SetupDeleteErrorW( HWND, PCWSTR, PCWSTR, UINT, DWORD );
1459 #define         SetupDeleteError WINELIB_NAME_AW(SetupDeleteError)
1460 BOOL     WINAPI SetupDestroyDiskSpaceList(HDSKSPC);
1461 BOOL     WINAPI SetupDiAskForOEMDisk(HDEVINFO, PSP_DEVINFO_DATA);
1462 BOOL     WINAPI SetupDiBuildClassInfoList(DWORD, LPGUID, DWORD, PDWORD);
1463 BOOL     WINAPI SetupDiBuildClassInfoListExA(DWORD, LPGUID, DWORD, PDWORD, PCSTR, PVOID);
1464 BOOL     WINAPI SetupDiBuildClassInfoListExW(DWORD, LPGUID, DWORD, PDWORD, PCWSTR, PVOID);
1465 #define         SetupDiBuildClassInfoListEx WINELIB_NAME_AW(SetupDiBuildClassInfoListEx)
1466 BOOL     WINAPI SetupDiBuildDriverInfoList(HDEVINFO, PSP_DEVINFO_DATA, DWORD);
1467 BOOL     WINAPI SetupDiCallClassInstaller(DI_FUNCTION, HDEVINFO, PSP_DEVINFO_DATA);
1468 BOOL     WINAPI SetupDiCancelDriverInfoSearch(HDEVINFO);
1469 BOOL     WINAPI SetupDiChangeState(HDEVINFO, PSP_DEVINFO_DATA);
1470 BOOL     WINAPI SetupDiClassGuidsFromNameA(LPCSTR, LPGUID, DWORD, PDWORD);
1471 BOOL     WINAPI SetupDiClassGuidsFromNameW(LPCWSTR, LPGUID, DWORD, PDWORD);
1472 #define         SetupDiClassGuidsFromName WINELIB_NAME_AW(SetupDiClassGuidsFromName)
1473 BOOL     WINAPI SetupDiClassGuidsFromNameExA(LPCSTR, LPGUID, DWORD, PDWORD, LPCSTR, PVOID);
1474 BOOL     WINAPI SetupDiClassGuidsFromNameExW(LPCWSTR, LPGUID, DWORD, PDWORD, LPCWSTR, PVOID);
1475 #define         SetupDiClassGuidsFromNameEx WINELIB_NAME_AW(SetupDiClassGuidsFromNameEx)
1476 BOOL     WINAPI SetupDiClassNameFromGuidA(const GUID*, PSTR, DWORD, PDWORD);
1477 BOOL     WINAPI SetupDiClassNameFromGuidW(const GUID*, PWSTR, DWORD, PDWORD);
1478 #define         SetupDiClassNameFromGuid WINELIB_NAME_AW(SetupDiClassNameFromGuid)
1479 BOOL     WINAPI SetupDiClassNameFromGuidExA(const GUID*, PSTR, DWORD, PDWORD, PCSTR, PVOID);
1480 BOOL     WINAPI SetupDiClassNameFromGuidExW(const GUID*, PWSTR, DWORD, PDWORD, PCWSTR, PVOID);
1481 #define         SetupDiClassNameFromGuidEx WINELIB_NAME_AW(SetupDiClassNameFromGuidEx)
1482 HDEVINFO WINAPI SetupDiCreateDeviceInfoList(const GUID *, HWND);
1483 HDEVINFO WINAPI SetupDiCreateDeviceInfoListExA(const GUID *, HWND, PCSTR, PVOID);
1484 HDEVINFO WINAPI SetupDiCreateDeviceInfoListExW(const GUID *, HWND, PCWSTR, PVOID);
1485 #define         SetupDiCreateDeviceInfoListEx WINELIB_NAME_AW(SetupDiCreateDeviceInfoListEx)
1486 BOOL     WINAPI SetupDiCreateDeviceInfoA(HDEVINFO, PCSTR, CONST GUID*, PCSTR, HWND, DWORD,PSP_DEVINFO_DATA);
1487 BOOL     WINAPI SetupDiCreateDeviceInfoW(HDEVINFO, PCWSTR, CONST GUID*, PCWSTR, HWND, DWORD,PSP_DEVINFO_DATA);
1488 #define         SetupDiCreateDeviceInfo WINELIB_NAME_AW(SetupDiCreateDeviceInfo)
1489 BOOL     WINAPI SetupDiCreateDeviceInterfaceA(HDEVINFO, PSP_DEVINFO_DATA, const GUID *, PCSTR, DWORD, PSP_DEVICE_INTERFACE_DATA);
1490 BOOL     WINAPI SetupDiCreateDeviceInterfaceW(HDEVINFO, PSP_DEVINFO_DATA, const GUID *, PCWSTR, DWORD, PSP_DEVICE_INTERFACE_DATA);
1491 #define         SetupDiCreateDeviceInterface WINELIB_NAME_AW(SetupDiCreateDeviceInterface)
1492 HKEY     WINAPI SetupDiCreateDeviceInterfaceRegKeyA(HDEVINFO, PSP_DEVICE_INTERFACE_DATA, DWORD, REGSAM, HINF, PCSTR);
1493 HKEY     WINAPI SetupDiCreateDeviceInterfaceRegKeyW(HDEVINFO, PSP_DEVICE_INTERFACE_DATA, DWORD, REGSAM, HINF, PCWSTR);
1494 #define         SetupDiCreateDeviceInterfaceRegKey WINELIB_NAME_AW(SetupDiCreateDeviceInterfaceRegKey)
1495 HKEY     WINAPI SetupDiCreateDevRegKeyA(HDEVINFO, PSP_DEVINFO_DATA, DWORD, DWORD, DWORD, HINF, PCSTR);
1496 HKEY     WINAPI SetupDiCreateDevRegKeyW(HDEVINFO, PSP_DEVINFO_DATA, DWORD, DWORD, DWORD, HINF, PCWSTR);
1497 #define         SetupDiCreateDevRegKey WINELIB_NAME_AW(SetupDiCreateDevRegKey)
1498 BOOL     WINAPI SetupDiDeleteDeviceInfo(HDEVINFO, PSP_DEVINFO_DATA);
1499 BOOL     WINAPI SetupDiDeleteDeviceInterfaceData(HDEVINFO, PSP_DEVICE_INTERFACE_DATA);
1500 BOOL     WINAPI SetupDiDeleteDeviceInterfaceRegKey(HDEVINFO, PSP_DEVICE_INTERFACE_DATA, DWORD);
1501 BOOL     WINAPI SetupDiDeleteDevRegKey(HDEVINFO, PSP_DEVINFO_DATA, DWORD, DWORD, DWORD);
1502 BOOL     WINAPI SetupDiDestroyClassImageList(PSP_CLASSIMAGELIST_DATA);
1503 BOOL     WINAPI SetupDiDestroyDeviceInfoList(HDEVINFO);
1504 BOOL     WINAPI SetupDiDestroyDriverInfoList(HDEVINFO, PSP_DEVINFO_DATA, DWORD);
1505 INT      WINAPI SetupDiDrawMiniIcon(HDC, RECT, INT, DWORD);
1506 BOOL     WINAPI SetupDiEnumDeviceInfo(HDEVINFO, DWORD, PSP_DEVINFO_DATA);
1507 BOOL     WINAPI SetupDiEnumDeviceInterfaces(HDEVINFO, PSP_DEVINFO_DATA, const GUID *, DWORD, PSP_DEVICE_INTERFACE_DATA);
1508 BOOL     WINAPI SetupDiEnumDriverInfoA(HDEVINFO, PSP_DEVINFO_DATA, DWORD, DWORD, PSP_DRVINFO_DATA_A);
1509 BOOL     WINAPI SetupDiEnumDriverInfoW(HDEVINFO, PSP_DEVINFO_DATA, DWORD, DWORD, PSP_DRVINFO_DATA_W);
1510 #define         SetupDiEnumDriverInfo WINELIB_NAME_AW(SetupDiEnumDriverInfo)
1511 BOOL     WINAPI SetupDiGetActualModelsSectionA(PINFCONTEXT, PSP_ALTPLATFORM_INFO, PSTR, DWORD, PDWORD, PVOID);
1512 BOOL     WINAPI SetupDiGetActualModelsSectionW(PINFCONTEXT, PSP_ALTPLATFORM_INFO, PWSTR, DWORD, PDWORD, PVOID);
1513 #define         SetupDiGetActualModelsSection WINELIB_NAME_AW(SetupDiGetActualModelsSection)
1514 BOOL     WINAPI SetupDiGetActualSectionToInstallA(HINF, PCSTR, PSTR, DWORD, PDWORD, PSTR *);
1515 BOOL     WINAPI SetupDiGetActualSectionToInstallW(HINF, PCWSTR, PWSTR, DWORD, PDWORD, PWSTR *);
1516 #define         SetupDiGetActualSectionToInstall WINELIB_NAME_AW(SetupDiGetActualSectionToInstall)
1517 BOOL     WINAPI SetupDiGetActualSectionToInstallExA(HINF, PCSTR, PSTR, DWORD, PDWORD, PSTR *, PVOID);
1518 BOOL     WINAPI SetupDiGetActualSectionToInstallExW(HINF, PCWSTR, PWSTR, DWORD, PDWORD, PWSTR *, PVOID);
1519 #define         SetupDiGetActualSectionToInstallEx WINELIB_NAME_AW(SetupDiGetActualSectionToInstalExl)
1520 BOOL     WINAPI SetupDiGetClassBitmapIndex(const GUID *, PINT);
1521 BOOL     WINAPI SetupDiGetClassDescriptionA(const GUID*, PSTR, DWORD, PDWORD);
1522 BOOL     WINAPI SetupDiGetClassDescriptionW(const GUID*, PWSTR, DWORD, PDWORD);
1523 #define         SetupDiGetClassDescription WINELIB_NAME_AW(SetupDiGetClassDescription)
1524 BOOL     WINAPI SetupDiGetClassDescriptionExA(const GUID*, PSTR, DWORD, PDWORD, PCSTR, PVOID);
1525 BOOL     WINAPI SetupDiGetClassDescriptionExW(const GUID*, PWSTR, DWORD, PDWORD, PCWSTR, PVOID);
1526 #define         SetupDiGetClassDescriptionEx WINELIB_NAME_AW(SetupDiGetClassDescriptionEx)
1527 BOOL     WINAPI SetupDiGetClassDevPropertySheetsA(HDEVINFO, PSP_DEVINFO_DATA, LPPROPSHEETHEADERA, DWORD, PDWORD, DWORD);
1528 BOOL     WINAPI SetupDiGetClassDevPropertySheetsW(HDEVINFO, PSP_DEVINFO_DATA, LPPROPSHEETHEADERW, DWORD, PDWORD, DWORD);
1529 #define         SetupDiGetClassDevPropertySheets WINELIB_NAME_AW(SetupDiGetClassDevPropertySheets)
1530 HDEVINFO WINAPI SetupDiGetClassDevsA(CONST GUID *,LPCSTR,HWND,DWORD);
1531 HDEVINFO WINAPI SetupDiGetClassDevsW(CONST GUID *,LPCWSTR,HWND,DWORD);
1532 #define         SetupDiGetClassDevs WINELIB_NAME_AW(SetupDiGetClassDevs)
1533 HDEVINFO WINAPI SetupDiGetClassDevsExA(const GUID *, PCSTR, HWND, DWORD, HDEVINFO, PCSTR, PVOID);
1534 HDEVINFO WINAPI SetupDiGetClassDevsExW(const GUID *, PCWSTR, HWND, DWORD, HDEVINFO, PCWSTR, PVOID);
1535 #define         SetupDiGetClassDevsEx WINELIB_NAME_AW(SetupDiGetClassDevsEx)
1536 BOOL     WINAPI SetupDiGetClassImageIndex(PSP_CLASSIMAGELIST_DATA, const GUID *, PINT);
1537 BOOL     WINAPI SetupDiGetClassImageList(PSP_CLASSIMAGELIST_DATA);
1538 BOOL     WINAPI SetupDiGetClassImageListExA(PSP_CLASSIMAGELIST_DATA, PCSTR, PVOID);
1539 BOOL     WINAPI SetupDiGetClassImageListExW(PSP_CLASSIMAGELIST_DATA, PCWSTR, PVOID);
1540 #define         SetupDiGetClassImageListEx WINELIB_NAME_AW(SetupDiGetClassImageListEx)
1541 BOOL     WINAPI SetupDiGetClassInstallParamsA(HDEVINFO, PSP_DEVINFO_DATA, PSP_CLASSINSTALL_HEADER, DWORD, PDWORD);
1542 BOOL     WINAPI SetupDiGetClassInstallParamsW(HDEVINFO, PSP_DEVINFO_DATA, PSP_CLASSINSTALL_HEADER, DWORD, PDWORD);
1543 #define         SetupDiGetClassInstallParams WINELIB_NAME_AW(SetupDiGetClassInstallParams)
1544 BOOL     WINAPI SetupDiGetClassRegistryPropertyA(const GUID *, DWORD, PDWORD, PBYTE, DWORD, PDWORD, PCSTR, PVOID);
1545 BOOL     WINAPI SetupDiGetClassRegistryPropertyW(const GUID *, DWORD, PDWORD, PBYTE, DWORD, PDWORD, PCWSTR, PVOID);
1546 #define         SetupDiGetClassRegistryProperty WINELIB_NAME_AW(SetupDiGetClassRegistryProperty)
1547 BOOL     WINAPI SetupDiGetCustomDevicePropertyA(HDEVINFO, PSP_DEVINFO_DATA, PCSTR, DWORD, PDWORD, PBYTE, DWORD, PDWORD);
1548 BOOL     WINAPI SetupDiGetCustomDevicePropertyW(HDEVINFO, PSP_DEVINFO_DATA, PCWSTR, DWORD, PDWORD, PBYTE, DWORD, PDWORD);
1549 #define         SetupDiGetCustomDeviceProperty WINELIB_NAME_AW(SetupDiGetCustomDeviceProperty)
1550 BOOL     WINAPI SetupDiGetDeviceInfoListClass(HDEVINFO, LPGUID);
1551 BOOL     WINAPI SetupDiGetDeviceInfoListDetailA(HDEVINFO, PSP_DEVINFO_LIST_DETAIL_DATA_A);
1552 BOOL     WINAPI SetupDiGetDeviceInfoListDetailW(HDEVINFO, PSP_DEVINFO_LIST_DETAIL_DATA_W);
1553 #define         SetupDiGetDeviceInfoListDetail WINELIB_NAME_AW(SetupDiGetDeviceInfoListDetail)
1554 BOOL     WINAPI SetupDiGetDeviceInstallParamsA(HDEVINFO, PSP_DEVINFO_DATA, PSP_DEVINSTALL_PARAMS_A);
1555 BOOL     WINAPI SetupDiGetDeviceInstallParamsW(HDEVINFO, PSP_DEVINFO_DATA, PSP_DEVINSTALL_PARAMS_W);
1556 #define         SetupDiGetDeviceInstallParams WINELIB_NAME_AW(SetupDiGetDeviceInstallParams)
1557 BOOL     WINAPI SetupDiGetDeviceInstanceIdA(HDEVINFO, PSP_DEVINFO_DATA, PSTR, DWORD, PDWORD);
1558 BOOL     WINAPI SetupDiGetDeviceInstanceIdW(HDEVINFO, PSP_DEVINFO_DATA, PWSTR, DWORD, PDWORD);
1559 #define         SetupDiGetDeviceInstanceId WINELIB_NAME_AW(SetupDiGetDeviceInstanceId)
1560 BOOL     WINAPI SetupDiGetDeviceInterfaceAlias(HDEVINFO, PSP_DEVICE_INTERFACE_DATA, const GUID *, PSP_DEVICE_INTERFACE_DATA);
1561 BOOL     WINAPI SetupDiGetDeviceInterfaceDetailA(HDEVINFO, PSP_DEVICE_INTERFACE_DATA, PSP_DEVICE_INTERFACE_DETAIL_DATA_A,
1562                                                  DWORD, PDWORD, PSP_DEVINFO_DATA);
1563 BOOL     WINAPI SetupDiGetDeviceInterfaceDetailW(HDEVINFO, PSP_DEVICE_INTERFACE_DATA, PSP_DEVICE_INTERFACE_DETAIL_DATA_W,
1564                                                  DWORD, PDWORD, PSP_DEVINFO_DATA);
1565 #define         SetupDiGetDeviceInterfaceDetail WINELIB_NAME_AW(SetupDiGetDeviceInterfaceDetail)
1566 BOOL     WINAPI SetupDiGetDeviceRegistryPropertyA(HDEVINFO, PSP_DEVINFO_DATA, DWORD, PDWORD, PBYTE, DWORD, PDWORD);
1567 BOOL     WINAPI SetupDiGetDeviceRegistryPropertyW(HDEVINFO, PSP_DEVINFO_DATA, DWORD, PDWORD, PBYTE, DWORD, PDWORD);
1568 BOOL     WINAPI SetupDiGetDriverInfoDetailA(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_A, PSP_DRVINFO_DETAIL_DATA_A, DWORD, PDWORD);
1569 BOOL     WINAPI SetupDiGetDriverInfoDetailW(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_W, PSP_DRVINFO_DETAIL_DATA_W, DWORD, PDWORD);
1570 #define         SetupDiGetDriverInfoDetail WINELIB_NAME_AW(SetupDiGetDriverInfoDetail)
1571 BOOL     WINAPI SetupDiGetDriverInstallParamsA(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_A, PSP_DRVINSTALL_PARAMS);
1572 BOOL     WINAPI SetupDiGetDriverInstallParamsW(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_W, PSP_DRVINSTALL_PARAMS);
1573 #define         SetupDiGetDriverInstallParams WINELIB_NAME_AW(SetupDiGetDriverInstallParams)
1574 BOOL     WINAPI SetupDiGetHwProfileFriendlyNameA(DWORD, PSTR, DWORD, PDWORD);
1575 BOOL     WINAPI SetupDiGetHwProfileFriendlyNameW(DWORD, PWSTR, DWORD, PDWORD);
1576 #define         SetupDiGetHwProfileFriendlyName WINELIB_NAME_AW(SetupDiGetHwProfileFriendlyName)
1577 BOOL     WINAPI SetupDiGetHwProfileFriendlyNameExA(DWORD, PSTR, DWORD, PDWORD, PCSTR, PVOID);
1578 BOOL     WINAPI SetupDiGetHwProfileFriendlyNameExW(DWORD, PWSTR, DWORD, PDWORD, PCWSTR, PVOID);
1579 #define         SetupDiGetHwProfileFriendlyNameEx WINELIB_NAME_AW(SetupDiGetHwProfileFriendlyNameEx)
1580 BOOL     WINAPI SetupDiGetHwProfileList(PDWORD, DWORD, PDWORD, PDWORD);
1581 BOOL     WINAPI SetupDiGetHwProfileListExA(PDWORD, DWORD, PDWORD, PDWORD, PCSTR, PVOID);
1582 BOOL     WINAPI SetupDiGetHwProfileListExW(PDWORD, DWORD, PDWORD, PDWORD, PCWSTR, PVOID);
1583 #define         SetupDiGetHwProfileListEx WINELIB_NAME_AW(SetupDiGetHwProfileListEx)
1584 BOOL     WINAPI SetupDiGetINFClassA(PCSTR, LPGUID, PSTR, DWORD, PDWORD);
1585 BOOL     WINAPI SetupDiGetINFClassW(PCWSTR, LPGUID, PWSTR, DWORD, PDWORD);
1586 #define         SetupDiGetINFClass WINELIB_NAME_AW(SetupDiGetINFClass)
1587 BOOL     WINAPI SetupDiGetSelectedDevice(HDEVINFO, PSP_DEVINFO_DATA);
1588 BOOL     WINAPI SetupDiGetSelectedDriverA(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_A);
1589 BOOL     WINAPI SetupDiGetSelectedDriverW(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_W);
1590 #define         SetupDiGetSelectedDriver WINELIB_NAME_AW(SetupDiGetSelectedDriver)
1591 HPROPSHEETPAGE WINAPI SetupDiGetWizardPage(HDEVINFO, PSP_DEVINFO_DATA, PSP_INSTALLWIZARD_DATA, DWORD, DWORD);
1592 BOOL     WINAPI SetupDiInstallClassA(HWND, PCSTR, DWORD, HSPFILEQ);
1593 BOOL     WINAPI SetupDiInstallClassW(HWND, PCWSTR, DWORD, HSPFILEQ);
1594 #define         SetupDiInstallClass WINELIB_NAME_AW(SetupDiInstallClass)
1595 BOOL     WINAPI SetupDiInstallClassExA(HWND, PCSTR, DWORD, HSPFILEQ, const GUID *, PVOID, PVOID);
1596 BOOL     WINAPI SetupDiInstallClassExW(HWND, PCWSTR, DWORD, HSPFILEQ, const GUID *, PVOID, PVOID);
1597 #define         SetupDiInstallClassEx WINELIB_NAME_AW(SetupDiInstallClassEx)
1598 BOOL     WINAPI SetupDiInstallDevice(HDEVINFO, PSP_DEVINFO_DATA);
1599 BOOL     WINAPI SetupDiInstallDeviceInterfaces(HDEVINFO, PSP_DEVINFO_DATA);
1600 BOOL     WINAPI SetupDiInstallDriverFiles(HDEVINFO, PSP_DEVINFO_DATA);
1601 BOOL     WINAPI SetupDiLoadClassIcon(const GUID *, HICON *, PINT);
1602 HKEY     WINAPI SetupDiOpenClassRegKey(const GUID*, REGSAM);
1603 HKEY     WINAPI SetupDiOpenClassRegKeyExA(const GUID*, REGSAM, DWORD, PCSTR, PVOID);
1604 HKEY     WINAPI SetupDiOpenClassRegKeyExW(const GUID*, REGSAM, DWORD, PCWSTR, PVOID);
1605 #define         SetupDiOpenClassRegKeyEx WINELIB_NAME_AW(SetupDiOpenClassRegKeyEx)
1606 BOOL     WINAPI SetupDiOpenDeviceInfoA(HDEVINFO, PCSTR, HWND, DWORD, PSP_DEVINFO_DATA);
1607 BOOL     WINAPI SetupDiOpenDeviceInfoW(HDEVINFO, PCWSTR, HWND, DWORD, PSP_DEVINFO_DATA);
1608 #define         SetupDiOpenDeviceInfo WINELIB_NAME_AW(SetupDiOpenDeviceInfo)
1609 BOOL     WINAPI SetupDiOpenDeviceInterfaceA(HDEVINFO, PCSTR, DWORD, PSP_DEVICE_INTERFACE_DATA);
1610 BOOL     WINAPI SetupDiOpenDeviceInterfaceW(HDEVINFO, PCWSTR, DWORD, PSP_DEVICE_INTERFACE_DATA);
1611 #define         SetupDiOpenDeviceInterface WINELIB_NAME_AW(SetupDiOpenDeviceInterface)
1612 BOOL     WINAPI SetupDiOpenDeviceInterfaceRegKey(HDEVINFO, PSP_DEVINFO_DATA, DWORD, REGSAM);
1613 HKEY     WINAPI SetupDiOpenDevRegKey(HDEVINFO, PSP_DEVINFO_DATA, DWORD, DWORD, DWORD, REGSAM);
1614 BOOL     WINAPI SetupDiRegisterCoDeviceInstallers(HDEVINFO, PSP_DEVINFO_DATA);
1615 BOOL     WINAPI SetupDiRegisterDeviceInfo(HDEVINFO, PSP_DEVINFO_DATA, DWORD, PSP_DETSIG_CMPPROC, PVOID, PSP_DEVINFO_DATA);
1616 BOOL     WINAPI SetupDiRemoveDevice(HDEVINFO, PSP_DEVINFO_DATA);
1617 BOOL     WINAPI SetupDiRemoveDeviceInterface(HDEVINFO, PSP_DEVICE_INTERFACE_DATA);
1618 BOOL     WINAPI SetupDiRestartDevices(HDEVINFO, PSP_DEVINFO_DATA);
1619 BOOL     WINAPI SetupDiSelectBestCompatDrv(HDEVINFO, PSP_DEVINFO_DATA);
1620 BOOL     WINAPI SetupDiSelectDevice(HDEVINFO, PSP_DEVINFO_DATA);
1621 BOOL     WINAPI SetupDiSelectOEMDrv(HWND, HDEVINFO, PSP_DEVINFO_DATA);
1622 BOOL     WINAPI SetupDiSetClassInstallParamsA(HDEVINFO, PSP_DEVINFO_DATA, PSP_CLASSINSTALL_HEADER, DWORD);
1623 BOOL     WINAPI SetupDiSetClassInstallParamsW(HDEVINFO, PSP_DEVINFO_DATA, PSP_CLASSINSTALL_HEADER, DWORD);
1624 #define         SetupDiSetClassInstallParams WINELIB_NAME_AW(SetupDiSetClassInstallParams)
1625 BOOL     WINAPI SetupDiSetClassRegistryPropertyA(const GUID *, DWORD, const BYTE *, DWORD, PCSTR, PVOID);
1626 BOOL     WINAPI SetupDiSetClassRegistryPropertyW(const GUID *, DWORD, const BYTE *, DWORD, PCWSTR, PVOID);
1627 #define         SetupDiSetClassRegistryProperty WINELIB_NAME_AW(SetupDiSetClassRegistryProperty)
1628 BOOL     WINAPI SetupDiSetDeviceInterfaceDefault(HDEVINFO, PSP_DEVICE_INTERFACE_DATA, DWORD, PVOID);
1629 BOOL     WINAPI SetupDiSetDeviceInstallParamsA(HDEVINFO, PSP_DEVINFO_DATA, PSP_DEVINSTALL_PARAMS_A);
1630 BOOL     WINAPI SetupDiSetDeviceInstallParamsW(HDEVINFO, PSP_DEVINFO_DATA, PSP_DEVINSTALL_PARAMS_W);
1631 #define         SetupDiSetDeviceInstallParams WINELIB_NAME_AW(SetupDiSetDeviceInstallParams)
1632 BOOL     WINAPI SetupDiSetDeviceRegistryPropertyA(HDEVINFO, PSP_DEVINFO_DATA, DWORD, const BYTE *, DWORD);
1633 BOOL     WINAPI SetupDiSetDeviceRegistryPropertyW(HDEVINFO, PSP_DEVINFO_DATA, DWORD, const BYTE *, DWORD);
1634 #define         SetupDiSetDeviceRegistryProperty WINELIB_NAME_AW(SetupDiSetDeviceRegistryProperty)
1635 BOOL     WINAPI SetupDiSetDriverInstallParamsA(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_A, PSP_DRVINSTALL_PARAMS);
1636 BOOL     WINAPI SetupDiSetDriverInstallParamsW(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_W, PSP_DRVINSTALL_PARAMS);
1637 #define         SetupDiSetDriverInstallParams WINELIB_NAME_AW(SetupDiSetDriverInstallParams)
1638 BOOL     WINAPI SetupDiSetSelectedDevice(HDEVINFO, PSP_DEVINFO_DATA);
1639 BOOL     WINAPI SetupDiSetSelectedDriverA(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_A);
1640 BOOL     WINAPI SetupDiSetSelectedDriverW(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_W);
1641 #define         SetupDiSetSelectedDriver WINELIB_NAME_AW(SetupDiSetSelectedDriver)
1642 BOOL     WINAPI SetupDiUnremoveDevice(HDEVINFO, PSP_DEVINFO_DATA);
1643 HDSKSPC  WINAPI SetupDuplicateDiskSpaceListA(HDSKSPC, PVOID, DWORD, UINT);
1644 HDSKSPC  WINAPI SetupDuplicateDiskSpaceListW(HDSKSPC, PVOID, DWORD, UINT);
1645 #define         SetupDuplicateDiskSpaceList WINELIB_NAME_AW(SetupDuplicateDiskSpaceList)
1646 BOOL     WINAPI SetupEnumInfSectionsA(HINF, UINT, PSTR, DWORD, DWORD *);
1647 BOOL     WINAPI SetupEnumInfSectionsW(HINF, UINT, PWSTR, DWORD, DWORD *);
1648 #define         SetupEnumInfSections WINELIB_NAME_AW(SetupEnumInfSections)
1649 BOOL     WINAPI SetupFindFirstLineA( HINF hinf, PCSTR section, PCSTR key, INFCONTEXT *context );
1650 BOOL     WINAPI SetupFindFirstLineW( HINF hinf, PCWSTR section, PCWSTR key, INFCONTEXT *context );
1651 #define         SetupFindFirstLine WINELIB_NAME_AW(SetupFindFirstLine)
1652 BOOL     WINAPI SetupFindNextLine( PINFCONTEXT context_in, PINFCONTEXT context_out );
1653 BOOL     WINAPI SetupFindNextMatchLineA( PINFCONTEXT context_in, PCSTR key, PINFCONTEXT context_out );
1654 BOOL     WINAPI SetupFindNextMatchLineW( PINFCONTEXT context_in, PCWSTR key, PINFCONTEXT context_out );
1655 #define         SetupFindNextMatchLine WINELIB_NAME_AW(SetupFindNextMatchLine)
1656 BOOL     WINAPI SetupFreeSourceListA(PCSTR **, UINT);
1657 BOOL     WINAPI SetupFreeSourceListW(PCWSTR **, UINT);
1658 #define         SetupFreeSourceList WINELIB_NAME_AW(SetupFreeSourceList)
1659 BOOL     WINAPI SetupGetBackupInformationA(HSPFILEQ, PSP_BACKUP_QUEUE_PARAMS_A BackupParams);
1660 BOOL     WINAPI SetupGetBackupInformationW(HSPFILEQ, PSP_BACKUP_QUEUE_PARAMS_W BackupParams);
1661 #define         SetupGetBackupInformation WINELIB_NAME_AW(SetupGetBackupInformation)
1662 BOOL     WINAPI SetupGetBinaryField( PINFCONTEXT context, DWORD index, BYTE *buffer, DWORD size, LPDWORD required );
1663 DWORD    WINAPI SetupGetFieldCount( PINFCONTEXT context );
1664 DWORD    WINAPI SetupGetFileCompressionInfoA(PCSTR, PSTR *, PDWORD, PDWORD, PUINT);
1665 DWORD    WINAPI SetupGetFileCompressionInfoW(PCWSTR, PWSTR *, PDWORD, PDWORD, PUINT);
1666 #define         SetupGetFileCompressionInfo WINELIB_NAME_AW(SetupGetFileCompressionInfo)
1667 BOOL     WINAPI SetupGetFileCompressionInfoExA(PCSTR, PSTR, DWORD, PDWORD, PDWORD, PDWORD, PUINT);
1668 BOOL     WINAPI SetupGetFileCompressionInfoExW(PCWSTR, PWSTR, DWORD, PDWORD, PDWORD, PDWORD, PUINT);
1669 #define         SetupGetFileCompressionInfoEx WINELIB_NAME_AW(SetupGetFileCompressionInfoEx)
1670 BOOL     WINAPI SetupGetFileQueueCount( HSPFILEQ, UINT, PUINT );
1671 BOOL     WINAPI SetupGetFileQueueFlags( HSPFILEQ, PDWORD );
1672 BOOL     WINAPI SetupGetInfFileListA(PCSTR, DWORD, PSTR, DWORD, PDWORD);
1673 BOOL     WINAPI SetupGetInfFileListW(PCWSTR, DWORD, PWSTR, DWORD, PDWORD);
1674 #define         SetupGetInfFileList WINELIB_NAME_AW(SetupGetFileList)
1675 BOOL     WINAPI SetupGetInfInformationA( LPCVOID, DWORD, PSP_INF_INFORMATION, DWORD, PDWORD);
1676 BOOL     WINAPI SetupGetInfInformationW( LPCVOID, DWORD, PSP_INF_INFORMATION, DWORD, PDWORD);
1677 #define         SetupGetInfInformation WINELIB_NAME_AW(SetupGetInfInformation)
1678 BOOL     WINAPI SetupGetIntField( PINFCONTEXT context, DWORD index, PINT result );
1679 BOOL     WINAPI SetupGetLineByIndexA( HINF, PCSTR, DWORD, INFCONTEXT * );
1680 BOOL     WINAPI SetupGetLineByIndexW( HINF, PCWSTR, DWORD, INFCONTEXT * );
1681 #define         SetupGetLineByIndex WINELIB_NAME_AW(SetupGetLineByIndex)
1682 LONG     WINAPI SetupGetLineCountA( HINF hinf, PCSTR section );
1683 LONG     WINAPI SetupGetLineCountW( HINF hinf, PCWSTR section );
1684 #define         SetupGetLineCount WINELIB_NAME_AW(SetupGetLineCount)
1685 BOOL     WINAPI SetupGetLineTextA( PINFCONTEXT context, HINF hinf, PCSTR section_name,PCSTR key_name, PSTR buffer, DWORD size, PDWORD required );
1686 BOOL     WINAPI SetupGetLineTextW( PINFCONTEXT context, HINF hinf, PCWSTR section_name, PCWSTR key_name, PWSTR buffer, DWORD size, PDWORD required );
1687 #define         SetupGetLineText WINELIB_NAME_AW(SetupGetLineText)
1688 BOOL     WINAPI SetupGetMultiSzFieldA( PINFCONTEXT context, DWORD index, PSTR buffer, DWORD size, LPDWORD required );
1689 BOOL     WINAPI SetupGetMultiSzFieldW( PINFCONTEXT context, DWORD index, PWSTR buffer, DWORD size, LPDWORD required );
1690 #define         SetupGetMultiSzField WINELIB_NAME_AW(SetupGetMultiSzField)
1691 BOOL     WINAPI SetupGetNonInteractiveMode(void);
1692 BOOL     WINAPI SetupGetSourceFileLocationA( HINF hinf, PINFCONTEXT context, PCSTR filename, PUINT source_id, PSTR buffer, DWORD buffer_size, PDWORD required_size );
1693 BOOL     WINAPI SetupGetSourceFileLocationW( HINF hinf, PINFCONTEXT context, PCWSTR filename, PUINT source_id, PWSTR buffer, DWORD buffer_size, PDWORD required_size );
1694 #define         SetupGetSourceFileLocation WINELIB_NAME_AW(SetupGetSourceFileLocation)
1695 BOOL     WINAPI SetupGetSourceFileSizeA(HINF, PINFCONTEXT, PCSTR, PCSTR, PDWORD, UINT);
1696 BOOL     WINAPI SetupGetSourceFileSizeW(HINF, PINFCONTEXT, PCWSTR, PCWSTR, PDWORD, UINT);
1697 #define         SetupGetSourceFileSize WINELIB_NAME_AW(SetupGetSourceFileSize)
1698 BOOL     WINAPI SetupGetSourceInfoA( HINF hinf, UINT source_id, UINT info, PSTR buffer, DWORD buffer_size, LPDWORD required_size );
1699 BOOL     WINAPI SetupGetSourceInfoW( HINF hinf, UINT source_id, UINT info, PWSTR buffer, DWORD buffer_size, LPDWORD required_size );
1700 #define         SetupGetSourceInfo WINELIB_NAME_AW(SetupGetSourceInfo)
1701 BOOL     WINAPI SetupGetStringFieldA( PINFCONTEXT context, DWORD index, PSTR buffer, DWORD size, PDWORD required );
1702 BOOL     WINAPI SetupGetStringFieldW( PINFCONTEXT context, DWORD index, PWSTR buffer, DWORD size, PDWORD required );
1703 #define         SetupGetStringField WINELIB_NAME_AW(SetupGetStringField)
1704 BOOL     WINAPI SetupGetTargetPathA( HINF hinf, PINFCONTEXT context, PCSTR section, PSTR buffer, DWORD buffer_size, PDWORD required_size );
1705 BOOL     WINAPI SetupGetTargetPathW( HINF hinf, PINFCONTEXT context, PCWSTR section, PWSTR buffer, DWORD buffer_size, PDWORD required_size );
1706 #define         SetupGetTargetPath WINELIB_NAME_AW(SetupGetTargetPath)
1707 PVOID    WINAPI SetupInitDefaultQueueCallback( HWND );
1708 PVOID    WINAPI SetupInitDefaultQueueCallbackEx( HWND, HWND, UINT, DWORD, PVOID );
1709 HSPFILELOG WINAPI SetupInitializeFileLogA(PCSTR, DWORD);
1710 HSPFILELOG WINAPI SetupInitializeFileLogW(PCWSTR, DWORD);
1711 #define           SetupInitializeFileLog WINELIB_NAME_AW(SetupInitializeFileLog)
1712 BOOL     WINAPI SetupInstallFileA(HINF, PINFCONTEXT, PCSTR, PCSTR, PCSTR, DWORD, PSP_FILE_CALLBACK_A, PVOID);
1713 BOOL     WINAPI SetupInstallFileW(HINF, PINFCONTEXT, PCWSTR, PCWSTR, PCWSTR, DWORD, PSP_FILE_CALLBACK_W, PVOID);
1714 #define         SetupInstallFile WINELIB_NAME_AW(SetupInstallFile)
1715 BOOL     WINAPI SetupInstallFileExA(HINF, PINFCONTEXT, PCSTR, PCSTR, PCSTR, DWORD, PSP_FILE_CALLBACK_A, PVOID, PBOOL);
1716 BOOL     WINAPI SetupInstallFileExW(HINF, PINFCONTEXT, PCWSTR, PCWSTR, PCWSTR, DWORD, PSP_FILE_CALLBACK_W, PVOID, PBOOL);
1717 #define         SetupInstallFileEx WINELIB_NAME_AW(SetupInstallFileEx)
1718 BOOL     WINAPI SetupInstallFilesFromInfSectionA( HINF, HINF, HSPFILEQ, PCSTR, PCSTR, UINT );
1719 BOOL     WINAPI SetupInstallFilesFromInfSectionW( HINF, HINF, HSPFILEQ, PCWSTR, PCWSTR, UINT );
1720 #define         SetupInstallFilesFromInfSection WINELIB_NAME_AW(SetupInstallFilesFromInfSection)
1721 BOOL     WINAPI SetupInstallFromInfSectionA(HWND,HINF,PCSTR,UINT,HKEY,PCSTR,UINT,
1722                                             PSP_FILE_CALLBACK_A,PVOID,HDEVINFO,PSP_DEVINFO_DATA);
1723 BOOL     WINAPI SetupInstallFromInfSectionW(HWND,HINF,PCWSTR,UINT,HKEY,PCWSTR,UINT,
1724                                             PSP_FILE_CALLBACK_W,PVOID,HDEVINFO,PSP_DEVINFO_DATA);
1725 #define         SetupInstallFromInfSection WINELIB_NAME_AW(SetupInstallFromInfSection)
1726 BOOL     WINAPI SetupInstallServicesFromInfSectionA(HINF, PCSTR, DWORD);
1727 BOOL     WINAPI SetupInstallServicesFromInfSectionW(HINF, PCWSTR, DWORD);
1728 #define         SetupInstallServicesFromInfSection WINELIB_NAME_AW(SetupInstallServicesFromInfSection)
1729 BOOL     WINAPI SetupInstallServicesFromInfSectionExA(HINF, PCSTR, DWORD, HDEVINFO, PSP_DEVINFO_DATA, PVOID, PVOID);
1730 BOOL     WINAPI SetupInstallServicesFromInfSectionExW(HINF, PCWSTR, DWORD, HDEVINFO, PSP_DEVINFO_DATA, PVOID, PVOID);
1731 #define         SetupInstallServicesFromInfSectionEx WINELIB_NAME_AW(SetupInstallServicesFromInfSectionEx)
1732 BOOL     WINAPI SetupIterateCabinetA(PCSTR, DWORD, PSP_FILE_CALLBACK_A, PVOID);
1733 BOOL     WINAPI SetupIterateCabinetW(PCWSTR, DWORD, PSP_FILE_CALLBACK_W, PVOID);
1734 #define         SetupIterateCabinet WINELIB_NAME_AW(SetupIterateCabinet)
1735 BOOL     WINAPI SetupLogErrorA(LPCSTR,LogSeverity);
1736 BOOL     WINAPI SetupLogErrorW(LPCWSTR,LogSeverity);
1737 #define         SetupLogError WINELIB_NAME_AW(SetupLogError)
1738 BOOL     WINAPI SetupLogFileA(HSPFILELOG, PCSTR, PCSTR, PCSTR, DWORD, PCSTR, PCSTR, PCSTR, DWORD);
1739 BOOL     WINAPI SetupLogFileW(HSPFILELOG, PCWSTR, PCWSTR, PCWSTR, DWORD, PCWSTR, PCWSTR, PCWSTR, DWORD);
1740 #define         SetupLogFile WINELIB_NAME_AW(SetupLogFile)
1741 BOOL     WINAPI SetupOpenAppendInfFileA( PCSTR, HINF, UINT * );
1742 BOOL     WINAPI SetupOpenAppendInfFileW( PCWSTR, HINF, UINT * );
1743 #define         SetupOpenAppendInfFile WINELIB_NAME_AW(SetupOpenAppendInfFile)
1744 HSPFILEQ WINAPI SetupOpenFileQueue(void);
1745 HINF     WINAPI SetupOpenInfFileA( PCSTR name, PCSTR pszclass, DWORD style, UINT *error );
1746 HINF     WINAPI SetupOpenInfFileW( PCWSTR name, PCWSTR pszclass, DWORD style, UINT *error );
1747 #define         SetupOpenInfFile WINELIB_NAME_AW(SetupOpenInfFile)
1748 BOOL     WINAPI SetupOpenLog(BOOL);
1749 HINF     WINAPI SetupOpenMasterInf( VOID );
1750 BOOL     WINAPI SetupPrepareQueueForRestoreA(HSPFILEQ, PCSTR, DWORD);
1751 BOOL     WINAPI SetupPrepareQueueForRestoreW(HSPFILEQ, PCWSTR, DWORD);
1752 #define         SetupPrepareQueueForRestore WINELIB_NAME_AW(SetupPrepareQueueForRestore)
1753 UINT     WINAPI SetupPromptForDiskA(HWND, PCSTR, PCSTR, PCSTR, PCSTR, PCSTR, DWORD, PSTR, DWORD, PDWORD);
1754 UINT     WINAPI SetupPromptForDiskW(HWND, PCWSTR, PCWSTR, PCWSTR, PCWSTR, PCWSTR, DWORD, PWSTR, DWORD, PDWORD);
1755 #define         SetupPromptForDisk WINELIB_NAME_AW(SetupPromptForDisk)
1756 INT      WINAPI SetupPromptReboot( HSPFILEQ, HWND, BOOL);
1757 BOOL     WINAPI SetupQueryDrivesInDiskSpaceListA(HDSKSPC, PSTR, DWORD, PDWORD);
1758 BOOL     WINAPI SetupQueryDrivesInDiskSpaceListW(HDSKSPC, PWSTR, DWORD, PDWORD);
1759 #define         SetupQueryDrivesInDiskSpaceList WINELIB_NAME_AW(SetupQueryDrivesInDiskSpaceList)
1760 BOOL     WINAPI SetupQueryFileLogA(HSPFILELOG, PCSTR, PCSTR, SetupFileLogInfo, PSTR, DWORD, PDWORD);
1761 BOOL     WINAPI SetupQueryFileLogW(HSPFILELOG, PCWSTR, PCWSTR, SetupFileLogInfo, PWSTR, DWORD, PDWORD);
1762 #define         SetupQueryFileLog WINELIB_NAME_AW(SetupQueryFileLog)
1763 BOOL     WINAPI SetupQueryInfFileInformationA(PSP_INF_INFORMATION, UINT, PSTR, DWORD, PDWORD);
1764 BOOL     WINAPI SetupQueryInfFileInformationW(PSP_INF_INFORMATION, UINT, PWSTR, DWORD, PDWORD);
1765 #define         SetupQueryInfFileInformation WINELIB_NAME_AW(SetupQueryInFileInformation)
1766 BOOL     WINAPI SetupQueryInfOriginalFileInformationA(PSP_INF_INFORMATION, UINT, PSP_ALTPLATFORM_INFO, PSP_ORIGINAL_FILE_INFO_A);
1767 BOOL     WINAPI SetupQueryInfOriginalFileInformationW(PSP_INF_INFORMATION, UINT, PSP_ALTPLATFORM_INFO, PSP_ORIGINAL_FILE_INFO_W);
1768 #define         SetupQueryInfOriginalFileInformation WINELIB_NAME_AW(SetupQueryInfOriginalFileInformation)
1769 BOOL     WINAPI SetupQueryInfVersionInformationA(PSP_INF_INFORMATION, UINT, PCSTR, PSTR, DWORD, PDWORD);
1770 BOOL     WINAPI SetupQueryInfVersionInformationW(PSP_INF_INFORMATION, UINT, PCWSTR, PWSTR, DWORD, PDWORD);
1771 #define         SetupQueryInfVersionInformation WINELIB_NAME_AW(SetupQueryInfVersionInformation)
1772 BOOL     WINAPI SetupQuerySourceListA(DWORD, PCSTR **, PUINT);
1773 BOOL     WINAPI SetupQuerySourceListW(DWORD, PCWSTR **, PUINT);
1774 #define         SetupQuerySourceList WINELIB_NAME_AW(SetupQuerySourceList)
1775 BOOL     WINAPI SetupQuerySpaceRequiredOnDriveA(HDSKSPC, PCSTR, LONGLONG *, PVOID, UINT);
1776 BOOL     WINAPI SetupQuerySpaceRequiredOnDriveW(HDSKSPC, PCWSTR, LONGLONG *, PVOID, UINT);
1777 #define         SetupQuerySpaceRequiredOnDrive WINELIB_NAME_AW(SetupQuerySpaceRequiredOnDrive)
1778 BOOL     WINAPI SetupQueueCopyA(HSPFILEQ,PCSTR,PCSTR,PCSTR,PCSTR,PCSTR,PCSTR,PCSTR,DWORD);
1779 BOOL     WINAPI SetupQueueCopyW(HSPFILEQ,PCWSTR,PCWSTR,PCWSTR,PCWSTR,PCWSTR,PCWSTR,PCWSTR,DWORD);
1780 #define         SetupQueueCopy WINELIB_NAME_AW(SetupQueueCopy)
1781 BOOL     WINAPI SetupQueueCopyIndirectA( PSP_FILE_COPY_PARAMS_A );
1782 BOOL     WINAPI SetupQueueCopyIndirectW( PSP_FILE_COPY_PARAMS_W );
1783 #define         SetupQueueCopyIndirect WINELIB_NAME_AW(SetupQueueCopyIndirect)
1784 BOOL     WINAPI SetupQueueCopySectionA( HSPFILEQ, PCSTR, HINF, HINF, PCSTR, DWORD );
1785 BOOL     WINAPI SetupQueueCopySectionW( HSPFILEQ, PCWSTR, HINF, HINF, PCWSTR, DWORD );
1786 #define         SetupQueueCopySection WINELIB_NAME_AW(SetupQueueCopySection)
1787 BOOL     WINAPI SetupQueueDefaultCopyA( HSPFILEQ, HINF, PCSTR, PCSTR, PCSTR, DWORD );
1788 BOOL     WINAPI SetupQueueDefaultCopyW( HSPFILEQ, HINF, PCWSTR, PCWSTR, PCWSTR, DWORD );
1789 #define         SetupQueueDefaultCopy WINELIB_NAME_AW(SetupQueueDefaultCopy)
1790 BOOL     WINAPI SetupQueueDeleteA( HSPFILEQ, PCSTR, PCSTR );
1791 BOOL     WINAPI SetupQueueDeleteW( HSPFILEQ, PCWSTR, PCWSTR );
1792 #define         SetupQueueDelete WINELIB_NAME_AW(SetupQueueDelete)
1793 BOOL     WINAPI SetupQueueDeleteSectionA( HSPFILEQ, HINF, HINF, PCSTR );
1794 BOOL     WINAPI SetupQueueDeleteSectionW( HSPFILEQ, HINF, HINF, PCWSTR );
1795 #define         SetupQueueDeleteSection WINELIB_NAME_AW(SetupQueueDeleteSection)
1796 BOOL     WINAPI SetupQueueRenameA( HSPFILEQ, PCSTR, PCSTR, PCSTR, PCSTR );
1797 BOOL     WINAPI SetupQueueRenameW( HSPFILEQ, PCWSTR, PCWSTR, PCWSTR, PCWSTR );
1798 #define         SetupQueueRename WINELIB_NAME_AW(SetupQueueRename)
1799 BOOL     WINAPI SetupQueueRenameSectionA( HSPFILEQ, HINF, HINF, PCSTR );
1800 BOOL     WINAPI SetupQueueRenameSectionW( HSPFILEQ, HINF, HINF, PCWSTR );
1801 #define         SetupQueueRenameSection WINELIB_NAME_AW(SetupQueueRenameSection)
1802 BOOL     WINAPI SetupRemoveFileLogEntryA(HSPFILELOG, PCSTR, PCSTR);
1803 BOOL     WINAPI SetupRemoveFileLogEntryW(HSPFILELOG, PCWSTR, PCWSTR);
1804 #define         SetupRemoveFileLogEntry WINELIB_NAME_AW(SetupRemoveFileLogEntry)
1805 BOOL     WINAPI SetupRemoveFromDiskSpaceListA(HDSKSPC, PCSTR, UINT, PVOID, UINT);
1806 BOOL     WINAPI SetupRemoveFromDiskSpaceListW(HDSKSPC, PCWSTR, UINT, PVOID, UINT);
1807 #define         SetupRemoveFromDiskSpaceList WINELIB_NAME_AW(SetupRemoveFromDiskSpaceList)
1808 BOOL     WINAPI SetupRemoveInstallSectionFromDiskSpaceListA(HDSKSPC, HINF, HINF, PCSTR, PVOID, UINT);
1809 BOOL     WINAPI SetupRemoveInstallSectionFromDiskSpaceListW(HDSKSPC, HINF, HINF, PCWSTR, PVOID, UINT);
1810 #define         SetupRemoveInstallSectionFromDiskSpaceList WINELIB_NAME_AW(SetupRemoveInstallSectionFromDiskSpaceList)
1811 BOOL     WINAPI SetupRemoveSectionFromDiskSpaceListA(HDSKSPC, HINF, HINF, PCSTR, UINT, PVOID, UINT);
1812 BOOL     WINAPI SetupRemoveSectionFromDiskSpaceListW(HDSKSPC, HINF, HINF, PCWSTR, UINT, PVOID, UINT);
1813 #define         SetupRemoveSectionFromDiskSpaceList WINELIB_NAME_AW(SetupRemoveSectionFromDiskSpaceList)
1814 BOOL     WINAPI SetupRemoveFromSourceListA(DWORD, PCSTR);
1815 BOOL     WINAPI SetupRemoveFromSourceListW(DWORD, PCWSTR);
1816 #define         SetupRemoveFromSourceList WINELIB_NAME_AW(SetupRemoveFromSourceList)
1817 UINT     WINAPI SetupRenameErrorA( HWND, PCSTR, PCSTR, PCSTR, UINT, DWORD );
1818 UINT     WINAPI SetupRenameErrorW( HWND, PCWSTR, PCWSTR, PCWSTR, UINT, DWORD );
1819 #define         SetupRenameError WINELIB_NAME_AW(SetupRenameError)
1820 BOOL     WINAPI SetupScanFileQueueA( HSPFILEQ, DWORD, HWND, PSP_FILE_CALLBACK_A, PVOID, PDWORD );
1821 BOOL     WINAPI SetupScanFileQueueW( HSPFILEQ, DWORD, HWND, PSP_FILE_CALLBACK_W, PVOID, PDWORD );
1822 #define         SetupScanFileQueue WINELIB_NAME_AW(SetupScanFileQueue)
1823 BOOL     WINAPI SetupSetDirectoryIdA( HINF, DWORD, PCSTR );
1824 BOOL     WINAPI SetupSetDirectoryIdW( HINF, DWORD, PCWSTR );
1825 #define         SetupSetDirectoryId WINELIB_NAME_AW(SetupSetDirectoryId)
1826 BOOL     WINAPI SetupSetDirectoryIdExA( HINF, DWORD, PCSTR, DWORD, DWORD, PVOID );
1827 BOOL     WINAPI SetupSetDirectoryIdExW( HINF, DWORD, PCWSTR, DWORD, DWORD, PVOID );
1828 #define         SetupSetDirectoryIdEx WINELIB_NAME_AW(SetupSetDirectoryIdEx)
1829 BOOL     WINAPI SetupSetFileQueueAlternatePlatformA( HSPFILEQ, PSP_ALTPLATFORM_INFO, PCSTR );
1830 BOOL     WINAPI SetupSetFileQueueAlternatePlatformW( HSPFILEQ, PSP_ALTPLATFORM_INFO, PCWSTR );
1831 #define         SetupSetFileQueueAlternatePlatform WINELIB_NAME_AW(SetupSetFileQueueAlternatePlatform)
1832 BOOL     WINAPI SetupSetFileQueueFlags( HSPFILEQ, DWORD, DWORD );
1833 BOOL     WINAPI SetupSetNonInteractiveMode(BOOL);
1834 BOOL     WINAPI SetupSetPlatformPathOverrideA(PCSTR);
1835 BOOL     WINAPI SetupSetPlatformPathOverrideW(PCWSTR);
1836 #define         SetupSetPlatformPathOverride WINELIB_NAME_AW(SetupSetPlatformPathOverride)
1837 BOOL     WINAPI SetupSetSourceListA(DWORD, PCSTR *, UINT);
1838 BOOL     WINAPI SetupSetSourceListW(DWORD, PCWSTR *, UINT);
1839 #define         SetupSetSourceList WINELIB_NAME_AW(SetupSetSourceList)
1840 void     WINAPI SetupTermDefaultQueueCallback( PVOID );
1841 BOOL     WINAPI SetupTerminateFileLog(HSPFILELOG);
1842 BOOL     WINAPI SetupUninstallOEMInfA(PCSTR, DWORD, PVOID);
1843 BOOL     WINAPI SetupUninstallOEMInfW(PCWSTR, DWORD, PVOID);
1844 #define         SetupUninstallOEMInf WINELIB_NAME_AW(SetupUninstallOEMInf)
1845 BOOL     WINAPI SetupUninstallNewlyCopiedInfs(HSPFILEQ, DWORD, PVOID);
1846 BOOL     WINAPI SetupVerifyInfFileA(PCSTR, PSP_ALTPLATFORM_INFO, PSP_INF_SIGNER_INFO_A);
1847 BOOL     WINAPI SetupVerifyInfFileW(PCWSTR, PSP_ALTPLATFORM_INFO, PSP_INF_SIGNER_INFO_W);
1848 #define         SetupVerifyInfFile WINELIB_NAME_AW(SetupVerifyInfFile)
1849 DWORD    WINAPI StampFileSecurity(PCWSTR, PSECURITY_DESCRIPTOR);
1850 DWORD    WINAPI TakeOwnershipOfFile(PCWSTR);
1851 PSTR     WINAPI UnicodeToMultiByte(PCWSTR lpUnicodeStr, UINT uCodePage);
1852 BOOL     WINAPI UnmapAndCloseFile(HANDLE, HANDLE, PVOID);
1853
1854
1855 #ifdef __cplusplus
1856 }
1857 #endif
1858
1859 #undef DECL_WINELIB_SETUPAPI_TYPE_AW
1860
1861 #include <poppack.h>
1862
1863 #endif /* _INC_SETUPAPI */