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 /* Define type for handle to a loaded inf file */
27 /* Define type for handle to a device information set */
28 typedef PVOID HDEVINFO;
30 /* Define type for setup file queue */
31 typedef PVOID HSPFILEQ;
34 typedef struct _INFCONTEXT
40 } INFCONTEXT, *PINFCONTEXT;
42 typedef struct _SP_ALTPLATFORM_INFO_V2
48 WORD ProcessorArchitecture;
54 DWORD FirstValidatedMajorVersion;
55 DWORD FirstValidatedMinorVersion;
56 } SP_ALTPLATFORM_INFO_V2, *PSP_ALTPLATFORM_INFO_V2;
58 #define SP_ALTPLATFORM_FLAGS_VERSION_RANGE 0x0001
60 typedef struct _SP_ALTPLATFORM_INFO_V1
66 WORD ProcessorArchitecture;
68 } SP_ALTPLATFORM_INFO_V1, *PSP_ALTPLATFORM_INFO_V1;
70 typedef SP_ALTPLATFORM_INFO_V2 SP_ALTPLATFORM_INFO;
71 typedef PSP_ALTPLATFORM_INFO_V2 PSP_ALTPLATFORM_INFO;
73 typedef struct _SP_FILE_COPY_PARAMS_A
80 PCSTR SourceDescription;
82 PCSTR TargetDirectory;
86 PCSTR SecurityDescriptor;
87 } SP_FILE_COPY_PARAMS_A, *PSP_FILE_COPY_PARAMS_A;
89 typedef struct _SP_FILE_COPY_PARAMS_W
93 PCWSTR SourceRootPath;
95 PCWSTR SourceFilename;
96 PCWSTR SourceDescription;
98 PCWSTR TargetDirectory;
99 PCWSTR TargetFilename;
102 PCWSTR SecurityDescriptor;
103 } SP_FILE_COPY_PARAMS_W, *PSP_FILE_COPY_PARAMS_W;
105 DECL_WINELIB_TYPE_AW(SP_FILE_COPY_PARAMS_)
106 DECL_WINELIB_TYPE_AW(PSP_FILE_COPY_PARAMS_)
108 typedef UINT (CALLBACK *PSP_FILE_CALLBACK_A)( PVOID Context, UINT Notification,
109 UINT Param1, UINT Param2 );
110 typedef UINT (CALLBACK *PSP_FILE_CALLBACK_W)( PVOID Context, UINT Notification,
111 UINT Param1, UINT Param2 );
112 #define PSP_FILE_CALLBACK WINELIB_NAME_AW(PSP_FILE_CALLBACK_)
115 #define MAX_INF_STRING_LENGTH 4096
116 #define MAX_TITLE_LEN 60
117 #define MAX_INSTRUCTION_LEN 256
118 #define MAX_LABEL_LEN 30
119 #define MAX_SERVICE_NAME_LEN 256
120 #define MAX_SUBTITLE_LEN 256
121 #define SP_MAX_MACHINENAME_LENGTH (MAX_PATH + 3)
123 /* Device Information structure (references a device instance that is a member
124 of a device information set) */
125 typedef struct _SP_DEVINFO_DATA
129 DWORD DevInst; /* DEVINST handle */
131 } SP_DEVINFO_DATA, *PSP_DEVINFO_DATA;
133 #define INF_STYLE_NONE 0x00
134 #define INF_STYLE_OLDNT 0x01
135 #define INF_STYLE_WIN4 0x02
136 #define INF_STYLE_CACHE_ENABLE 0x10
137 #define INF_STYLE_CACHE_DISABLE 0x20
139 #define FILEOP_COPY 0
140 #define FILEOP_RENAME 1
141 #define FILEOP_DELETE 2
142 #define FILEOP_BACKUP 3
144 #define FILEOP_ABORT 0
145 #define FILEOP_DOIT 1
146 #define FILEOP_SKIP 2
147 #define FILEOP_RETRY FILEOP_DOIT
148 #define FILEOP_NEWPATH 4
150 typedef struct _FILEPATHS_A
156 } FILEPATHS_A, *PFILEPATHS_A;
158 typedef struct _FILEPATHS_W
164 } FILEPATHS_W, *PFILEPATHS_W;
166 DECL_WINELIB_TYPE_AW(FILEPATHS_)
167 DECL_WINELIB_TYPE_AW(PFILEPATHS_)
169 #define SPFILENOTIFY_STARTQUEUE 0x0001
170 #define SPFILENOTIFY_ENDQUEUE 0x0002
171 #define SPFILENOTIFY_STARTSUBQUEUE 0x0003
172 #define SPFILENOTIFY_ENDSUBQUEUE 0x0004
173 #define SPFILENOTIFY_STARTDELETE 0x0005
174 #define SPFILENOTIFY_ENDDELETE 0x0006
175 #define SPFILENOTIFY_DELETEERROR 0x0007
176 #define SPFILENOTIFY_STARTRENAME 0x0008
177 #define SPFILENOTIFY_ENDRENAME 0x0009
178 #define SPFILENOTIFY_RENAMEERROR 0x000a
179 #define SPFILENOTIFY_STARTCOPY 0x000b
180 #define SPFILENOTIFY_ENDCOPY 0x000c
181 #define SPFILENOTIFY_COPYERROR 0x000d
182 #define SPFILENOTIFY_NEEDMEDIA 0x000e
183 #define SPFILENOTIFY_QUEUESCAN 0x000f
184 #define SPFILENOTIFY_CABINETINFO 0x0010
185 #define SPFILENOTIFY_FILEINCABINET 0x0011
186 #define SPFILENOTIFY_NEEDNEWCABINET 0x0012
187 #define SPFILENOTIFY_FILEEXTRACTED 0x0013
188 #define SPFILENOTIFY_FILEOPDELAYED 0x0014
189 #define SPFILENOTIFY_STARTBACKUP 0x0015
190 #define SPFILENOTIFY_BACKUPERROR 0x0016
191 #define SPFILENOTIFY_ENDBACKUP 0x0017
192 #define SPFILENOTIFY_QUEUESCAN_EX 0x0018
193 #define SPFILENOTIFY_STARTREGISTRATION 0x0019
194 #define SPFILENOTIFY_ENDREGISTRATION 0x0020
195 #define SPFILENOTIFY_QUEUESCAN_SIGNERINFO 0x0040
197 #define SPFILENOTIFY_LANGMISMATCH 0x00010000
198 #define SPFILENOTIFY_TARGETEXISTS 0x00020000
199 #define SPFILENOTIFY_TARGETNEWER 0x00040000
201 #define SPINST_LOGCONFIG 0x00000001
202 #define SPINST_INIFILES 0x00000002
203 #define SPINST_REGISTRY 0x00000004
204 #define SPINST_INI2REG 0x00000008
205 #define SPINST_FILES 0x00000010
206 #define SPINST_BITREG 0x00000020
207 #define SPINST_REGSVR 0x00000040
208 #define SPINST_UNREGSVR 0x00000080
209 #define SPINST_PROFILEITEMS 0x00000100
210 #define SPINST_COPYINF 0x00000200
211 #define SPINST_ALL 0x000003ff
212 #define SPINST_SINGLESECTION 0x00010000
213 #define SPINST_LOGCONFIG_IS_FORCED 0x00020000
214 #define SPINST_LOGCONFIGS_ARE_OVERRIDES 0x00040000
215 #define SPINST_REGISTERCALLBACKAWARE 0x00080000
217 #define SP_COPY_DELETESOURCE 0x00000001
218 #define SP_COPY_REPLACEONLY 0x00000002
219 #define SP_COPY_NEWER 0x00000004
220 #define SP_COPY_NEWER_OR_SAME SP_COPY_NEWER
221 #define SP_COPY_NOOVERWRITE 0x00000008
222 #define SP_COPY_NODECOMP 0x00000010
223 #define SP_COPY_LANGUAGEAWARE 0x00000020
224 #define SP_COPY_SOURCE_ABSOLUTE 0x00000040
225 #define SP_COPY_SOURCEPATH_ABSOLUTE 0x00000080
226 #define SP_COPY_IN_USE_NEEDS_REBOOT 0x00000100
227 #define SP_COPY_FORCE_IN_USE 0x00000200
228 #define SP_COPY_NOSKIP 0x00000400
229 #define SP_FLAG_CABINETCONTINUATION 0x00000800
230 #define SP_COPY_FORCE_NOOVERWRITE 0x00001000
231 #define SP_COPY_FORCE_NEWER 0x00002000
232 #define SP_COPY_WARNIFSKIP 0x00004000
233 #define SP_COPY_NOBROWSE 0x00008000
234 #define SP_COPY_NEWER_ONLY 0x00010000
235 #define SP_COPY_SOURCE_SIS_MASTER 0x00020000
236 #define SP_COPY_OEMINF_CATALOG_ONLY 0x00040000
237 #define SP_COPY_REPLACE_BOOT_FILE 0x00080000
238 #define SP_COPY_NOPRUNE 0x00100000
239 #define SP_COPY_OEM_F6_INF 0x00200000
241 #define FLG_ADDREG_DELREG_BIT 0x00008000
242 #define FLG_ADDREG_BINVALUETYPE 0x00000001
243 #define FLG_ADDREG_NOCLOBBER 0x00000002
244 #define FLG_ADDREG_DELVAL 0x00000004
245 #define FLG_ADDREG_APPEND 0x00000008
246 #define FLG_ADDREG_KEYONLY 0x00000010
247 #define FLG_ADDREG_OVERWRITEONLY 0x00000020
248 #define FLG_ADDREG_64BITKEY 0x00001000
249 #define FLG_ADDREG_KEYONLY_COMMON 0x00002000
250 #define FLG_ADDREG_32BITKEY 0x00004000
251 #define FLG_ADDREG_TYPE_SZ 0x00000000
252 #define FLG_ADDREG_TYPE_MULTI_SZ 0x00010000
253 #define FLG_ADDREG_TYPE_EXPAND_SZ 0x00020000
254 #define FLG_ADDREG_TYPE_BINARY (0x00000000 | FLG_ADDREG_BINVALUETYPE)
255 #define FLG_ADDREG_TYPE_DWORD (0x00010000 | FLG_ADDREG_BINVALUETYPE)
256 #define FLG_ADDREG_TYPE_NONE (0x00020000 | FLG_ADDREG_BINVALUETYPE)
257 #define FLG_ADDREG_TYPE_MASK (0xFFFF0000 | FLG_ADDREG_BINVALUETYPE)
259 #define FLG_DELREG_VALUE (0x00000000)
260 #define FLG_DELREG_TYPE_MASK FLG_ADDREG_TYPE_MASK
261 #define FLG_DELREG_TYPE_SZ FLG_ADDREG_TYPE_SZ
262 #define FLG_DELREG_TYPE_MULTI_SZ FLG_ADDREG_TYPE_MULTI_SZ
263 #define FLG_DELREG_TYPE_EXPAND_SZ FLG_ADDREG_TYPE_EXPAND_SZ
264 #define FLG_DELREG_TYPE_BINARY FLG_ADDREG_TYPE_BINARY
265 #define FLG_DELREG_TYPE_DWORD FLG_ADDREG_TYPE_DWORD
266 #define FLG_DELREG_TYPE_NONE FLG_ADDREG_TYPE_NONE
267 #define FLG_DELREG_64BITKEY FLG_ADDREG_64BITKEY
268 #define FLG_DELREG_KEYONLY_COMMON FLG_ADDREG_KEYONLY_COMMON
269 #define FLG_DELREG_32BITKEY FLG_ADDREG_32BITKEY
270 #define FLG_DELREG_OPERATION_MASK (0x000000FE)
271 #define FLG_DELREG_MULTI_SZ_DELSTRING (FLG_DELREG_TYPE_MULTI_SZ | FLG_ADDREG_DELREG_BIT | 0x00000002)
273 /* Class installer function codes */
274 #define DIF_SELECTDEVICE 0x01
275 #define DIF_INSTALLDEVICE 0x02
276 #define DIF_ASSIGNRESOURCES 0x03
277 #define DIF_PROPERTIES 0x04
278 #define DIF_REMOVE 0x05
279 #define DIF_FIRSTTIMESETUP 0x06
280 #define DIF_FOUNDDEVICE 0x07
281 #define DIF_SELECTCLASSDRIVERS 0x08
282 #define DIF_VALIDATECLASSDRIVERS 0x09
283 #define DIF_INSTALLCLASSDRIVERS 0x0a
284 #define DIF_CALCDISKSPACE 0x0b
285 #define DIF_DESTROYPRIVATEDATA 0x0c
286 #define DIF_VALIDATEDRIVER 0x0d
287 #define DIF_MOVEDEVICE 0x0e
288 #define DIF_DETECT 0x0f
289 #define DIF_INSTALLWIZARD 0x10
290 #define DIF_DESTROYWIZARDDATA 0x11
291 #define DIF_PROPERTYCHANGE 0x12
292 #define DIF_ENABLECLASS 0x13
293 #define DIF_DETECTVERIFY 0x14
294 #define DIF_INSTALLDEVICEFILES 0x15
295 #define DIF_UNREMOVE 0x16
296 #define DIF_SELECTBESTCOMPATDRV 0x17
297 #define DIF_ALLOW_INSTALL 0x18
298 #define DIF_REGISTERDEVICE 0x19
299 #define DIF_NEWDEVICEWIZARD_PRESELECT 0x1a
300 #define DIF_NEWDEVICEWIZARD_SELECT 0x1b
301 #define DIF_NEWDEVICEWIZARD_PREANALYZE 0x1c
302 #define DIF_NEWDEVICEWIZARD_POSTANALYZE 0x1d
303 #define DIF_NEWDEVICEWIZARD_FINISHINSTALL 0x1e
304 #define DIF_UNUSED1 0x1f
305 #define DIF_INSTALLINTERFACES 0x20
306 #define DIF_DETECTCANCEL 0x21
307 #define DIF_REGISTER_COINSTALLERS 0x22
308 #define DIF_ADDPROPERTYPAGE_ADVANCED 0x23
309 #define DIF_ADDPROPERTYPAGE_BASIC 0x24
310 #define DIF_RESERVED1 0x25
311 #define DIF_TROUBLESHOOTER 0x26
312 #define DIF_POWERMESSAGEWAKE 0x27
313 #define DIF_ADDREMOTEPROPERTYPAGE_ADVANCED 0x28
314 #define DIF_UPDATEDRIVER_UI 0x29
315 #define DIF_RESERVED2 0x30
318 #define DIRID_ABSOLUTE (-1)
319 #define DIRID_ABSOLUTE_16BIT 0xffff
321 #define DIRID_SRCPATH 1
322 #define DIRID_WINDOWS 10
323 #define DIRID_SYSTEM 11
324 #define DIRID_DRIVERS 12
325 #define DIRID_IOSUBSYS DIRID_DRIVERS
327 #define DIRID_HELP 18
328 #define DIRID_FONTS 20
329 #define DIRID_VIEWERS 21
330 #define DIRID_COLOR 23
331 #define DIRID_APPS 24
332 #define DIRID_SHARED 25
333 #define DIRID_BOOT 30
334 #define DIRID_SYSTEM16 50
335 #define DIRID_SPOOL 51
336 #define DIRID_SPOOLDRIVERS 52
337 #define DIRID_USERPROFILE 53
338 #define DIRID_LOADER 54
339 #define DIRID_PRINTPROCESSOR 55
340 #define DIRID_DEFAULT DIRID_SYSTEM
342 #define DIRID_COMMON_STARTMENU 16406
343 #define DIRID_COMMON_PROGRAMS 16407
344 #define DIRID_COMMON_STARTUP 16408
345 #define DIRID_COMMON_DESKTOPDIRECTORY 16409
346 #define DIRID_COMMON_FAVORITES 16415
347 #define DIRID_COMMON_APPDATA 16419
348 #define DIRID_PROGRAM_FILES 16422
349 #define DIRID_SYSTEM_X86 16425
350 #define DIRID_PROGRAM_FILES_X86 16426
351 #define DIRID_PROGRAM_FILES_COMMON 16427
352 #define DIRID_PROGRAM_FILES_COMMONX86 16428
353 #define DIRID_COMMON_TEMPLATES 16429
354 #define DIRID_COMMON_DOCUMENTS 16430
356 #define DIRID_USER 0x8000
361 #define ERROR_EXPECTED_SECTION_NAME (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0)
362 #define ERROR_BAD_SECTION_NAME_LINE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|1)
363 #define ERROR_SECTION_NAME_TOO_LONG (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|2)
364 #define ERROR_GENERAL_SYNTAX (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|3)
365 #define ERROR_WRONG_INF_STYLE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x100)
366 #define ERROR_SECTION_NOT_FOUND (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x101)
367 #define ERROR_LINE_NOT_FOUND (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x102)
368 #define ERROR_NO_BACKUP (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x103)
369 #define ERROR_NO_ASSOCIATED_CLASS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x200)
370 #define ERROR_CLASS_MISMATCH (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x201)
371 #define ERROR_DUPLICATE_FOUND (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x202)
372 #define ERROR_NO_DRIVER_SELECTED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x203)
373 #define ERROR_KEY_DOES_NOT_EXIST (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x204)
374 #define ERROR_INVALID_DEVINST_NAME (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x205)
375 #define ERROR_INVALID_CLASS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x206)
376 #define ERROR_DEVINST_ALREADY_EXISTS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x207)
377 #define ERROR_DEVINFO_NOT_REGISTERED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x208)
378 #define ERROR_INVALID_REG_PROPERTY (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x209)
379 #define ERROR_NO_INF (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20A)
380 #define ERROR_NO_SUCH_DEVINST (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20B)
381 #define ERROR_CANT_LOAD_CLASS_ICON (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20C)
382 #define ERROR_INVALID_CLASS_INSTALLER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20D)
383 #define ERROR_DI_DO_DEFAULT (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20E)
384 #define ERROR_DI_NOFILECOPY (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20F)
385 #define ERROR_INVALID_HWPROFILE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x210)
386 #define ERROR_NO_DEVICE_SELECTED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x211)
387 #define ERROR_DEVINFO_LIST_LOCKED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x212)
388 #define ERROR_DEVINFO_DATA_LOCKED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x213)
389 #define ERROR_DI_BAD_PATH (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x214)
390 #define ERROR_NO_CLASSINSTALL_PARAMS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x215)
391 #define ERROR_FILEQUEUE_LOCKED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x216)
392 #define ERROR_BAD_SERVICE_INSTALLSECT (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x217)
393 #define ERROR_NO_CLASS_DRIVER_LIST (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x218)
394 #define ERROR_NO_ASSOCIATED_SERVICE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x219)
395 #define ERROR_NO_DEFAULT_DEVICE_INTERFACE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21A)
396 #define ERROR_DEVICE_INTERFACE_ACTIVE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21B)
397 #define ERROR_DEVICE_INTERFACE_REMOVED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21C)
398 #define ERROR_BAD_INTERFACE_INSTALLSECT (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21D)
399 #define ERROR_NO_SUCH_INTERFACE_CLASS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21E)
400 #define ERROR_INVALID_REFERENCE_STRING (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21F)
401 #define ERROR_INVALID_MACHINENAME (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x220)
402 #define ERROR_REMOTE_COMM_FAILURE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x221)
403 #define ERROR_MACHINE_UNAVAILABLE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x222)
404 #define ERROR_NO_CONFIGMGR_SERVICES (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x223)
405 #define ERROR_INVALID_PROPPAGE_PROVIDER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x224)
406 #define ERROR_NO_SUCH_DEVICE_INTERFACE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x225)
407 #define ERROR_DI_POSTPROCESSING_REQUIRED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x226)
408 #define ERROR_INVALID_COINSTALLER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x227)
409 #define ERROR_NO_COMPAT_DRIVERS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x228)
410 #define ERROR_NO_DEVICE_ICON (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x229)
411 #define ERROR_INVALID_INF_LOGCONFIG (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22A)
412 #define ERROR_DI_DONT_INSTALL (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22B)
413 #define ERROR_INVALID_FILTER_DRIVER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22C)
414 #define ERROR_NON_WINDOWS_NT_DRIVER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22D)
415 #define ERROR_NON_WINDOWS_DRIVER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22E)
416 #define ERROR_NO_CATALOG_FOR_OEM_INF (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22F)
417 #define ERROR_DEVINSTALL_QUEUE_NONNATIVE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x230)
418 #define ERROR_NOT_DISABLEABLE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x231)
419 #define ERROR_CANT_REMOVE_DEVINST (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x232)
420 #define ERROR_INVALID_TARGET (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x233)
421 #define ERROR_DRIVER_NONNATIVE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x234)
422 #define ERROR_IN_WOW64 (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x235)
423 #define ERROR_SET_SYSTEM_RESTORE_POINT (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x236)
424 #define ERROR_INCORRECTLY_COPIED_INF (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x237)
425 #define ERROR_SCE_DISABLED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x238)
426 #define ERROR_NO_DEFAULT_INTERFACE_DEVICE ERROR_NO_DEFAULT_DEVICE_INTERFACE
427 #define ERROR_INTERFACE_DEVICE_ACTIVE ERROR_DEVICE_INTERFACE_ACTIVE
428 #define ERROR_INTERFACE_DEVICE_REMOVED ERROR_DEVICE_INTERFACE_REMOVED
429 #define ERROR_NO_SUCH_INTERFACE_DEVICE ERROR_NO_SUCH_DEVICE_INTERFACE
430 #define ERROR_NOT_INSTALLED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x1000)
432 HINF WINAPI SetupOpenInfFileA( PCSTR name, PCSTR class, DWORD style, UINT *error );
433 HINF WINAPI SetupOpenInfFileW( PCWSTR name, PCWSTR class, DWORD style, UINT *error );
434 #define SetupOpenInfFile WINELIB_NAME_AW(SetupOpenInfFile)
435 BOOL WINAPI SetupOpenAppendInfFileA( PCSTR, HINF, UINT * );
436 BOOL WINAPI SetupOpenAppendInfFileW( PCWSTR, HINF, UINT * );
437 #define SetupOpenAppendInfFile WINELIB_NAME_AW(SetupOpenAppendInfFile)
438 void WINAPI SetupCloseInfFile( HINF hinf );
439 BOOL WINAPI SetupGetLineByIndexA( HINF, PCSTR, DWORD, INFCONTEXT * );
440 BOOL WINAPI SetupGetLineByIndexW( HINF, PCWSTR, DWORD, INFCONTEXT * );
441 #define SetupGetLineByIndex WINELIB_NAME_AW(SetupGetLineByIndex)
442 LONG WINAPI SetupGetLineCountA( HINF hinf, PCSTR section );
443 LONG WINAPI SetupGetLineCountW( HINF hinf, PCWSTR section );
444 #define SetupGetLineCount WINELIB_NAME_AW(SetupGetLineCount)
445 BOOL WINAPI SetupFindFirstLineA( HINF hinf, PCSTR section, PCSTR key, INFCONTEXT *context );
446 BOOL WINAPI SetupFindFirstLineW( HINF hinf, PCWSTR section, PCWSTR key, INFCONTEXT *context );
447 #define SetupFindFirstLine WINELIB_NAME_AW(SetupFindFirstLine)
448 BOOL WINAPI SetupFindNextLine( const INFCONTEXT *, INFCONTEXT * );
449 BOOL WINAPI SetupFindNextMatchLineA( const INFCONTEXT *, PCSTR, INFCONTEXT * );
450 BOOL WINAPI SetupFindNextMatchLineW( const INFCONTEXT *, PCWSTR, INFCONTEXT * );
451 #define SetupFindNextMatchLine WINELIB_NAME_AW(SetupFindNextMatchLine)
452 BOOL WINAPI SetupGetLineTextA( const INFCONTEXT *, HINF, PCSTR, PCSTR, PSTR, DWORD, DWORD * );
453 BOOL WINAPI SetupGetLineTextW( const INFCONTEXT *, HINF, PCWSTR, PCWSTR, PWSTR, DWORD, DWORD * );
454 #define SetupGetLineText WINELIB_NAME_AW(SetupGetLineText)
455 DWORD WINAPI SetupGetFieldCount( const INFCONTEXT * );
456 BOOL WINAPI SetupGetIntField( const INFCONTEXT *, DWORD, INT * );
457 BOOL WINAPI SetupGetStringFieldA( const INFCONTEXT *, DWORD, PSTR, DWORD, DWORD * );
458 BOOL WINAPI SetupGetStringFieldW( const INFCONTEXT *, DWORD, PWSTR, DWORD, DWORD * );
459 #define SetupGetStringField WINELIB_NAME_AW(SetupGetStringField)
460 BOOL WINAPI SetupGetBinaryField( const INFCONTEXT *, DWORD, BYTE *, DWORD, DWORD * );
461 BOOL WINAPI SetupGetMultiSzFieldA( const INFCONTEXT *, DWORD, PSTR, DWORD, DWORD * );
462 BOOL WINAPI SetupGetMultiSzFieldW( const INFCONTEXT *, DWORD, PWSTR, DWORD, DWORD * );
463 #define SetupGetMultiSzField WINELIB_NAME_AW(SetupGetMultiSzField)
464 BOOL WINAPI SetupSetDirectoryIdA( HINF, DWORD, PCSTR );
465 BOOL WINAPI SetupSetDirectoryIdW( HINF, DWORD, PCWSTR );
466 #define SetupSetDirectoryId WINELIB_NAME_AW(SetupSetDirectoryId)
467 HSPFILEQ WINAPI SetupOpenFileQueue(void);
468 BOOL WINAPI SetupCloseFileQueue( HSPFILEQ );
469 BOOL WINAPI SetupSetFileQueueAlternatePlatformA( HSPFILEQ, PSP_ALTPLATFORM_INFO, PCSTR );
470 BOOL WINAPI SetupSetFileQueueAlternatePlatformW( HSPFILEQ, PSP_ALTPLATFORM_INFO, PCWSTR );
471 #define SetupSetFileQueueAlternatePlatform WINELIB_NAME_AW(SetupSetFileQueueAlternatePlatform)
472 BOOL WINAPI SetupQueueCopyA(HSPFILEQ,PCSTR,PCSTR,PCSTR,PCSTR,PCSTR,PCSTR,PCSTR,DWORD);
473 BOOL WINAPI SetupQueueCopyW(HSPFILEQ,PCWSTR,PCWSTR,PCWSTR,PCWSTR,PCWSTR,PCWSTR,PCWSTR,DWORD);
474 #define SetupQueueCopy WINELIB_NAME_AW(SetupQueueCopy)
475 BOOL WINAPI SetupQueueCopyIndirectA( PSP_FILE_COPY_PARAMS_A );
476 BOOL WINAPI SetupQueueCopyIndirectW( PSP_FILE_COPY_PARAMS_W );
477 #define SetupQueueCopyIndirect WINELIB_NAME_AW(SetupQueueCopyIndirect)
478 BOOL WINAPI SetupQueueDefaultCopyA( HSPFILEQ, HINF, PCSTR, PCSTR, PCSTR, DWORD );
479 BOOL WINAPI SetupQueueDefaultCopyW( HSPFILEQ, HINF, PCWSTR, PCWSTR, PCWSTR, DWORD );
480 #define SetupQueueDefaultCopy WINELIB_NAME_AW(SetupQueueDefaultCopy)
481 BOOL WINAPI SetupQueueDeleteA( HSPFILEQ, PCSTR, PCSTR );
482 BOOL WINAPI SetupQueueDeleteW( HSPFILEQ, PCWSTR, PCWSTR );
483 #define SetupQueueDelete WINELIB_NAME_AW(SetupQueueDelete)
484 BOOL WINAPI SetupQueueRenameA( HSPFILEQ, PCSTR, PCSTR, PCSTR, PCSTR );
485 BOOL WINAPI SetupQueueRenameW( HSPFILEQ, PCWSTR, PCWSTR, PCWSTR, PCWSTR );
486 #define SetupQueueRename WINELIB_NAME_AW(SetupQueueRename)
487 BOOL WINAPI SetupCommitFileQueueA( HWND, HSPFILEQ, PSP_FILE_CALLBACK_A, PVOID );
488 BOOL WINAPI SetupCommitFileQueueW( HWND, HSPFILEQ, PSP_FILE_CALLBACK_W, PVOID );
489 #define SetupCommitFileQueue WINELIB_NAME_AW(SetupCommitFileQueue)
490 BOOL WINAPI SetupScanFileQueueA( HSPFILEQ, DWORD, HWND, PSP_FILE_CALLBACK_A, PVOID, PDWORD );
491 BOOL WINAPI SetupScanFileQueueW( HSPFILEQ, DWORD, HWND, PSP_FILE_CALLBACK_W, PVOID, PDWORD );
492 #define SetupScanFileQueue WINELIB_NAME_AW(SetupScanFileQueue)
493 BOOL WINAPI SetupGetFileQueueCount( HSPFILEQ, UINT, PUINT );
494 BOOL WINAPI SetupGetFileQueueFlags( HSPFILEQ, PDWORD );
495 BOOL WINAPI SetupSetFileQueueFlags( HSPFILEQ, DWORD, DWORD );
496 BOOL WINAPI SetupQueueCopySectionA( HSPFILEQ, PCSTR, HINF, HINF, PCSTR, DWORD );
497 BOOL WINAPI SetupQueueCopySectionW( HSPFILEQ, PCWSTR, HINF, HINF, PCWSTR, DWORD );
498 #define SetupQueueCopySection WINELIB_NAME_AW(SetupQueueCopySection)
499 BOOL WINAPI SetupQueueDeleteSectionA( HSPFILEQ, HINF, HINF, PCSTR );
500 BOOL WINAPI SetupQueueDeleteSectionW( HSPFILEQ, HINF, HINF, PCWSTR );
501 #define SetupQueueDeleteSection WINELIB_NAME_AW(SetupQueueDeleteSection)
502 BOOL WINAPI SetupQueueRenameSectionA( HSPFILEQ, HINF, HINF, PCSTR );
503 BOOL WINAPI SetupQueueRenameSectionW( HSPFILEQ, HINF, HINF, PCWSTR );
504 #define SetupQueueRenameSection WINELIB_NAME_AW(SetupQueueRenameSection)
505 PVOID WINAPI SetupInitDefaultQueueCallback( HWND );
506 PVOID WINAPI SetupInitDefaultQueueCallbackEx( HWND, HWND, UINT, DWORD, PVOID );
507 void WINAPI SetupTermDefaultQueueCallback( PVOID );
508 UINT WINAPI SetupDefaultQueueCallbackA( PVOID, UINT, UINT_PTR, UINT_PTR );
509 UINT WINAPI SetupDefaultQueueCallbackW( PVOID, UINT, UINT_PTR, UINT_PTR );
510 #define SetupDefaultQueueCallback WINELIB_NAME_AW(SetupDefaultQueueCallback)
511 BOOL WINAPI SetupInstallFilesFromInfSectionA( HINF, HINF, HSPFILEQ, PCSTR, PCSTR, UINT );
512 BOOL WINAPI SetupInstallFilesFromInfSectionW( HINF, HINF, HSPFILEQ, PCWSTR, PCWSTR, UINT );
513 #define SetupInstallFilesFromInfSection WINELIB_NAME_AW(SetupInstallFilesFromInfSection)
514 BOOL WINAPI SetupInstallFromInfSectionA(HWND,HINF,PCSTR,UINT,HKEY,PCSTR,UINT,
515 PSP_FILE_CALLBACK_A,PVOID,HDEVINFO,PSP_DEVINFO_DATA);
516 BOOL WINAPI SetupInstallFromInfSectionW(HWND,HINF,PCWSTR,UINT,HKEY,PCWSTR,UINT,
517 PSP_FILE_CALLBACK_W,PVOID,HDEVINFO,PSP_DEVINFO_DATA);
518 #define SetupInstallFromInfSection WINELIB_NAME_AW(SetupInstallFromInfSection)
521 #endif /* _INC_SETUPAPI */