2 * Copyright (C) 2000 James Hatheway
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
24 /* setupapi doesn't use the normal convention, it adds an underscore before A/W */
26 # define DECL_WINELIB_SETUPAPI_TYPE_AW(type) /* nothing */
27 #else /* __WINESRC__ */
28 # define DECL_WINELIB_SETUPAPI_TYPE_AW(type) typedef WINELIB_NAME_AW(type##_) type;
29 #endif /* __WINESRC__ */
31 /* Define type for handle to a loaded inf file */
34 /* Define type for handle to a device information set */
35 typedef PVOID HDEVINFO
;
37 /* Define type for setup file queue */
38 typedef PVOID HSPFILEQ
;
40 typedef PVOID HDSKSPC
;
43 typedef struct _INFCONTEXT
49 } INFCONTEXT
, *PINFCONTEXT
;
51 typedef struct _SP_ALTPLATFORM_INFO_V2
57 WORD ProcessorArchitecture
;
63 DWORD FirstValidatedMajorVersion
;
64 DWORD FirstValidatedMinorVersion
;
65 } SP_ALTPLATFORM_INFO_V2
, *PSP_ALTPLATFORM_INFO_V2
;
67 #define SP_ALTPLATFORM_FLAGS_VERSION_RANGE 0x0001
69 typedef struct _SP_ALTPLATFORM_INFO_V1
75 WORD ProcessorArchitecture
;
77 } SP_ALTPLATFORM_INFO_V1
, *PSP_ALTPLATFORM_INFO_V1
;
79 typedef SP_ALTPLATFORM_INFO_V2 SP_ALTPLATFORM_INFO
;
80 typedef PSP_ALTPLATFORM_INFO_V2 PSP_ALTPLATFORM_INFO
;
82 typedef struct _SP_FILE_COPY_PARAMS_A
89 PCSTR SourceDescription
;
91 PCSTR TargetDirectory
;
95 PCSTR SecurityDescriptor
;
96 } SP_FILE_COPY_PARAMS_A
, *PSP_FILE_COPY_PARAMS_A
;
98 typedef struct _SP_FILE_COPY_PARAMS_W
101 HSPFILEQ QueueHandle
;
102 PCWSTR SourceRootPath
;
104 PCWSTR SourceFilename
;
105 PCWSTR SourceDescription
;
106 PCWSTR SourceTagfile
;
107 PCWSTR TargetDirectory
;
108 PCWSTR TargetFilename
;
111 PCWSTR SecurityDescriptor
;
112 } SP_FILE_COPY_PARAMS_W
, *PSP_FILE_COPY_PARAMS_W
;
114 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_FILE_COPY_PARAMS
)
115 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_FILE_COPY_PARAMS
)
117 typedef struct _SP_REGISTER_CONTROL_STATUSA
123 } SP_REGISTER_CONTROL_STATUSA
, *PSP_REGISTER_CONTROL_STATUSA
;
125 typedef struct _SP_REGISTER_CONTROL_STATUSW
131 } SP_REGISTER_CONTROL_STATUSW
, *PSP_REGISTER_CONTROL_STATUSW
;
133 DECL_WINELIB_TYPE_AW(SP_REGISTER_CONTROL_STATUS
)
134 DECL_WINELIB_TYPE_AW(PSP_REGISTER_CONTROL_STATUS
)
136 #define SPREG_SUCCESS 0x00000000
137 #define SPREG_LOADLIBRARY 0x00000001
138 #define SPREG_GETPROCADDR 0x00000002
139 #define SPREG_REGSVR 0x00000003
140 #define SPREG_DLLINSTALL 0x00000004
141 #define SPREG_TIMEOUT 0x00000005
142 #define SPREG_UNKNOWN 0xffffffff
144 typedef UINT (CALLBACK
*PSP_FILE_CALLBACK_A
)( PVOID Context
, UINT Notification
,
145 UINT_PTR Param1
, UINT_PTR Param2
);
146 typedef UINT (CALLBACK
*PSP_FILE_CALLBACK_W
)( PVOID Context
, UINT Notification
,
147 UINT_PTR Param1
, UINT_PTR Param2
);
148 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_FILE_CALLBACK
)
151 #define MAX_INF_STRING_LENGTH 4096
152 #define MAX_TITLE_LEN 60
153 #define MAX_INSTRUCTION_LEN 256
154 #define MAX_LABEL_LEN 30
155 #define MAX_SERVICE_NAME_LEN 256
156 #define MAX_SUBTITLE_LEN 256
157 #define SP_MAX_MACHINENAME_LENGTH (MAX_PATH + 3)
159 typedef UINT DI_FUNCTION
;
161 DECLARE_HANDLE(HSTRING_TABLE
);
163 typedef struct _SP_CLASSINSTALL_HEADER
166 DI_FUNCTION InstallFunction
;
167 } SP_CLASSINSTALL_HEADER
, *PSP_CLASSINSTALL_HEADER
;
169 typedef struct _SP_PROPCHANGE_PARAMS
171 SP_CLASSINSTALL_HEADER ClassInstallHeader
;
175 } SP_PROPCHANGE_PARAMS
, *PSP_PROPCHANGE_PARAMS
;
177 #define DICS_ENABLE 0x00000001
178 #define DICS_DISABLE 0x00000002
179 #define DICS_PROPCHANGE 0x00000003
180 #define DICS_START 0x00000004
181 #define DICS_STOP 0x00000005
183 typedef struct _SP_DEVINSTALL_PARAMS_A
189 PSP_FILE_CALLBACK_A InstallMsgHandler
;
190 PVOID InstallMsgHandlerContext
;
192 ULONG_PTR ClassInstallReserved
;
194 CHAR DriverPath
[MAX_PATH
];
195 } SP_DEVINSTALL_PARAMS_A
, *PSP_DEVINSTALL_PARAMS_A
;
197 typedef struct _SP_DEVINSTALL_PARAMS_W
203 PSP_FILE_CALLBACK_W InstallMsgHandler
;
204 PVOID InstallMsgHandlerContext
;
206 ULONG_PTR ClassInstallReserved
;
208 WCHAR DriverPath
[MAX_PATH
];
209 } SP_DEVINSTALL_PARAMS_W
, *PSP_DEVINSTALL_PARAMS_W
;
211 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_DEVINSTALL_PARAMS
)
212 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_DEVINSTALL_PARAMS
)
214 /* Device Information structure (references a device instance that is a member
215 of a device information set) */
216 typedef struct _SP_DEVINFO_DATA
220 DWORD DevInst
; /* DEVINST handle */
222 } SP_DEVINFO_DATA
, *PSP_DEVINFO_DATA
;
224 typedef struct _SP_DEVICE_INTERFACE_DATA
227 GUID InterfaceClassGuid
;
230 } SP_DEVICE_INTERFACE_DATA
, *PSP_DEVICE_INTERFACE_DATA
;
232 typedef struct _SP_DEVICE_INTERFACE_DETAIL_DATA_A
235 CHAR DevicePath
[ANYSIZE_ARRAY
];
236 } SP_DEVICE_INTERFACE_DETAIL_DATA_A
, *PSP_DEVICE_INTERFACE_DETAIL_DATA_A
;
238 typedef struct _SP_DEVICE_INTERFACE_DETAIL_DATA_W
241 WCHAR DevicePath
[ANYSIZE_ARRAY
];
242 } SP_DEVICE_INTERFACE_DETAIL_DATA_W
, *PSP_DEVICE_INTERFACE_DETAIL_DATA_W
;
244 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_DEVICE_INTERFACE_DETAIL_DATA
)
245 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_DEVICE_INTERFACE_DETAIL_DATA
)
247 typedef struct _SP_DEVINFO_LIST_DETAIL_DATA_A
{
250 HANDLE RemoteMachineHandle
;
251 CHAR RemoteMachineName
[SP_MAX_MACHINENAME_LENGTH
];
252 } SP_DEVINFO_LIST_DETAIL_DATA_A
, *PSP_DEVINFO_LIST_DETAIL_DATA_A
;
254 typedef struct _SP_DEVINFO_LIST_DETAIL_DATA_W
{
257 HANDLE RemoteMachineHandle
;
258 WCHAR RemoteMachineName
[SP_MAX_MACHINENAME_LENGTH
];
259 } SP_DEVINFO_LIST_DETAIL_DATA_W
, *PSP_DEVINFO_LIST_DETAIL_DATA_W
;
261 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_DEVINFO_LIST_DETAIL_DATA
)
262 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_DEVINFO_LIST_DETAIL_DATA
)
264 typedef struct _FILE_IN_CABINET_INFO_A
{
265 LPCSTR NameInCabinet
;
271 CHAR FullTargetName
[MAX_PATH
];
272 } FILE_IN_CABINET_INFO_A
, *PFILE_IN_CABINET_INFO_A
;
274 typedef struct _FILE_IN_CABINET_INFO_W
{
275 LPCWSTR NameInCabinet
;
281 WCHAR FullTargetName
[MAX_PATH
];
282 } FILE_IN_CABINET_INFO_W
, *PFILE_IN_CABINET_INFO_W
;
284 DECL_WINELIB_SETUPAPI_TYPE_AW(FILE_IN_CABINET_INFO
)
285 DECL_WINELIB_SETUPAPI_TYPE_AW(PFILE_IN_CABINET_INFO
)
287 typedef struct _CABINET_INFO_A
{
292 USHORT CabinetNumber
;
293 } CABINET_INFO_A
, *PCABINET_INFO_A
;
295 typedef struct _CABINET_INFO_W
{
300 USHORT CabinetNumber
;
301 } CABINET_INFO_W
, *PCABINET_INFO_W
;
303 DECL_WINELIB_SETUPAPI_TYPE_AW(CABINET_INFO
);
304 DECL_WINELIB_SETUPAPI_TYPE_AW(PCABINET_INFO
);
306 typedef struct _SP_INF_INFORMATION
{
309 BYTE VersionData
[ANYSIZE_ARRAY
];
310 } SP_INF_INFORMATION
, *PSP_INF_INFORMATION
;
312 #define INF_STYLE_NONE 0x00
313 #define INF_STYLE_OLDNT 0x01
314 #define INF_STYLE_WIN4 0x02
315 #define INF_STYLE_CACHE_ENABLE 0x10
316 #define INF_STYLE_CACHE_DISABLE 0x20
318 #define FILEOP_COPY 0
319 #define FILEOP_RENAME 1
320 #define FILEOP_DELETE 2
321 #define FILEOP_BACKUP 3
323 #define FILEOP_ABORT 0
324 #define FILEOP_DOIT 1
325 #define FILEOP_SKIP 2
326 #define FILEOP_RETRY FILEOP_DOIT
327 #define FILEOP_NEWPATH 4
329 typedef struct _FILEPATHS_A
335 } FILEPATHS_A
, *PFILEPATHS_A
;
337 typedef struct _FILEPATHS_W
343 } FILEPATHS_W
, *PFILEPATHS_W
;
345 DECL_WINELIB_SETUPAPI_TYPE_AW(FILEPATHS
)
346 DECL_WINELIB_SETUPAPI_TYPE_AW(PFILEPATHS
)
348 #define SPFILENOTIFY_STARTQUEUE 0x0001
349 #define SPFILENOTIFY_ENDQUEUE 0x0002
350 #define SPFILENOTIFY_STARTSUBQUEUE 0x0003
351 #define SPFILENOTIFY_ENDSUBQUEUE 0x0004
352 #define SPFILENOTIFY_STARTDELETE 0x0005
353 #define SPFILENOTIFY_ENDDELETE 0x0006
354 #define SPFILENOTIFY_DELETEERROR 0x0007
355 #define SPFILENOTIFY_STARTRENAME 0x0008
356 #define SPFILENOTIFY_ENDRENAME 0x0009
357 #define SPFILENOTIFY_RENAMEERROR 0x000a
358 #define SPFILENOTIFY_STARTCOPY 0x000b
359 #define SPFILENOTIFY_ENDCOPY 0x000c
360 #define SPFILENOTIFY_COPYERROR 0x000d
361 #define SPFILENOTIFY_NEEDMEDIA 0x000e
362 #define SPFILENOTIFY_QUEUESCAN 0x000f
363 #define SPFILENOTIFY_CABINETINFO 0x0010
364 #define SPFILENOTIFY_FILEINCABINET 0x0011
365 #define SPFILENOTIFY_NEEDNEWCABINET 0x0012
366 #define SPFILENOTIFY_FILEEXTRACTED 0x0013
367 #define SPFILENOTIFY_FILEOPDELAYED 0x0014
368 #define SPFILENOTIFY_STARTBACKUP 0x0015
369 #define SPFILENOTIFY_BACKUPERROR 0x0016
370 #define SPFILENOTIFY_ENDBACKUP 0x0017
371 #define SPFILENOTIFY_QUEUESCAN_EX 0x0018
372 #define SPFILENOTIFY_STARTREGISTRATION 0x0019
373 #define SPFILENOTIFY_ENDREGISTRATION 0x0020
374 #define SPFILENOTIFY_QUEUESCAN_SIGNERINFO 0x0040
376 #define SPFILENOTIFY_LANGMISMATCH 0x00010000
377 #define SPFILENOTIFY_TARGETEXISTS 0x00020000
378 #define SPFILENOTIFY_TARGETNEWER 0x00040000
380 #define SPINST_LOGCONFIG 0x00000001
381 #define SPINST_INIFILES 0x00000002
382 #define SPINST_REGISTRY 0x00000004
383 #define SPINST_INI2REG 0x00000008
384 #define SPINST_FILES 0x00000010
385 #define SPINST_BITREG 0x00000020
386 #define SPINST_REGSVR 0x00000040
387 #define SPINST_UNREGSVR 0x00000080
388 #define SPINST_PROFILEITEMS 0x00000100
389 #define SPINST_COPYINF 0x00000200
390 #define SPINST_ALL 0x000003ff
391 #define SPINST_SINGLESECTION 0x00010000
392 #define SPINST_LOGCONFIG_IS_FORCED 0x00020000
393 #define SPINST_LOGCONFIGS_ARE_OVERRIDES 0x00040000
394 #define SPINST_REGISTERCALLBACKAWARE 0x00080000
396 #define SP_COPY_DELETESOURCE 0x00000001
397 #define SP_COPY_REPLACEONLY 0x00000002
398 #define SP_COPY_NEWER 0x00000004
399 #define SP_COPY_NEWER_OR_SAME SP_COPY_NEWER
400 #define SP_COPY_NOOVERWRITE 0x00000008
401 #define SP_COPY_NODECOMP 0x00000010
402 #define SP_COPY_LANGUAGEAWARE 0x00000020
403 #define SP_COPY_SOURCE_ABSOLUTE 0x00000040
404 #define SP_COPY_SOURCEPATH_ABSOLUTE 0x00000080
405 #define SP_COPY_IN_USE_NEEDS_REBOOT 0x00000100
406 #define SP_COPY_FORCE_IN_USE 0x00000200
407 #define SP_COPY_NOSKIP 0x00000400
408 #define SP_FLAG_CABINETCONTINUATION 0x00000800
409 #define SP_COPY_FORCE_NOOVERWRITE 0x00001000
410 #define SP_COPY_FORCE_NEWER 0x00002000
411 #define SP_COPY_WARNIFSKIP 0x00004000
412 #define SP_COPY_NOBROWSE 0x00008000
413 #define SP_COPY_NEWER_ONLY 0x00010000
414 #define SP_COPY_SOURCE_SIS_MASTER 0x00020000
415 #define SP_COPY_OEMINF_CATALOG_ONLY 0x00040000
416 #define SP_COPY_REPLACE_BOOT_FILE 0x00080000
417 #define SP_COPY_NOPRUNE 0x00100000
418 #define SP_COPY_OEM_F6_INF 0x00200000
420 /* Flags for StringTableAddString and StringTableLookUpString */
421 #define ST_CASE_SENSITIVE_COMPARE 0x00000001
423 #define FLG_ADDREG_DELREG_BIT 0x00008000
424 #define FLG_ADDREG_BINVALUETYPE 0x00000001
425 #define FLG_ADDREG_NOCLOBBER 0x00000002
426 #define FLG_ADDREG_DELVAL 0x00000004
427 #define FLG_ADDREG_APPEND 0x00000008
428 #define FLG_ADDREG_KEYONLY 0x00000010
429 #define FLG_ADDREG_OVERWRITEONLY 0x00000020
430 #define FLG_ADDREG_64BITKEY 0x00001000
431 #define FLG_ADDREG_KEYONLY_COMMON 0x00002000
432 #define FLG_ADDREG_32BITKEY 0x00004000
433 #define FLG_ADDREG_TYPE_SZ 0x00000000
434 #define FLG_ADDREG_TYPE_MULTI_SZ 0x00010000
435 #define FLG_ADDREG_TYPE_EXPAND_SZ 0x00020000
436 #define FLG_ADDREG_TYPE_BINARY (0x00000000 | FLG_ADDREG_BINVALUETYPE)
437 #define FLG_ADDREG_TYPE_DWORD (0x00010000 | FLG_ADDREG_BINVALUETYPE)
438 #define FLG_ADDREG_TYPE_NONE (0x00020000 | FLG_ADDREG_BINVALUETYPE)
439 #define FLG_ADDREG_TYPE_MASK (0xFFFF0000 | FLG_ADDREG_BINVALUETYPE)
441 #define FLG_DELREG_VALUE (0x00000000)
442 #define FLG_DELREG_TYPE_MASK FLG_ADDREG_TYPE_MASK
443 #define FLG_DELREG_TYPE_SZ FLG_ADDREG_TYPE_SZ
444 #define FLG_DELREG_TYPE_MULTI_SZ FLG_ADDREG_TYPE_MULTI_SZ
445 #define FLG_DELREG_TYPE_EXPAND_SZ FLG_ADDREG_TYPE_EXPAND_SZ
446 #define FLG_DELREG_TYPE_BINARY FLG_ADDREG_TYPE_BINARY
447 #define FLG_DELREG_TYPE_DWORD FLG_ADDREG_TYPE_DWORD
448 #define FLG_DELREG_TYPE_NONE FLG_ADDREG_TYPE_NONE
449 #define FLG_DELREG_64BITKEY FLG_ADDREG_64BITKEY
450 #define FLG_DELREG_KEYONLY_COMMON FLG_ADDREG_KEYONLY_COMMON
451 #define FLG_DELREG_32BITKEY FLG_ADDREG_32BITKEY
452 #define FLG_DELREG_OPERATION_MASK (0x000000FE)
453 #define FLG_DELREG_MULTI_SZ_DELSTRING (FLG_DELREG_TYPE_MULTI_SZ | FLG_ADDREG_DELREG_BIT | 0x00000002)
455 #define FLG_REGSVR_DLLREGISTER 0x00000001
456 #define FLG_REGSVR_DLLINSTALL 0x00000002
458 #define DI_NOVCP 0x00000008
460 /* Class installer function codes */
461 #define DIF_SELECTDEVICE 0x01
462 #define DIF_INSTALLDEVICE 0x02
463 #define DIF_ASSIGNRESOURCES 0x03
464 #define DIF_PROPERTIES 0x04
465 #define DIF_REMOVE 0x05
466 #define DIF_FIRSTTIMESETUP 0x06
467 #define DIF_FOUNDDEVICE 0x07
468 #define DIF_SELECTCLASSDRIVERS 0x08
469 #define DIF_VALIDATECLASSDRIVERS 0x09
470 #define DIF_INSTALLCLASSDRIVERS 0x0a
471 #define DIF_CALCDISKSPACE 0x0b
472 #define DIF_DESTROYPRIVATEDATA 0x0c
473 #define DIF_VALIDATEDRIVER 0x0d
474 #define DIF_MOVEDEVICE 0x0e
475 #define DIF_DETECT 0x0f
476 #define DIF_INSTALLWIZARD 0x10
477 #define DIF_DESTROYWIZARDDATA 0x11
478 #define DIF_PROPERTYCHANGE 0x12
479 #define DIF_ENABLECLASS 0x13
480 #define DIF_DETECTVERIFY 0x14
481 #define DIF_INSTALLDEVICEFILES 0x15
482 #define DIF_UNREMOVE 0x16
483 #define DIF_SELECTBESTCOMPATDRV 0x17
484 #define DIF_ALLOW_INSTALL 0x18
485 #define DIF_REGISTERDEVICE 0x19
486 #define DIF_NEWDEVICEWIZARD_PRESELECT 0x1a
487 #define DIF_NEWDEVICEWIZARD_SELECT 0x1b
488 #define DIF_NEWDEVICEWIZARD_PREANALYZE 0x1c
489 #define DIF_NEWDEVICEWIZARD_POSTANALYZE 0x1d
490 #define DIF_NEWDEVICEWIZARD_FINISHINSTALL 0x1e
491 #define DIF_UNUSED1 0x1f
492 #define DIF_INSTALLINTERFACES 0x20
493 #define DIF_DETECTCANCEL 0x21
494 #define DIF_REGISTER_COINSTALLERS 0x22
495 #define DIF_ADDPROPERTYPAGE_ADVANCED 0x23
496 #define DIF_ADDPROPERTYPAGE_BASIC 0x24
497 #define DIF_RESERVED1 0x25
498 #define DIF_TROUBLESHOOTER 0x26
499 #define DIF_POWERMESSAGEWAKE 0x27
500 #define DIF_ADDREMOTEPROPERTYPAGE_ADVANCED 0x28
501 #define DIF_UPDATEDRIVER_UI 0x29
502 #define DIF_RESERVED2 0x30
505 #define DIRID_ABSOLUTE (-1)
506 #define DIRID_ABSOLUTE_16BIT 0xffff
508 #define DIRID_SRCPATH 1
509 #define DIRID_WINDOWS 10
510 #define DIRID_SYSTEM 11
511 #define DIRID_DRIVERS 12
512 #define DIRID_IOSUBSYS DIRID_DRIVERS
514 #define DIRID_HELP 18
515 #define DIRID_FONTS 20
516 #define DIRID_VIEWERS 21
517 #define DIRID_COLOR 23
518 #define DIRID_APPS 24
519 #define DIRID_SHARED 25
520 #define DIRID_BOOT 30
521 #define DIRID_SYSTEM16 50
522 #define DIRID_SPOOL 51
523 #define DIRID_SPOOLDRIVERS 52
524 #define DIRID_USERPROFILE 53
525 #define DIRID_LOADER 54
526 #define DIRID_PRINTPROCESSOR 55
527 #define DIRID_DEFAULT DIRID_SYSTEM
529 #define DIRID_COMMON_STARTMENU 16406
530 #define DIRID_COMMON_PROGRAMS 16407
531 #define DIRID_COMMON_STARTUP 16408
532 #define DIRID_COMMON_DESKTOPDIRECTORY 16409
533 #define DIRID_COMMON_FAVORITES 16415
534 #define DIRID_COMMON_APPDATA 16419
535 #define DIRID_PROGRAM_FILES 16422
536 #define DIRID_SYSTEM_X86 16425
537 #define DIRID_PROGRAM_FILES_X86 16426
538 #define DIRID_PROGRAM_FILES_COMMON 16427
539 #define DIRID_PROGRAM_FILES_COMMONX86 16428
540 #define DIRID_COMMON_TEMPLATES 16429
541 #define DIRID_COMMON_DOCUMENTS 16430
543 #define DIRID_USER 0x8000
548 #define ERROR_EXPECTED_SECTION_NAME (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0)
549 #define ERROR_BAD_SECTION_NAME_LINE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|1)
550 #define ERROR_SECTION_NAME_TOO_LONG (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|2)
551 #define ERROR_GENERAL_SYNTAX (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|3)
552 #define ERROR_WRONG_INF_STYLE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x100)
553 #define ERROR_SECTION_NOT_FOUND (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x101)
554 #define ERROR_LINE_NOT_FOUND (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x102)
555 #define ERROR_NO_BACKUP (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x103)
556 #define ERROR_NO_ASSOCIATED_CLASS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x200)
557 #define ERROR_CLASS_MISMATCH (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x201)
558 #define ERROR_DUPLICATE_FOUND (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x202)
559 #define ERROR_NO_DRIVER_SELECTED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x203)
560 #define ERROR_KEY_DOES_NOT_EXIST (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x204)
561 #define ERROR_INVALID_DEVINST_NAME (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x205)
562 #define ERROR_INVALID_CLASS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x206)
563 #define ERROR_DEVINST_ALREADY_EXISTS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x207)
564 #define ERROR_DEVINFO_NOT_REGISTERED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x208)
565 #define ERROR_INVALID_REG_PROPERTY (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x209)
566 #define ERROR_NO_INF (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20A)
567 #define ERROR_NO_SUCH_DEVINST (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20B)
568 #define ERROR_CANT_LOAD_CLASS_ICON (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20C)
569 #define ERROR_INVALID_CLASS_INSTALLER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20D)
570 #define ERROR_DI_DO_DEFAULT (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20E)
571 #define ERROR_DI_NOFILECOPY (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20F)
572 #define ERROR_INVALID_HWPROFILE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x210)
573 #define ERROR_NO_DEVICE_SELECTED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x211)
574 #define ERROR_DEVINFO_LIST_LOCKED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x212)
575 #define ERROR_DEVINFO_DATA_LOCKED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x213)
576 #define ERROR_DI_BAD_PATH (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x214)
577 #define ERROR_NO_CLASSINSTALL_PARAMS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x215)
578 #define ERROR_FILEQUEUE_LOCKED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x216)
579 #define ERROR_BAD_SERVICE_INSTALLSECT (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x217)
580 #define ERROR_NO_CLASS_DRIVER_LIST (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x218)
581 #define ERROR_NO_ASSOCIATED_SERVICE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x219)
582 #define ERROR_NO_DEFAULT_DEVICE_INTERFACE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21A)
583 #define ERROR_DEVICE_INTERFACE_ACTIVE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21B)
584 #define ERROR_DEVICE_INTERFACE_REMOVED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21C)
585 #define ERROR_BAD_INTERFACE_INSTALLSECT (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21D)
586 #define ERROR_NO_SUCH_INTERFACE_CLASS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21E)
587 #define ERROR_INVALID_REFERENCE_STRING (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21F)
588 #define ERROR_INVALID_MACHINENAME (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x220)
589 #define ERROR_REMOTE_COMM_FAILURE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x221)
590 #define ERROR_MACHINE_UNAVAILABLE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x222)
591 #define ERROR_NO_CONFIGMGR_SERVICES (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x223)
592 #define ERROR_INVALID_PROPPAGE_PROVIDER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x224)
593 #define ERROR_NO_SUCH_DEVICE_INTERFACE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x225)
594 #define ERROR_DI_POSTPROCESSING_REQUIRED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x226)
595 #define ERROR_INVALID_COINSTALLER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x227)
596 #define ERROR_NO_COMPAT_DRIVERS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x228)
597 #define ERROR_NO_DEVICE_ICON (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x229)
598 #define ERROR_INVALID_INF_LOGCONFIG (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22A)
599 #define ERROR_DI_DONT_INSTALL (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22B)
600 #define ERROR_INVALID_FILTER_DRIVER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22C)
601 #define ERROR_NON_WINDOWS_NT_DRIVER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22D)
602 #define ERROR_NON_WINDOWS_DRIVER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22E)
603 #define ERROR_NO_CATALOG_FOR_OEM_INF (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22F)
604 #define ERROR_DEVINSTALL_QUEUE_NONNATIVE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x230)
605 #define ERROR_NOT_DISABLEABLE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x231)
606 #define ERROR_CANT_REMOVE_DEVINST (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x232)
607 #define ERROR_INVALID_TARGET (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x233)
608 #define ERROR_DRIVER_NONNATIVE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x234)
609 #define ERROR_IN_WOW64 (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x235)
610 #define ERROR_SET_SYSTEM_RESTORE_POINT (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x236)
611 #define ERROR_INCORRECTLY_COPIED_INF (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x237)
612 #define ERROR_SCE_DISABLED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x238)
613 #define ERROR_NO_DEFAULT_INTERFACE_DEVICE ERROR_NO_DEFAULT_DEVICE_INTERFACE
614 #define ERROR_INTERFACE_DEVICE_ACTIVE ERROR_DEVICE_INTERFACE_ACTIVE
615 #define ERROR_INTERFACE_DEVICE_REMOVED ERROR_DEVICE_INTERFACE_REMOVED
616 #define ERROR_NO_SUCH_INTERFACE_DEVICE ERROR_NO_SUCH_DEVICE_INTERFACE
617 #define ERROR_NOT_INSTALLED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x1000)
619 /* flags for SetupDiGetClassDevs */
620 #define DIGCF_DEFAULT 0x00000001
621 #define DIGCF_PRESENT 0x00000002
622 #define DIGCF_ALLCLASSES 0x00000004
623 #define DIGCF_PROFILE 0x00000008
624 #define DIGCF_DEVICEINTERFACE 0x00000010
626 /* Flags for SetupDiOpenClassRegKeyEx */
627 #define DIOCR_INSTALLER 0x00000001
628 #define DIOCR_INTERFACE 0x00000002
630 /* Flags for SetupDiBuildClassInfoList(Ex) */
631 #define DIBCI_NOINSTALLCLASS 0x00000001
632 #define DIBCI_NODISPLAYCLASS 0x00000002
634 /* setup device registry property codes */
635 #define SPDRP_DEVICEDESC 0x00000000
636 #define SPDRP_HARDWAREID 0x00000001
637 #define SPDRP_COMPATIBLEIDS 0x00000002
638 #define SPDRP_UNUSED0 0x00000003
639 #define SPDRP_SERVICE 0x00000004
640 #define SPDRP_UNUSED1 0x00000005
641 #define SPDRP_UNUSED2 0x00000006
642 #define SPDRP_CLASS 0x00000007
643 #define SPDRP_CLASSGUID 0x00000008
644 #define SPDRP_DRIVER 0x00000009
645 #define SPDRP_CONFIGFLAGS 0x0000000a
646 #define SPDRP_MFG 0x0000000b
647 #define SPDRP_FRIENDLYNAME 0x0000000c
648 #define SPDRP_LOCATION_INFORMATION 0x0000000d
649 #define SPDRP_PHYSICAL_DEVICE_OBJECT_NAME 0x0000000e
650 #define SPDRP_CAPABILITIES 0x0000000f
651 #define SPDRP_UI_NUMBER 0x00000010
652 #define SPDRP_UPPERFILTERS 0x00000011
653 #define SPDRP_LOWERFILTERS 0x00000012
654 #define SPDRP_BUSTYPEGUID 0x00000013
655 #define SPDRP_LEGACYBUSTYPE 0x00000014
656 #define SPDRP_BUSNUMBER 0x00000015
657 #define SPDRP_ENUMERATOR_NAME 0x00000016
658 #define SPDRP_SECURITY 0x00000017
659 #define SPDRP_SECURITY_SDS 0x00000018
660 #define SPDRP_DEVTYPE 0x00000019
661 #define SPDRP_EXCLUSIVE 0x0000001a
662 #define SPDRP_CHARACTERISTICS 0x0000001b
663 #define SPDRP_ADDRESS 0x0000001c
664 #define SPDRP_UI_NUMBER_DESC_FORMAT 0x0000001d
665 #define SPDRP_DEVICE_POWER_DATA 0x0000001e
666 #define SPDRP_REMOVAL_POLICY 0x0000001f
667 #define SPDRP_REMOVAL_POLICY_HW_DEFAULT 0x00000020
668 #define SPDRP_REMOVAL_POLICY_OVERRIDE 0x00000021
669 #define SPDRP_INSTALL_STATE 0x00000022
670 #define SPDRP_MAXIMUM_PROPERTY 0x00000023
672 #define DPROMPT_SUCCESS 0
673 #define DPROMPT_CANCEL 1
674 #define DPROMPT_SKIPFILE 2
675 #define DPROMPT_BUFFERTOSMALL 3
676 #define DPROMPT_OUTOFMEMORY 4
678 #define IDF_NOBROWSE 0x00000001
679 #define IDF_NOSKIP 0x00000002
680 #define IDF_NODETAILS 0x00000004
681 #define IDF_NOCOMPRESSED 0x00000008
682 #define IDF_CHECKFIRST 0x00000100
683 #define IDF_NOBEEP 0x00000200
684 #define IDF_NOFOREGROUND 0x00000400
685 #define IDF_WARNIFSKIP 0x00000800
687 #define INFINFO_INF_SPEC_IS_HINF 1
688 #define INFINFO_INF_NAME_IS_ABSOLUTE 2
689 #define INFINFO_DEFAULT_SEARCH 3
690 #define INFINFO_REVERSE_DEFAULT_SEARCH 4
691 #define INFINFO_INF_PATH_LIST_SEARCH 5
693 #define LogSeverity DWORD
694 #define LogSevInformation 0x00000000
695 #define LogSevWarning 0x00000001
696 #define LogSevError 0x00000002
697 #define LogSevFatalError 0x00000003
698 #define LogSevMaximum 0x00000004
700 LONG WINAPI
AddTagToGroupOrderList(PCWSTR lpGroupName
, DWORD dwUnknown2
, DWORD dwUnknown3
);
701 DWORD WINAPI
CaptureAndConvertAnsiArg(PCSTR lpSrc
, PWSTR
*lpDst
);
702 DWORD WINAPI
CaptureStringArg(PCWSTR lpSrc
, PWSTR
*lpDst
);
703 BOOL WINAPI
DelayedMove(PCWSTR lpExistingFileName
, PCWSTR lpNewFileName
);
704 BOOL WINAPI
DoesUserHavePrivilege(PCWSTR lpPrivilegeName
);
705 PWSTR WINAPI
DuplicateString(PCWSTR lpSrc
);
706 BOOL WINAPI
EnablePrivilege(PCWSTR lpPrivilegeName
, BOOL bEnable
);
707 BOOL WINAPI
FileExists(PCWSTR lpFileName
, PWIN32_FIND_DATAW lpFileFindData
);
708 void WINAPI
InstallHinfSectionA( HWND hwnd
, HINSTANCE handle
, PCSTR cmdline
, INT show
);
709 void WINAPI
InstallHinfSectionW( HWND hwnd
, HINSTANCE handle
, PCWSTR cmdline
, INT show
);
710 #define InstallHinfSection WINELIB_NAME_AW(InstallHinfSection)
711 BOOL WINAPI
IsUserAdmin(VOID
);
712 PWSTR WINAPI
MultiByteToUnicode(PCSTR lpMultiByteStr
, UINT uCodePage
);
713 VOID WINAPI
MyFree(PVOID lpMem
);
714 PVOID WINAPI
MyMalloc(DWORD dwSize
);
715 PVOID WINAPI
MyRealloc(PVOID lpSrc
, DWORD dwSize
);
716 DWORD WINAPI
OpenAndMapForRead(PCWSTR
, PDWORD
, PHANDLE
, PHANDLE
, PVOID
*);
717 LONG WINAPI
QueryRegistryValue(HKEY
, PCWSTR
, PBYTE
*, PDWORD
, PDWORD
);
718 DWORD WINAPI
RetreiveFileSecurity(PCWSTR
, PSECURITY_DESCRIPTOR
*);
719 BOOL WINAPI
SetupCloseFileQueue( HSPFILEQ
);
720 void WINAPI
SetupCloseInfFile( HINF hinf
);
721 BOOL WINAPI
SetupCommitFileQueueA( HWND
, HSPFILEQ
, PSP_FILE_CALLBACK_A
, PVOID
);
722 BOOL WINAPI
SetupCommitFileQueueW( HWND
, HSPFILEQ
, PSP_FILE_CALLBACK_W
, PVOID
);
723 #define SetupCommitFileQueue WINELIB_NAME_AW(SetupCommitFileQueue)
724 UINT WINAPI
SetupCopyErrorA( HWND
, PCSTR
, PCSTR
, PCSTR
, PCSTR
, PCSTR
, UINT
, DWORD
, PSTR
, DWORD
, PDWORD
);
725 UINT WINAPI
SetupCopyErrorW( HWND
, PCWSTR
, PCWSTR
, PCWSTR
, PCWSTR
, PCWSTR
, UINT
, DWORD
, PWSTR
, DWORD
, PDWORD
);
726 #define SetupCopyError WINELIB_NAME_AW(SetupCopyError)
727 UINT WINAPI
SetupDefaultQueueCallbackA( PVOID
, UINT
, UINT_PTR
, UINT_PTR
);
728 UINT WINAPI
SetupDefaultQueueCallbackW( PVOID
, UINT
, UINT_PTR
, UINT_PTR
);
729 #define SetupDefaultQueueCallback WINELIB_NAME_AW(SetupDefaultQueueCallback)
730 UINT WINAPI
SetupDeleteErrorA( HWND
, PCSTR
, PCSTR
, UINT
, DWORD
);
731 UINT WINAPI
SetupDeleteErrorW( HWND
, PCWSTR
, PCWSTR
, UINT
, DWORD
);
732 #define SetupDeleteError WINELIB_NAME_AW(SetupDeleteError)
733 BOOL WINAPI
SetupDiBuildClassInfoList(DWORD
, LPGUID
, DWORD
, PDWORD
);
734 BOOL WINAPI
SetupDiBuildClassInfoListExA(DWORD
, LPGUID
, DWORD
, PDWORD
, PCSTR
, PVOID
);
735 BOOL WINAPI
SetupDiBuildClassInfoListExW(DWORD
, LPGUID
, DWORD
, PDWORD
, PCWSTR
, PVOID
);
736 #define SetupDiBuildClassInfoListEx WINELIB_NAME_AW(SetupDiBuildClassInfoListEx)
737 BOOL WINAPI
SetupDiCallClassInstaller(DI_FUNCTION
, HDEVINFO
, PSP_DEVINFO_DATA
);
738 BOOL WINAPI
SetupDiClassGuidsFromNameA(LPCSTR
, LPGUID
, DWORD
, PDWORD
);
739 BOOL WINAPI
SetupDiClassGuidsFromNameW(LPCWSTR
, LPGUID
, DWORD
, PDWORD
);
740 #define SetupDiClassGuidsFromName WINELIB_NAME_AW(SetupDiClassGuidsFromName)
741 BOOL WINAPI
SetupDiClassGuidsFromNameExA(LPCSTR
, LPGUID
, DWORD
, PDWORD
, LPCSTR
, PVOID
);
742 BOOL WINAPI
SetupDiClassGuidsFromNameExW(LPCWSTR
, LPGUID
, DWORD
, PDWORD
, LPCWSTR
, PVOID
);
743 #define SetupDiClassGuidsFromNameEx WINELIB_NAME_AW(SetupDiClassGuidsFromNameEx)
744 BOOL WINAPI
SetupDiClassNameFromGuidA(const GUID
*, PSTR
, DWORD
, PDWORD
);
745 BOOL WINAPI
SetupDiClassNameFromGuidW(const GUID
*, PWSTR
, DWORD
, PDWORD
);
746 #define SetupDiClassNameFromGuid WINELIB_NAME_AW(SetupDiClassNameFromGuid)
747 BOOL WINAPI
SetupDiClassNameFromGuidExA(const GUID
*, PSTR
, DWORD
, PDWORD
, PCSTR
, PVOID
);
748 BOOL WINAPI
SetupDiClassNameFromGuidExW(const GUID
*, PWSTR
, DWORD
, PDWORD
, PCWSTR
, PVOID
);
749 #define SetupDiClassNameFromGuidEx WINELIB_NAME_AW(SetupDiClassNameFromGuidEx)
750 HDEVINFO WINAPI
SetupDiCreateDeviceInfoList(const GUID
*, HWND
);
751 HDEVINFO WINAPI
SetupDiCreateDeviceInfoListExA(const GUID
*, HWND
, PCSTR
, PVOID
);
752 HDEVINFO WINAPI
SetupDiCreateDeviceInfoListExW(const GUID
*, HWND
, PCWSTR
, PVOID
);
753 #define SetupDiCreateDeviceInfoListEx WINELIB_NAME_AW(SetupDiCreateDeviceInfoListEx)
754 BOOL WINAPI
SetupDiCreateDeviceInfoA(HDEVINFO
, PCSTR
, CONST GUID
*, PCSTR
, HWND
, DWORD
,PSP_DEVINFO_DATA
);
755 BOOL WINAPI
SetupDiCreateDeviceInfoW(HDEVINFO
, PCWSTR
, CONST GUID
*, PCWSTR
, HWND
, DWORD
,PSP_DEVINFO_DATA
);
756 #define SetupDiCreateDeviceInfo WINELIB_NAME_AW(SetupDiCreateDeviceInfo)
757 BOOL WINAPI
SetupDiDestroyDeviceInfoList(HDEVINFO
);
758 BOOL WINAPI
SetupDiEnumDeviceInfo(HDEVINFO
, DWORD
, PSP_DEVINFO_DATA
);
759 BOOL WINAPI
SetupDiEnumDeviceInterfaces(HDEVINFO
, PSP_DEVINFO_DATA
, const GUID
*, DWORD
, PSP_DEVICE_INTERFACE_DATA
);
760 BOOL WINAPI
SetupDiGetActualSectionToInstallA(HINF
, PCSTR
, PSTR
, DWORD
, PDWORD
, PSTR
*);
761 BOOL WINAPI
SetupDiGetActualSectionToInstallW(HINF
, PCWSTR
, PWSTR
, DWORD
, PDWORD
, PWSTR
*);
762 #define SetupDiGetActualSectionToInstall WINELIB_NAME_AW(SetupDiGetActualSectionToInstall)
763 BOOL WINAPI
SetupDiGetClassDescriptionA(const GUID
*, PSTR
, DWORD
, PDWORD
);
764 BOOL WINAPI
SetupDiGetClassDescriptionW(const GUID
*, PWSTR
, DWORD
, PDWORD
);
765 #define SetupDiGetClassDescription WINELIB_NAME_AW(SetupDiGetClassDescription)
766 BOOL WINAPI
SetupDiGetClassDescriptionExA(const GUID
*, PSTR
, DWORD
, PDWORD
, PCSTR
, PVOID
);
767 BOOL WINAPI
SetupDiGetClassDescriptionExW(const GUID
*, PWSTR
, DWORD
, PDWORD
, PCWSTR
, PVOID
);
768 #define SetupDiGetClassDescriptionEx WINELIB_NAME_AW(SetupDiGetClassDescriptionEx)
769 HDEVINFO WINAPI
SetupDiGetClassDevsA(CONST GUID
*,LPCSTR
,HWND
,DWORD
);
770 HDEVINFO WINAPI
SetupDiGetClassDevsW(CONST GUID
*,LPCWSTR
,HWND
,DWORD
);
771 #define SetupDiGetClassDevs WINELIB_NAME_AW(SetupDiGetClassDevs)
772 BOOL WINAPI
SetupDiGetDeviceInterfaceDetailA(HDEVINFO
, PSP_DEVICE_INTERFACE_DATA
, PSP_DEVICE_INTERFACE_DETAIL_DATA_A
,
773 DWORD
, PDWORD
, PSP_DEVINFO_DATA
);
774 BOOL WINAPI
SetupDiGetDeviceInterfaceDetailW(HDEVINFO
, PSP_DEVICE_INTERFACE_DATA
, PSP_DEVICE_INTERFACE_DETAIL_DATA_W
,
775 DWORD
, PDWORD
, PSP_DEVINFO_DATA
);
776 #define SetupDiGetDeviceInterfaceDetail WINELIB_NAME_AW(SetupDiGetDeviceInterfaceDetail)
777 BOOL WINAPI
SetupDiGetDeviceInstallParamsA(HDEVINFO
, PSP_DEVINFO_DATA
, PSP_DEVINSTALL_PARAMS_A
);
778 BOOL WINAPI
SetupDiGetDeviceInstallParamsW(HDEVINFO
, PSP_DEVINFO_DATA
, PSP_DEVINSTALL_PARAMS_W
);
779 #define SetupDiGetDeviceInstallParams WINELIB_NAME_AW(SetupDiGetDeviceInstallParams)
780 BOOL WINAPI
SetupDiGetDeviceRegistryPropertyA(HDEVINFO
, PSP_DEVINFO_DATA
, DWORD
, PDWORD
, PBYTE
, DWORD
, PDWORD
);
781 BOOL WINAPI
SetupDiInstallClassA(HWND
, PCSTR
, DWORD
, HSPFILEQ
);
782 BOOL WINAPI
SetupDiInstallClassW(HWND
, PCWSTR
, DWORD
, HSPFILEQ
);
783 #define SetupDiInstallClass WINELIB_NAME_AW(SetupDiInstallClass)
784 HKEY WINAPI
SetupDiOpenClassRegKey(const GUID
*, REGSAM
);
785 HKEY WINAPI
SetupDiOpenClassRegKeyExA(const GUID
*, REGSAM
, DWORD
, PCSTR
, PVOID
);
786 HKEY WINAPI
SetupDiOpenClassRegKeyExW(const GUID
*, REGSAM
, DWORD
, PCWSTR
, PVOID
);
787 #define SetupDiOpenClassRegKeyEx WINELIB_NAME_AW(SetupDiOpenClassRegKeyEx)
788 BOOL WINAPI
SetupDiOpenDeviceInterfaceA(HDEVINFO
, PCSTR
, DWORD
, PSP_DEVICE_INTERFACE_DATA
);
789 BOOL WINAPI
SetupDiOpenDeviceInterfaceW(HDEVINFO
, PCWSTR
, DWORD
, PSP_DEVICE_INTERFACE_DATA
);
790 #define SetupDiOpenDeviceInterface WINELIB_NAME_AW(SetupDiOpenDeviceInterface)
791 HKEY WINAPI
SetupDiOpenDevRegKey(HDEVINFO
, PSP_DEVINFO_DATA
, DWORD
, DWORD
, DWORD
, REGSAM
);
792 BOOL WINAPI
SetupDiSetClassInstallParamsA(HDEVINFO
, PSP_DEVINFO_DATA
, PSP_CLASSINSTALL_HEADER
, DWORD
);
793 BOOL WINAPI
SetupDiSetClassInstallParamsW(HDEVINFO
, PSP_DEVINFO_DATA
, PSP_CLASSINSTALL_HEADER
, DWORD
);
794 #define SetupDiSetClassInstallParams WINELIB_NAME_AW(SetupDiSetClassInstallParams)
795 BOOL WINAPI
SetupFindFirstLineA( HINF hinf
, PCSTR section
, PCSTR key
, INFCONTEXT
*context
);
796 BOOL WINAPI
SetupFindFirstLineW( HINF hinf
, PCWSTR section
, PCWSTR key
, INFCONTEXT
*context
);
797 #define SetupFindFirstLine WINELIB_NAME_AW(SetupFindFirstLine)
798 BOOL WINAPI
SetupFindNextLine( PINFCONTEXT context_in
, PINFCONTEXT context_out
);
799 BOOL WINAPI
SetupFindNextMatchLineA( PINFCONTEXT context_in
, PCSTR key
, PINFCONTEXT context_out
);
800 BOOL WINAPI
SetupFindNextMatchLineW( PINFCONTEXT context_in
, PCWSTR key
, PINFCONTEXT context_out
);
801 #define SetupFindNextMatchLine WINELIB_NAME_AW(SetupFindNextMatchLine)
802 BOOL WINAPI
SetupGetBinaryField( PINFCONTEXT context
, DWORD index
, BYTE
*buffer
, DWORD size
, LPDWORD required
);
803 DWORD WINAPI
SetupGetFieldCount( PINFCONTEXT context
);
804 BOOL WINAPI
SetupGetFileQueueCount( HSPFILEQ
, UINT
, PUINT
);
805 BOOL WINAPI
SetupGetFileQueueFlags( HSPFILEQ
, PDWORD
);
806 BOOL WINAPI
SetupGetInfInformationA( LPCVOID
, DWORD
, PSP_INF_INFORMATION
, DWORD
, PDWORD
);
807 BOOL WINAPI
SetupGetInfInformationW( LPCVOID
, DWORD
, PSP_INF_INFORMATION
, DWORD
, PDWORD
);
808 #define SetupGetInfInformation WINELIB_NAME_AW(SetupGetInfInformation)
809 BOOL WINAPI
SetupGetIntField( PINFCONTEXT context
, DWORD index
, PINT result
);
810 BOOL WINAPI
SetupGetLineByIndexA( HINF
, PCSTR
, DWORD
, INFCONTEXT
* );
811 BOOL WINAPI
SetupGetLineByIndexW( HINF
, PCWSTR
, DWORD
, INFCONTEXT
* );
812 #define SetupGetLineByIndex WINELIB_NAME_AW(SetupGetLineByIndex)
813 LONG WINAPI
SetupGetLineCountA( HINF hinf
, PCSTR section
);
814 LONG WINAPI
SetupGetLineCountW( HINF hinf
, PCWSTR section
);
815 #define SetupGetLineCount WINELIB_NAME_AW(SetupGetLineCount)
816 BOOL WINAPI
SetupGetLineTextA( PINFCONTEXT context
, HINF hinf
, PCSTR section_name
,PCSTR key_name
, PSTR buffer
, DWORD size
, PDWORD required
);
817 BOOL WINAPI
SetupGetLineTextW( PINFCONTEXT context
, HINF hinf
, PCWSTR section_name
, PCWSTR key_name
, PWSTR buffer
, DWORD size
, PDWORD required
);
818 #define SetupGetLineText WINELIB_NAME_AW(SetupGetLineText)
819 BOOL WINAPI
SetupGetMultiSzFieldA( PINFCONTEXT context
, DWORD index
, PSTR buffer
, DWORD size
, LPDWORD required
);
820 BOOL WINAPI
SetupGetMultiSzFieldW( PINFCONTEXT context
, DWORD index
, PWSTR buffer
, DWORD size
, LPDWORD required
);
821 #define SetupGetMultiSzField WINELIB_NAME_AW(SetupGetMultiSzField)
822 BOOL WINAPI
SetupGetStringFieldA( PINFCONTEXT context
, DWORD index
, PSTR buffer
, DWORD size
, PDWORD required
);
823 BOOL WINAPI
SetupGetStringFieldW( PINFCONTEXT context
, DWORD index
, PWSTR buffer
, DWORD size
, PDWORD required
);
824 #define SetupGetStringField WINELIB_NAME_AW(SetupGetStringField)
825 PVOID WINAPI
SetupInitDefaultQueueCallback( HWND
);
826 PVOID WINAPI
SetupInitDefaultQueueCallbackEx( HWND
, HWND
, UINT
, DWORD
, PVOID
);
827 BOOL WINAPI
SetupInstallFilesFromInfSectionA( HINF
, HINF
, HSPFILEQ
, PCSTR
, PCSTR
, UINT
);
828 BOOL WINAPI
SetupInstallFilesFromInfSectionW( HINF
, HINF
, HSPFILEQ
, PCWSTR
, PCWSTR
, UINT
);
829 #define SetupInstallFilesFromInfSection WINELIB_NAME_AW(SetupInstallFilesFromInfSection)
830 BOOL WINAPI
SetupInstallFromInfSectionA(HWND
,HINF
,PCSTR
,UINT
,HKEY
,PCSTR
,UINT
,
831 PSP_FILE_CALLBACK_A
,PVOID
,HDEVINFO
,PSP_DEVINFO_DATA
);
832 BOOL WINAPI
SetupInstallFromInfSectionW(HWND
,HINF
,PCWSTR
,UINT
,HKEY
,PCWSTR
,UINT
,
833 PSP_FILE_CALLBACK_W
,PVOID
,HDEVINFO
,PSP_DEVINFO_DATA
);
834 #define SetupInstallFromInfSection WINELIB_NAME_AW(SetupInstallFromInfSection)
835 BOOL WINAPI
SetupIterateCabinetA(PCSTR
, DWORD
, PSP_FILE_CALLBACK_A
, PVOID
);
836 BOOL WINAPI
SetupIterateCabinetW(PCWSTR
, DWORD
, PSP_FILE_CALLBACK_W
, PVOID
);
837 #define SetupIterateCabinet WINELIB_NAME_AW(SetupIterateCabinet)
838 BOOL WINAPI
SetupOpenAppendInfFileA( PCSTR
, HINF
, UINT
* );
839 BOOL WINAPI
SetupOpenAppendInfFileW( PCWSTR
, HINF
, UINT
* );
840 #define SetupOpenAppendInfFile WINELIB_NAME_AW(SetupOpenAppendInfFile)
841 HSPFILEQ WINAPI
SetupOpenFileQueue(void);
842 HINF WINAPI
SetupOpenInfFileA( PCSTR name
, PCSTR pszclass
, DWORD style
, UINT
*error
);
843 HINF WINAPI
SetupOpenInfFileW( PCWSTR name
, PCWSTR pszclass
, DWORD style
, UINT
*error
);
844 #define SetupOpenInfFile WINELIB_NAME_AW(SetupOpenInfFile)
845 HINF WINAPI
SetupOpenMasterInf( VOID
);
846 BOOL WINAPI
SetupQueryInfFileInformationA(PSP_INF_INFORMATION
, UINT
, PSTR
, DWORD
, PDWORD
);
847 BOOL WINAPI
SetupQueryInfFileInformationW(PSP_INF_INFORMATION
, UINT
, PWSTR
, DWORD
, PDWORD
);
848 #define SetupQueryInfFileInformation WINELIB_NAME_AW(SetupQueryInFileInformation)
849 BOOL WINAPI
SetupQueueCopyA(HSPFILEQ
,PCSTR
,PCSTR
,PCSTR
,PCSTR
,PCSTR
,PCSTR
,PCSTR
,DWORD
);
850 BOOL WINAPI
SetupQueueCopyW(HSPFILEQ
,PCWSTR
,PCWSTR
,PCWSTR
,PCWSTR
,PCWSTR
,PCWSTR
,PCWSTR
,DWORD
);
851 #define SetupQueueCopy WINELIB_NAME_AW(SetupQueueCopy)
852 BOOL WINAPI
SetupQueueCopyIndirectA( PSP_FILE_COPY_PARAMS_A
);
853 BOOL WINAPI
SetupQueueCopyIndirectW( PSP_FILE_COPY_PARAMS_W
);
854 #define SetupQueueCopyIndirect WINELIB_NAME_AW(SetupQueueCopyIndirect)
855 BOOL WINAPI
SetupQueueCopySectionA( HSPFILEQ
, PCSTR
, HINF
, HINF
, PCSTR
, DWORD
);
856 BOOL WINAPI
SetupQueueCopySectionW( HSPFILEQ
, PCWSTR
, HINF
, HINF
, PCWSTR
, DWORD
);
857 #define SetupQueueCopySection WINELIB_NAME_AW(SetupQueueCopySection)
858 BOOL WINAPI
SetupQueueDefaultCopyA( HSPFILEQ
, HINF
, PCSTR
, PCSTR
, PCSTR
, DWORD
);
859 BOOL WINAPI
SetupQueueDefaultCopyW( HSPFILEQ
, HINF
, PCWSTR
, PCWSTR
, PCWSTR
, DWORD
);
860 #define SetupQueueDefaultCopy WINELIB_NAME_AW(SetupQueueDefaultCopy)
861 BOOL WINAPI
SetupQueueDeleteA( HSPFILEQ
, PCSTR
, PCSTR
);
862 BOOL WINAPI
SetupQueueDeleteW( HSPFILEQ
, PCWSTR
, PCWSTR
);
863 #define SetupQueueDelete WINELIB_NAME_AW(SetupQueueDelete)
864 BOOL WINAPI
SetupQueueDeleteSectionA( HSPFILEQ
, HINF
, HINF
, PCSTR
);
865 BOOL WINAPI
SetupQueueDeleteSectionW( HSPFILEQ
, HINF
, HINF
, PCWSTR
);
866 #define SetupQueueDeleteSection WINELIB_NAME_AW(SetupQueueDeleteSection)
867 BOOL WINAPI
SetupQueueRenameA( HSPFILEQ
, PCSTR
, PCSTR
, PCSTR
, PCSTR
);
868 BOOL WINAPI
SetupQueueRenameW( HSPFILEQ
, PCWSTR
, PCWSTR
, PCWSTR
, PCWSTR
);
869 #define SetupQueueRename WINELIB_NAME_AW(SetupQueueRename)
870 BOOL WINAPI
SetupQueueRenameSectionA( HSPFILEQ
, HINF
, HINF
, PCSTR
);
871 BOOL WINAPI
SetupQueueRenameSectionW( HSPFILEQ
, HINF
, HINF
, PCWSTR
);
872 #define SetupQueueRenameSection WINELIB_NAME_AW(SetupQueueRenameSection)
873 UINT WINAPI
SetupRenameErrorA( HWND
, PCSTR
, PCSTR
, PCSTR
, UINT
, DWORD
);
874 UINT WINAPI
SetupRenameErrorW( HWND
, PCWSTR
, PCWSTR
, PCWSTR
, UINT
, DWORD
);
875 #define SetupRenameError WINELIB_NAME_AW(SetupRenameError)
876 BOOL WINAPI
SetupScanFileQueueA( HSPFILEQ
, DWORD
, HWND
, PSP_FILE_CALLBACK_A
, PVOID
, PDWORD
);
877 BOOL WINAPI
SetupScanFileQueueW( HSPFILEQ
, DWORD
, HWND
, PSP_FILE_CALLBACK_W
, PVOID
, PDWORD
);
878 #define SetupScanFileQueue WINELIB_NAME_AW(SetupScanFileQueue)
879 BOOL WINAPI
SetupSetDirectoryIdA( HINF
, DWORD
, PCSTR
);
880 BOOL WINAPI
SetupSetDirectoryIdW( HINF
, DWORD
, PCWSTR
);
881 #define SetupSetDirectoryId WINELIB_NAME_AW(SetupSetDirectoryId)
882 BOOL WINAPI
SetupSetFileQueueAlternatePlatformA( HSPFILEQ
, PSP_ALTPLATFORM_INFO
, PCSTR
);
883 BOOL WINAPI
SetupSetFileQueueAlternatePlatformW( HSPFILEQ
, PSP_ALTPLATFORM_INFO
, PCWSTR
);
884 #define SetupSetFileQueueAlternatePlatform WINELIB_NAME_AW(SetupSetFileQueueAlternatePlatform)
885 BOOL WINAPI
SetupSetFileQueueFlags( HSPFILEQ
, DWORD
, DWORD
);
886 void WINAPI
SetupTermDefaultQueueCallback( PVOID
);
887 DWORD WINAPI
StampFileSecurity(PCWSTR
, PSECURITY_DESCRIPTOR
);
888 DWORD WINAPI
StringTableAddString(HSTRING_TABLE
, LPWSTR
, DWORD
);
889 VOID WINAPI
StringTableDestroy(HSTRING_TABLE
);
890 HSTRING_TABLE WINAPI
StringTableDuplicate(HSTRING_TABLE hStringTable
);
891 HSTRING_TABLE WINAPI
StringTableInitialize(VOID
);
892 DWORD WINAPI
StringTableLookUpString(HSTRING_TABLE
, LPWSTR
, DWORD
);
893 LPWSTR WINAPI
StringTableStringFromId(HSTRING_TABLE
, DWORD
);
894 BOOL WINAPI
StringTableStringFromIdEx(HSTRING_TABLE
, DWORD
, LPWSTR
, LPDWORD
);
895 VOID WINAPI
StringTableTrim(HSTRING_TABLE
);
896 DWORD WINAPI
TakeOwnershipOfFile(PCWSTR
);
897 PSTR WINAPI
UnicodeToMultiByte(PCWSTR lpUnicodeStr
, UINT uCodePage
);
898 BOOL WINAPI
UnmapAndCloseFile(HANDLE
, HANDLE
, PVOID
);
901 #undef DECL_WINELIB_SETUPAPI_TYPE_AW
903 #endif /* _INC_SETUPAPI */