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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 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
;
41 typedef struct _INFCONTEXT
47 } INFCONTEXT
, *PINFCONTEXT
;
49 typedef struct _SP_ALTPLATFORM_INFO_V2
55 WORD ProcessorArchitecture
;
61 DWORD FirstValidatedMajorVersion
;
62 DWORD FirstValidatedMinorVersion
;
63 } SP_ALTPLATFORM_INFO_V2
, *PSP_ALTPLATFORM_INFO_V2
;
65 #define SP_ALTPLATFORM_FLAGS_VERSION_RANGE 0x0001
67 typedef struct _SP_ALTPLATFORM_INFO_V1
73 WORD ProcessorArchitecture
;
75 } SP_ALTPLATFORM_INFO_V1
, *PSP_ALTPLATFORM_INFO_V1
;
77 typedef SP_ALTPLATFORM_INFO_V2 SP_ALTPLATFORM_INFO
;
78 typedef PSP_ALTPLATFORM_INFO_V2 PSP_ALTPLATFORM_INFO
;
80 typedef struct _SP_FILE_COPY_PARAMS_A
87 PCSTR SourceDescription
;
89 PCSTR TargetDirectory
;
93 PCSTR SecurityDescriptor
;
94 } SP_FILE_COPY_PARAMS_A
, *PSP_FILE_COPY_PARAMS_A
;
96 typedef struct _SP_FILE_COPY_PARAMS_W
100 PCWSTR SourceRootPath
;
102 PCWSTR SourceFilename
;
103 PCWSTR SourceDescription
;
104 PCWSTR SourceTagfile
;
105 PCWSTR TargetDirectory
;
106 PCWSTR TargetFilename
;
109 PCWSTR SecurityDescriptor
;
110 } SP_FILE_COPY_PARAMS_W
, *PSP_FILE_COPY_PARAMS_W
;
112 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_FILE_COPY_PARAMS
)
113 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_FILE_COPY_PARAMS
)
115 typedef UINT (CALLBACK
*PSP_FILE_CALLBACK_A
)( PVOID Context
, UINT Notification
,
116 UINT Param1
, UINT Param2
);
117 typedef UINT (CALLBACK
*PSP_FILE_CALLBACK_W
)( PVOID Context
, UINT Notification
,
118 UINT Param1
, UINT Param2
);
119 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_FILE_CALLBACK
)
122 #define MAX_INF_STRING_LENGTH 4096
123 #define MAX_TITLE_LEN 60
124 #define MAX_INSTRUCTION_LEN 256
125 #define MAX_LABEL_LEN 30
126 #define MAX_SERVICE_NAME_LEN 256
127 #define MAX_SUBTITLE_LEN 256
128 #define SP_MAX_MACHINENAME_LENGTH (MAX_PATH + 3)
130 /* Device Information structure (references a device instance that is a member
131 of a device information set) */
132 typedef struct _SP_DEVINFO_DATA
136 DWORD DevInst
; /* DEVINST handle */
138 } SP_DEVINFO_DATA
, *PSP_DEVINFO_DATA
;
140 typedef struct _SP_DEVICE_INTERFACE_DATA
143 GUID InterfaceClassGuid
;
146 } SP_DEVICE_INTERFACE_DATA
, *PSP_DEVICE_INTERFACE_DATA
;
148 typedef struct _SP_DEVICE_INTERFACE_DETAIL_DATA_A
151 CHAR DevicePath
[ANYSIZE_ARRAY
];
152 } SP_DEVICE_INTERFACE_DETAIL_DATA_A
, *PSP_DEVICE_INTERFACE_DETAIL_DATA_A
;
154 typedef struct _SP_DEVICE_INTERFACE_DETAIL_DATA_W
157 WCHAR DevicePath
[ANYSIZE_ARRAY
];
158 } SP_DEVICE_INTERFACE_DETAIL_DATA_W
, *PSP_DEVICE_INTERFACE_DETAIL_DATA_W
;
160 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_DEVICE_INTERFACE_DETAIL_DATA
)
161 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_DEVICE_INTERFACE_DETAIL_DATA
)
163 typedef struct _FILE_IN_CABINET_INFO_A
{
164 LPCSTR NameInCabinet
;
170 CHAR FullTargetName
[MAX_PATH
];
171 } FILE_IN_CABINET_INFO_A
, *PFILE_IN_CABINET_INFO_A
;
173 typedef struct _FILE_IN_CABINET_INFO_W
{
174 LPCWSTR NameInCabinet
;
180 WCHAR FullTargetName
[MAX_PATH
];
181 } FILE_IN_CABINET_INFO_W
, *PFILE_IN_CABINET_INFO_W
;
183 DECL_WINELIB_SETUPAPI_TYPE_AW(FILE_IN_CABINET_INFO
)
184 DECL_WINELIB_SETUPAPI_TYPE_AW(PFILE_IN_CABINET_INFO
)
186 typedef struct _CABINET_INFO_A
{
191 USHORT CabinetNumber
;
192 } CABINET_INFO_A
, *PCABINET_INFO_A
;
194 typedef struct _CABINET_INFO_W
{
199 USHORT CabinetNumber
;
200 } CABINET_INFO_W
, *PCABINET_INFO_W
;
202 DECL_WINELIB_SETUPAPI_TYPE_AW(CABINET_INFO
);
203 DECL_WINELIB_SETUPAPI_TYPE_AW(PCABINET_INFO
);
205 #define INF_STYLE_NONE 0x00
206 #define INF_STYLE_OLDNT 0x01
207 #define INF_STYLE_WIN4 0x02
208 #define INF_STYLE_CACHE_ENABLE 0x10
209 #define INF_STYLE_CACHE_DISABLE 0x20
211 #define FILEOP_COPY 0
212 #define FILEOP_RENAME 1
213 #define FILEOP_DELETE 2
214 #define FILEOP_BACKUP 3
216 #define FILEOP_ABORT 0
217 #define FILEOP_DOIT 1
218 #define FILEOP_SKIP 2
219 #define FILEOP_RETRY FILEOP_DOIT
220 #define FILEOP_NEWPATH 4
222 typedef struct _FILEPATHS_A
228 } FILEPATHS_A
, *PFILEPATHS_A
;
230 typedef struct _FILEPATHS_W
236 } FILEPATHS_W
, *PFILEPATHS_W
;
238 DECL_WINELIB_SETUPAPI_TYPE_AW(FILEPATHS
)
239 DECL_WINELIB_SETUPAPI_TYPE_AW(PFILEPATHS
)
241 #define SPFILENOTIFY_STARTQUEUE 0x0001
242 #define SPFILENOTIFY_ENDQUEUE 0x0002
243 #define SPFILENOTIFY_STARTSUBQUEUE 0x0003
244 #define SPFILENOTIFY_ENDSUBQUEUE 0x0004
245 #define SPFILENOTIFY_STARTDELETE 0x0005
246 #define SPFILENOTIFY_ENDDELETE 0x0006
247 #define SPFILENOTIFY_DELETEERROR 0x0007
248 #define SPFILENOTIFY_STARTRENAME 0x0008
249 #define SPFILENOTIFY_ENDRENAME 0x0009
250 #define SPFILENOTIFY_RENAMEERROR 0x000a
251 #define SPFILENOTIFY_STARTCOPY 0x000b
252 #define SPFILENOTIFY_ENDCOPY 0x000c
253 #define SPFILENOTIFY_COPYERROR 0x000d
254 #define SPFILENOTIFY_NEEDMEDIA 0x000e
255 #define SPFILENOTIFY_QUEUESCAN 0x000f
256 #define SPFILENOTIFY_CABINETINFO 0x0010
257 #define SPFILENOTIFY_FILEINCABINET 0x0011
258 #define SPFILENOTIFY_NEEDNEWCABINET 0x0012
259 #define SPFILENOTIFY_FILEEXTRACTED 0x0013
260 #define SPFILENOTIFY_FILEOPDELAYED 0x0014
261 #define SPFILENOTIFY_STARTBACKUP 0x0015
262 #define SPFILENOTIFY_BACKUPERROR 0x0016
263 #define SPFILENOTIFY_ENDBACKUP 0x0017
264 #define SPFILENOTIFY_QUEUESCAN_EX 0x0018
265 #define SPFILENOTIFY_STARTREGISTRATION 0x0019
266 #define SPFILENOTIFY_ENDREGISTRATION 0x0020
267 #define SPFILENOTIFY_QUEUESCAN_SIGNERINFO 0x0040
269 #define SPFILENOTIFY_LANGMISMATCH 0x00010000
270 #define SPFILENOTIFY_TARGETEXISTS 0x00020000
271 #define SPFILENOTIFY_TARGETNEWER 0x00040000
273 #define SPINST_LOGCONFIG 0x00000001
274 #define SPINST_INIFILES 0x00000002
275 #define SPINST_REGISTRY 0x00000004
276 #define SPINST_INI2REG 0x00000008
277 #define SPINST_FILES 0x00000010
278 #define SPINST_BITREG 0x00000020
279 #define SPINST_REGSVR 0x00000040
280 #define SPINST_UNREGSVR 0x00000080
281 #define SPINST_PROFILEITEMS 0x00000100
282 #define SPINST_COPYINF 0x00000200
283 #define SPINST_ALL 0x000003ff
284 #define SPINST_SINGLESECTION 0x00010000
285 #define SPINST_LOGCONFIG_IS_FORCED 0x00020000
286 #define SPINST_LOGCONFIGS_ARE_OVERRIDES 0x00040000
287 #define SPINST_REGISTERCALLBACKAWARE 0x00080000
289 #define SP_COPY_DELETESOURCE 0x00000001
290 #define SP_COPY_REPLACEONLY 0x00000002
291 #define SP_COPY_NEWER 0x00000004
292 #define SP_COPY_NEWER_OR_SAME SP_COPY_NEWER
293 #define SP_COPY_NOOVERWRITE 0x00000008
294 #define SP_COPY_NODECOMP 0x00000010
295 #define SP_COPY_LANGUAGEAWARE 0x00000020
296 #define SP_COPY_SOURCE_ABSOLUTE 0x00000040
297 #define SP_COPY_SOURCEPATH_ABSOLUTE 0x00000080
298 #define SP_COPY_IN_USE_NEEDS_REBOOT 0x00000100
299 #define SP_COPY_FORCE_IN_USE 0x00000200
300 #define SP_COPY_NOSKIP 0x00000400
301 #define SP_FLAG_CABINETCONTINUATION 0x00000800
302 #define SP_COPY_FORCE_NOOVERWRITE 0x00001000
303 #define SP_COPY_FORCE_NEWER 0x00002000
304 #define SP_COPY_WARNIFSKIP 0x00004000
305 #define SP_COPY_NOBROWSE 0x00008000
306 #define SP_COPY_NEWER_ONLY 0x00010000
307 #define SP_COPY_SOURCE_SIS_MASTER 0x00020000
308 #define SP_COPY_OEMINF_CATALOG_ONLY 0x00040000
309 #define SP_COPY_REPLACE_BOOT_FILE 0x00080000
310 #define SP_COPY_NOPRUNE 0x00100000
311 #define SP_COPY_OEM_F6_INF 0x00200000
313 #define FLG_ADDREG_DELREG_BIT 0x00008000
314 #define FLG_ADDREG_BINVALUETYPE 0x00000001
315 #define FLG_ADDREG_NOCLOBBER 0x00000002
316 #define FLG_ADDREG_DELVAL 0x00000004
317 #define FLG_ADDREG_APPEND 0x00000008
318 #define FLG_ADDREG_KEYONLY 0x00000010
319 #define FLG_ADDREG_OVERWRITEONLY 0x00000020
320 #define FLG_ADDREG_64BITKEY 0x00001000
321 #define FLG_ADDREG_KEYONLY_COMMON 0x00002000
322 #define FLG_ADDREG_32BITKEY 0x00004000
323 #define FLG_ADDREG_TYPE_SZ 0x00000000
324 #define FLG_ADDREG_TYPE_MULTI_SZ 0x00010000
325 #define FLG_ADDREG_TYPE_EXPAND_SZ 0x00020000
326 #define FLG_ADDREG_TYPE_BINARY (0x00000000 | FLG_ADDREG_BINVALUETYPE)
327 #define FLG_ADDREG_TYPE_DWORD (0x00010000 | FLG_ADDREG_BINVALUETYPE)
328 #define FLG_ADDREG_TYPE_NONE (0x00020000 | FLG_ADDREG_BINVALUETYPE)
329 #define FLG_ADDREG_TYPE_MASK (0xFFFF0000 | FLG_ADDREG_BINVALUETYPE)
331 #define FLG_DELREG_VALUE (0x00000000)
332 #define FLG_DELREG_TYPE_MASK FLG_ADDREG_TYPE_MASK
333 #define FLG_DELREG_TYPE_SZ FLG_ADDREG_TYPE_SZ
334 #define FLG_DELREG_TYPE_MULTI_SZ FLG_ADDREG_TYPE_MULTI_SZ
335 #define FLG_DELREG_TYPE_EXPAND_SZ FLG_ADDREG_TYPE_EXPAND_SZ
336 #define FLG_DELREG_TYPE_BINARY FLG_ADDREG_TYPE_BINARY
337 #define FLG_DELREG_TYPE_DWORD FLG_ADDREG_TYPE_DWORD
338 #define FLG_DELREG_TYPE_NONE FLG_ADDREG_TYPE_NONE
339 #define FLG_DELREG_64BITKEY FLG_ADDREG_64BITKEY
340 #define FLG_DELREG_KEYONLY_COMMON FLG_ADDREG_KEYONLY_COMMON
341 #define FLG_DELREG_32BITKEY FLG_ADDREG_32BITKEY
342 #define FLG_DELREG_OPERATION_MASK (0x000000FE)
343 #define FLG_DELREG_MULTI_SZ_DELSTRING (FLG_DELREG_TYPE_MULTI_SZ | FLG_ADDREG_DELREG_BIT | 0x00000002)
345 /* Class installer function codes */
346 #define DIF_SELECTDEVICE 0x01
347 #define DIF_INSTALLDEVICE 0x02
348 #define DIF_ASSIGNRESOURCES 0x03
349 #define DIF_PROPERTIES 0x04
350 #define DIF_REMOVE 0x05
351 #define DIF_FIRSTTIMESETUP 0x06
352 #define DIF_FOUNDDEVICE 0x07
353 #define DIF_SELECTCLASSDRIVERS 0x08
354 #define DIF_VALIDATECLASSDRIVERS 0x09
355 #define DIF_INSTALLCLASSDRIVERS 0x0a
356 #define DIF_CALCDISKSPACE 0x0b
357 #define DIF_DESTROYPRIVATEDATA 0x0c
358 #define DIF_VALIDATEDRIVER 0x0d
359 #define DIF_MOVEDEVICE 0x0e
360 #define DIF_DETECT 0x0f
361 #define DIF_INSTALLWIZARD 0x10
362 #define DIF_DESTROYWIZARDDATA 0x11
363 #define DIF_PROPERTYCHANGE 0x12
364 #define DIF_ENABLECLASS 0x13
365 #define DIF_DETECTVERIFY 0x14
366 #define DIF_INSTALLDEVICEFILES 0x15
367 #define DIF_UNREMOVE 0x16
368 #define DIF_SELECTBESTCOMPATDRV 0x17
369 #define DIF_ALLOW_INSTALL 0x18
370 #define DIF_REGISTERDEVICE 0x19
371 #define DIF_NEWDEVICEWIZARD_PRESELECT 0x1a
372 #define DIF_NEWDEVICEWIZARD_SELECT 0x1b
373 #define DIF_NEWDEVICEWIZARD_PREANALYZE 0x1c
374 #define DIF_NEWDEVICEWIZARD_POSTANALYZE 0x1d
375 #define DIF_NEWDEVICEWIZARD_FINISHINSTALL 0x1e
376 #define DIF_UNUSED1 0x1f
377 #define DIF_INSTALLINTERFACES 0x20
378 #define DIF_DETECTCANCEL 0x21
379 #define DIF_REGISTER_COINSTALLERS 0x22
380 #define DIF_ADDPROPERTYPAGE_ADVANCED 0x23
381 #define DIF_ADDPROPERTYPAGE_BASIC 0x24
382 #define DIF_RESERVED1 0x25
383 #define DIF_TROUBLESHOOTER 0x26
384 #define DIF_POWERMESSAGEWAKE 0x27
385 #define DIF_ADDREMOTEPROPERTYPAGE_ADVANCED 0x28
386 #define DIF_UPDATEDRIVER_UI 0x29
387 #define DIF_RESERVED2 0x30
390 #define DIRID_ABSOLUTE (-1)
391 #define DIRID_ABSOLUTE_16BIT 0xffff
393 #define DIRID_SRCPATH 1
394 #define DIRID_WINDOWS 10
395 #define DIRID_SYSTEM 11
396 #define DIRID_DRIVERS 12
397 #define DIRID_IOSUBSYS DIRID_DRIVERS
399 #define DIRID_HELP 18
400 #define DIRID_FONTS 20
401 #define DIRID_VIEWERS 21
402 #define DIRID_COLOR 23
403 #define DIRID_APPS 24
404 #define DIRID_SHARED 25
405 #define DIRID_BOOT 30
406 #define DIRID_SYSTEM16 50
407 #define DIRID_SPOOL 51
408 #define DIRID_SPOOLDRIVERS 52
409 #define DIRID_USERPROFILE 53
410 #define DIRID_LOADER 54
411 #define DIRID_PRINTPROCESSOR 55
412 #define DIRID_DEFAULT DIRID_SYSTEM
414 #define DIRID_COMMON_STARTMENU 16406
415 #define DIRID_COMMON_PROGRAMS 16407
416 #define DIRID_COMMON_STARTUP 16408
417 #define DIRID_COMMON_DESKTOPDIRECTORY 16409
418 #define DIRID_COMMON_FAVORITES 16415
419 #define DIRID_COMMON_APPDATA 16419
420 #define DIRID_PROGRAM_FILES 16422
421 #define DIRID_SYSTEM_X86 16425
422 #define DIRID_PROGRAM_FILES_X86 16426
423 #define DIRID_PROGRAM_FILES_COMMON 16427
424 #define DIRID_PROGRAM_FILES_COMMONX86 16428
425 #define DIRID_COMMON_TEMPLATES 16429
426 #define DIRID_COMMON_DOCUMENTS 16430
428 #define DIRID_USER 0x8000
433 #define ERROR_EXPECTED_SECTION_NAME (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0)
434 #define ERROR_BAD_SECTION_NAME_LINE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|1)
435 #define ERROR_SECTION_NAME_TOO_LONG (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|2)
436 #define ERROR_GENERAL_SYNTAX (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|3)
437 #define ERROR_WRONG_INF_STYLE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x100)
438 #define ERROR_SECTION_NOT_FOUND (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x101)
439 #define ERROR_LINE_NOT_FOUND (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x102)
440 #define ERROR_NO_BACKUP (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x103)
441 #define ERROR_NO_ASSOCIATED_CLASS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x200)
442 #define ERROR_CLASS_MISMATCH (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x201)
443 #define ERROR_DUPLICATE_FOUND (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x202)
444 #define ERROR_NO_DRIVER_SELECTED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x203)
445 #define ERROR_KEY_DOES_NOT_EXIST (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x204)
446 #define ERROR_INVALID_DEVINST_NAME (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x205)
447 #define ERROR_INVALID_CLASS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x206)
448 #define ERROR_DEVINST_ALREADY_EXISTS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x207)
449 #define ERROR_DEVINFO_NOT_REGISTERED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x208)
450 #define ERROR_INVALID_REG_PROPERTY (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x209)
451 #define ERROR_NO_INF (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20A)
452 #define ERROR_NO_SUCH_DEVINST (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20B)
453 #define ERROR_CANT_LOAD_CLASS_ICON (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20C)
454 #define ERROR_INVALID_CLASS_INSTALLER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20D)
455 #define ERROR_DI_DO_DEFAULT (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20E)
456 #define ERROR_DI_NOFILECOPY (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20F)
457 #define ERROR_INVALID_HWPROFILE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x210)
458 #define ERROR_NO_DEVICE_SELECTED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x211)
459 #define ERROR_DEVINFO_LIST_LOCKED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x212)
460 #define ERROR_DEVINFO_DATA_LOCKED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x213)
461 #define ERROR_DI_BAD_PATH (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x214)
462 #define ERROR_NO_CLASSINSTALL_PARAMS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x215)
463 #define ERROR_FILEQUEUE_LOCKED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x216)
464 #define ERROR_BAD_SERVICE_INSTALLSECT (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x217)
465 #define ERROR_NO_CLASS_DRIVER_LIST (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x218)
466 #define ERROR_NO_ASSOCIATED_SERVICE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x219)
467 #define ERROR_NO_DEFAULT_DEVICE_INTERFACE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21A)
468 #define ERROR_DEVICE_INTERFACE_ACTIVE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21B)
469 #define ERROR_DEVICE_INTERFACE_REMOVED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21C)
470 #define ERROR_BAD_INTERFACE_INSTALLSECT (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21D)
471 #define ERROR_NO_SUCH_INTERFACE_CLASS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21E)
472 #define ERROR_INVALID_REFERENCE_STRING (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21F)
473 #define ERROR_INVALID_MACHINENAME (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x220)
474 #define ERROR_REMOTE_COMM_FAILURE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x221)
475 #define ERROR_MACHINE_UNAVAILABLE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x222)
476 #define ERROR_NO_CONFIGMGR_SERVICES (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x223)
477 #define ERROR_INVALID_PROPPAGE_PROVIDER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x224)
478 #define ERROR_NO_SUCH_DEVICE_INTERFACE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x225)
479 #define ERROR_DI_POSTPROCESSING_REQUIRED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x226)
480 #define ERROR_INVALID_COINSTALLER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x227)
481 #define ERROR_NO_COMPAT_DRIVERS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x228)
482 #define ERROR_NO_DEVICE_ICON (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x229)
483 #define ERROR_INVALID_INF_LOGCONFIG (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22A)
484 #define ERROR_DI_DONT_INSTALL (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22B)
485 #define ERROR_INVALID_FILTER_DRIVER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22C)
486 #define ERROR_NON_WINDOWS_NT_DRIVER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22D)
487 #define ERROR_NON_WINDOWS_DRIVER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22E)
488 #define ERROR_NO_CATALOG_FOR_OEM_INF (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22F)
489 #define ERROR_DEVINSTALL_QUEUE_NONNATIVE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x230)
490 #define ERROR_NOT_DISABLEABLE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x231)
491 #define ERROR_CANT_REMOVE_DEVINST (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x232)
492 #define ERROR_INVALID_TARGET (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x233)
493 #define ERROR_DRIVER_NONNATIVE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x234)
494 #define ERROR_IN_WOW64 (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x235)
495 #define ERROR_SET_SYSTEM_RESTORE_POINT (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x236)
496 #define ERROR_INCORRECTLY_COPIED_INF (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x237)
497 #define ERROR_SCE_DISABLED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x238)
498 #define ERROR_NO_DEFAULT_INTERFACE_DEVICE ERROR_NO_DEFAULT_DEVICE_INTERFACE
499 #define ERROR_INTERFACE_DEVICE_ACTIVE ERROR_DEVICE_INTERFACE_ACTIVE
500 #define ERROR_INTERFACE_DEVICE_REMOVED ERROR_DEVICE_INTERFACE_REMOVED
501 #define ERROR_NO_SUCH_INTERFACE_DEVICE ERROR_NO_SUCH_DEVICE_INTERFACE
502 #define ERROR_NOT_INSTALLED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x1000)
504 HINF WINAPI
SetupOpenInfFileA( PCSTR name
, PCSTR pszclass
, DWORD style
, UINT
*error
);
505 HINF WINAPI
SetupOpenInfFileW( PCWSTR name
, PCWSTR pszclass
, DWORD style
, UINT
*error
);
506 #define SetupOpenInfFile WINELIB_NAME_AW(SetupOpenInfFile)
507 BOOL WINAPI
SetupOpenAppendInfFileA( PCSTR
, HINF
, UINT
* );
508 BOOL WINAPI
SetupOpenAppendInfFileW( PCWSTR
, HINF
, UINT
* );
509 #define SetupOpenAppendInfFile WINELIB_NAME_AW(SetupOpenAppendInfFile)
510 void WINAPI
SetupCloseInfFile( HINF hinf
);
511 BOOL WINAPI
SetupGetLineByIndexA( HINF
, PCSTR
, DWORD
, INFCONTEXT
* );
512 BOOL WINAPI
SetupGetLineByIndexW( HINF
, PCWSTR
, DWORD
, INFCONTEXT
* );
513 #define SetupGetLineByIndex WINELIB_NAME_AW(SetupGetLineByIndex)
514 LONG WINAPI
SetupGetLineCountA( HINF hinf
, PCSTR section
);
515 LONG WINAPI
SetupGetLineCountW( HINF hinf
, PCWSTR section
);
516 #define SetupGetLineCount WINELIB_NAME_AW(SetupGetLineCount)
517 BOOL WINAPI
SetupFindFirstLineA( HINF hinf
, PCSTR section
, PCSTR key
, INFCONTEXT
*context
);
518 BOOL WINAPI
SetupFindFirstLineW( HINF hinf
, PCWSTR section
, PCWSTR key
, INFCONTEXT
*context
);
519 #define SetupFindFirstLine WINELIB_NAME_AW(SetupFindFirstLine)
520 BOOL WINAPI
SetupFindNextLine( const INFCONTEXT
*, INFCONTEXT
* );
521 BOOL WINAPI
SetupFindNextMatchLineA( const INFCONTEXT
*, PCSTR
, INFCONTEXT
* );
522 BOOL WINAPI
SetupFindNextMatchLineW( const INFCONTEXT
*, PCWSTR
, INFCONTEXT
* );
523 #define SetupFindNextMatchLine WINELIB_NAME_AW(SetupFindNextMatchLine)
524 BOOL WINAPI
SetupGetLineTextA( const INFCONTEXT
*, HINF
, PCSTR
, PCSTR
, PSTR
, DWORD
, DWORD
* );
525 BOOL WINAPI
SetupGetLineTextW( const INFCONTEXT
*, HINF
, PCWSTR
, PCWSTR
, PWSTR
, DWORD
, DWORD
* );
526 #define SetupGetLineText WINELIB_NAME_AW(SetupGetLineText)
527 DWORD WINAPI
SetupGetFieldCount( const INFCONTEXT
* );
528 BOOL WINAPI
SetupGetIntField( const INFCONTEXT
*, DWORD
, INT
* );
529 BOOL WINAPI
SetupGetStringFieldA( const INFCONTEXT
*, DWORD
, PSTR
, DWORD
, DWORD
* );
530 BOOL WINAPI
SetupGetStringFieldW( const INFCONTEXT
*, DWORD
, PWSTR
, DWORD
, DWORD
* );
531 #define SetupGetStringField WINELIB_NAME_AW(SetupGetStringField)
532 BOOL WINAPI
SetupGetBinaryField( const INFCONTEXT
*, DWORD
, BYTE
*, DWORD
, DWORD
* );
533 BOOL WINAPI
SetupGetMultiSzFieldA( const INFCONTEXT
*, DWORD
, PSTR
, DWORD
, DWORD
* );
534 BOOL WINAPI
SetupGetMultiSzFieldW( const INFCONTEXT
*, DWORD
, PWSTR
, DWORD
, DWORD
* );
535 #define SetupGetMultiSzField WINELIB_NAME_AW(SetupGetMultiSzField)
536 BOOL WINAPI
SetupSetDirectoryIdA( HINF
, DWORD
, PCSTR
);
537 BOOL WINAPI
SetupSetDirectoryIdW( HINF
, DWORD
, PCWSTR
);
538 #define SetupSetDirectoryId WINELIB_NAME_AW(SetupSetDirectoryId)
539 HSPFILEQ WINAPI
SetupOpenFileQueue(void);
540 BOOL WINAPI
SetupCloseFileQueue( HSPFILEQ
);
541 BOOL WINAPI
SetupSetFileQueueAlternatePlatformA( HSPFILEQ
, PSP_ALTPLATFORM_INFO
, PCSTR
);
542 BOOL WINAPI
SetupSetFileQueueAlternatePlatformW( HSPFILEQ
, PSP_ALTPLATFORM_INFO
, PCWSTR
);
543 #define SetupSetFileQueueAlternatePlatform WINELIB_NAME_AW(SetupSetFileQueueAlternatePlatform)
544 BOOL WINAPI
SetupQueueCopyA(HSPFILEQ
,PCSTR
,PCSTR
,PCSTR
,PCSTR
,PCSTR
,PCSTR
,PCSTR
,DWORD
);
545 BOOL WINAPI
SetupQueueCopyW(HSPFILEQ
,PCWSTR
,PCWSTR
,PCWSTR
,PCWSTR
,PCWSTR
,PCWSTR
,PCWSTR
,DWORD
);
546 #define SetupQueueCopy WINELIB_NAME_AW(SetupQueueCopy)
547 BOOL WINAPI
SetupQueueCopyIndirectA( PSP_FILE_COPY_PARAMS_A
);
548 BOOL WINAPI
SetupQueueCopyIndirectW( PSP_FILE_COPY_PARAMS_W
);
549 #define SetupQueueCopyIndirect WINELIB_NAME_AW(SetupQueueCopyIndirect)
550 BOOL WINAPI
SetupQueueDefaultCopyA( HSPFILEQ
, HINF
, PCSTR
, PCSTR
, PCSTR
, DWORD
);
551 BOOL WINAPI
SetupQueueDefaultCopyW( HSPFILEQ
, HINF
, PCWSTR
, PCWSTR
, PCWSTR
, DWORD
);
552 #define SetupQueueDefaultCopy WINELIB_NAME_AW(SetupQueueDefaultCopy)
553 BOOL WINAPI
SetupQueueDeleteA( HSPFILEQ
, PCSTR
, PCSTR
);
554 BOOL WINAPI
SetupQueueDeleteW( HSPFILEQ
, PCWSTR
, PCWSTR
);
555 #define SetupQueueDelete WINELIB_NAME_AW(SetupQueueDelete)
556 BOOL WINAPI
SetupQueueRenameA( HSPFILEQ
, PCSTR
, PCSTR
, PCSTR
, PCSTR
);
557 BOOL WINAPI
SetupQueueRenameW( HSPFILEQ
, PCWSTR
, PCWSTR
, PCWSTR
, PCWSTR
);
558 #define SetupQueueRename WINELIB_NAME_AW(SetupQueueRename)
559 BOOL WINAPI
SetupCommitFileQueueA( HWND
, HSPFILEQ
, PSP_FILE_CALLBACK_A
, PVOID
);
560 BOOL WINAPI
SetupCommitFileQueueW( HWND
, HSPFILEQ
, PSP_FILE_CALLBACK_W
, PVOID
);
561 #define SetupCommitFileQueue WINELIB_NAME_AW(SetupCommitFileQueue)
562 BOOL WINAPI
SetupScanFileQueueA( HSPFILEQ
, DWORD
, HWND
, PSP_FILE_CALLBACK_A
, PVOID
, PDWORD
);
563 BOOL WINAPI
SetupScanFileQueueW( HSPFILEQ
, DWORD
, HWND
, PSP_FILE_CALLBACK_W
, PVOID
, PDWORD
);
564 #define SetupScanFileQueue WINELIB_NAME_AW(SetupScanFileQueue)
565 BOOL WINAPI
SetupGetFileQueueCount( HSPFILEQ
, UINT
, PUINT
);
566 BOOL WINAPI
SetupGetFileQueueFlags( HSPFILEQ
, PDWORD
);
567 BOOL WINAPI
SetupSetFileQueueFlags( HSPFILEQ
, DWORD
, DWORD
);
568 BOOL WINAPI
SetupQueueCopySectionA( HSPFILEQ
, PCSTR
, HINF
, HINF
, PCSTR
, DWORD
);
569 BOOL WINAPI
SetupQueueCopySectionW( HSPFILEQ
, PCWSTR
, HINF
, HINF
, PCWSTR
, DWORD
);
570 #define SetupQueueCopySection WINELIB_NAME_AW(SetupQueueCopySection)
571 BOOL WINAPI
SetupQueueDeleteSectionA( HSPFILEQ
, HINF
, HINF
, PCSTR
);
572 BOOL WINAPI
SetupQueueDeleteSectionW( HSPFILEQ
, HINF
, HINF
, PCWSTR
);
573 #define SetupQueueDeleteSection WINELIB_NAME_AW(SetupQueueDeleteSection)
574 BOOL WINAPI
SetupQueueRenameSectionA( HSPFILEQ
, HINF
, HINF
, PCSTR
);
575 BOOL WINAPI
SetupQueueRenameSectionW( HSPFILEQ
, HINF
, HINF
, PCWSTR
);
576 #define SetupQueueRenameSection WINELIB_NAME_AW(SetupQueueRenameSection)
577 PVOID WINAPI
SetupInitDefaultQueueCallback( HWND
);
578 PVOID WINAPI
SetupInitDefaultQueueCallbackEx( HWND
, HWND
, UINT
, DWORD
, PVOID
);
579 void WINAPI
SetupTermDefaultQueueCallback( PVOID
);
580 UINT WINAPI
SetupDefaultQueueCallbackA( PVOID
, UINT
, UINT_PTR
, UINT_PTR
);
581 UINT WINAPI
SetupDefaultQueueCallbackW( PVOID
, UINT
, UINT_PTR
, UINT_PTR
);
582 #define SetupDefaultQueueCallback WINELIB_NAME_AW(SetupDefaultQueueCallback)
583 HDEVINFO WINAPI
SetupDiGetClassDevsA(CONST GUID
*,LPCSTR
,HWND
,DWORD
);
584 HDEVINFO WINAPI
SetupDiGetClassDevsW(CONST GUID
*,LPCWSTR
,HWND
,DWORD
);
585 #define SetupDiGetClassDevs WINELIB_NAME_AW(SetupDiGetClassDevs)
586 BOOL WINAPI
SetupInstallFilesFromInfSectionA( HINF
, HINF
, HSPFILEQ
, PCSTR
, PCSTR
, UINT
);
587 BOOL WINAPI
SetupInstallFilesFromInfSectionW( HINF
, HINF
, HSPFILEQ
, PCWSTR
, PCWSTR
, UINT
);
588 #define SetupInstallFilesFromInfSection WINELIB_NAME_AW(SetupInstallFilesFromInfSection)
589 BOOL WINAPI
SetupInstallFromInfSectionA(HWND
,HINF
,PCSTR
,UINT
,HKEY
,PCSTR
,UINT
,
590 PSP_FILE_CALLBACK_A
,PVOID
,HDEVINFO
,PSP_DEVINFO_DATA
);
591 BOOL WINAPI
SetupInstallFromInfSectionW(HWND
,HINF
,PCWSTR
,UINT
,HKEY
,PCWSTR
,UINT
,
592 PSP_FILE_CALLBACK_W
,PVOID
,HDEVINFO
,PSP_DEVINFO_DATA
);
593 #define SetupInstallFromInfSection WINELIB_NAME_AW(SetupInstallFromInfSection)
594 BOOL WINAPI
SetupIterateCabinetA(PCSTR
, DWORD
, PSP_FILE_CALLBACK_A
, PVOID
);
595 BOOL WINAPI
SetupIterateCabinetW(PCWSTR
, DWORD
, PSP_FILE_CALLBACK_W
, PVOID
);
596 #define SetupIterateCabinet WINELIB_NAME_AW(SetupIterateCabinet)
598 #undef DECL_WINELIB_SETUPAPI_TYPE_AW
600 #endif /* _INC_SETUPAPI */