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