Add trailing '\n's to ok() calls.
[wine.git] / include / setupapi.h
blob4700d3ca5e5bfb689ed5bb8789df9ed94f453fe8
1 /*
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
19 #ifndef _INC_SETUPAPI
20 #define _INC_SETUPAPI
22 #include <commctrl.h>
24 /* setupapi doesn't use the normal convention, it adds an underscore before A/W */
25 #ifdef __WINESRC__
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 */
32 typedef PVOID HINF;
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 /* inf structure. */
41 typedef struct _INFCONTEXT
43 PVOID Inf;
44 PVOID CurrentInf;
45 UINT Section;
46 UINT Line;
47 } INFCONTEXT, *PINFCONTEXT;
49 typedef struct _SP_ALTPLATFORM_INFO_V2
51 DWORD cbSize;
52 DWORD Platform;
53 DWORD MajorVersion;
54 DWORD MinorVersion;
55 WORD ProcessorArchitecture;
56 union
58 WORD Reserved;
59 WORD Flags;
60 } DUMMYUNIONNAME;
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
69 DWORD cbSize;
70 DWORD Platform;
71 DWORD MajorVersion;
72 DWORD MinorVersion;
73 WORD ProcessorArchitecture;
74 WORD Reserved;
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
82 DWORD cbSize;
83 HSPFILEQ QueueHandle;
84 PCSTR SourceRootPath;
85 PCSTR SourcePath;
86 PCSTR SourceFilename;
87 PCSTR SourceDescription;
88 PCSTR SourceTagfile;
89 PCSTR TargetDirectory;
90 PCSTR TargetFilename;
91 DWORD CopyStyle;
92 HINF LayoutInf;
93 PCSTR SecurityDescriptor;
94 } SP_FILE_COPY_PARAMS_A, *PSP_FILE_COPY_PARAMS_A;
96 typedef struct _SP_FILE_COPY_PARAMS_W
98 DWORD cbSize;
99 HSPFILEQ QueueHandle;
100 PCWSTR SourceRootPath;
101 PCWSTR SourcePath;
102 PCWSTR SourceFilename;
103 PCWSTR SourceDescription;
104 PCWSTR SourceTagfile;
105 PCWSTR TargetDirectory;
106 PCWSTR TargetFilename;
107 DWORD CopyStyle;
108 HINF LayoutInf;
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)
121 #define LINE_LEN 256
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
134 DWORD cbSize;
135 GUID ClassGuid;
136 DWORD DevInst; /* DEVINST handle */
137 DWORD Reserved;
138 } SP_DEVINFO_DATA, *PSP_DEVINFO_DATA;
140 typedef struct _SP_DEVICE_INTERFACE_DATA
142 DWORD cbSize;
143 GUID InterfaceClassGuid;
144 DWORD Flags;
145 ULONG_PTR Reserved;
146 } SP_DEVICE_INTERFACE_DATA, *PSP_DEVICE_INTERFACE_DATA;
148 typedef struct _SP_DEVICE_INTERFACE_DETAIL_DATA_A
150 DWORD cbSize;
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
156 DWORD cbSize;
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 _SP_DEVINFO_LIST_DETAIL_DATA_A {
164 DWORD cbSize;
165 GUID ClassGuid;
166 HANDLE RemoteMachineHandle;
167 CHAR RemoteMachineName[SP_MAX_MACHINENAME_LENGTH];
168 } SP_DEVINFO_LIST_DETAIL_DATA_A, *PSP_DEVINFO_LIST_DETAIL_DATA_A;
170 typedef struct _SP_DEVINFO_LIST_DETAIL_DATA_W {
171 DWORD cbSize;
172 GUID ClassGuid;
173 HANDLE RemoteMachineHandle;
174 WCHAR RemoteMachineName[SP_MAX_MACHINENAME_LENGTH];
175 } SP_DEVINFO_LIST_DETAIL_DATA_W, *PSP_DEVINFO_LIST_DETAIL_DATA_W;
177 DECL_WINELIB_SETUPAPI_TYPE_AW(SP_DEVINFO_LIST_DETAIL_DATA)
178 DECL_WINELIB_SETUPAPI_TYPE_AW(PSP_DEVINFO_LIST_DETAIL_DATA)
180 typedef struct _FILE_IN_CABINET_INFO_A {
181 LPCSTR NameInCabinet;
182 DWORD FileSize;
183 DWORD Win32Error;
184 WORD DosDate;
185 WORD DosTime;
186 WORD DosAttribs;
187 CHAR FullTargetName[MAX_PATH];
188 } FILE_IN_CABINET_INFO_A, *PFILE_IN_CABINET_INFO_A;
190 typedef struct _FILE_IN_CABINET_INFO_W {
191 LPCWSTR NameInCabinet;
192 DWORD FileSize;
193 DWORD Win32Error;
194 WORD DosDate;
195 WORD DosTime;
196 WORD DosAttribs;
197 WCHAR FullTargetName[MAX_PATH];
198 } FILE_IN_CABINET_INFO_W, *PFILE_IN_CABINET_INFO_W;
200 DECL_WINELIB_SETUPAPI_TYPE_AW(FILE_IN_CABINET_INFO)
201 DECL_WINELIB_SETUPAPI_TYPE_AW(PFILE_IN_CABINET_INFO)
203 typedef struct _CABINET_INFO_A {
204 PCSTR CabinetPath;
205 PCSTR CabinetFile;
206 PCSTR DiskName;
207 USHORT SetId;
208 USHORT CabinetNumber;
209 } CABINET_INFO_A, *PCABINET_INFO_A;
211 typedef struct _CABINET_INFO_W {
212 PCWSTR CabinetPath;
213 PCWSTR CabinetFile;
214 PCWSTR DiskName;
215 USHORT SetId;
216 USHORT CabinetNumber;
217 } CABINET_INFO_W, *PCABINET_INFO_W;
219 DECL_WINELIB_SETUPAPI_TYPE_AW(CABINET_INFO);
220 DECL_WINELIB_SETUPAPI_TYPE_AW(PCABINET_INFO);
222 #define INF_STYLE_NONE 0x00
223 #define INF_STYLE_OLDNT 0x01
224 #define INF_STYLE_WIN4 0x02
225 #define INF_STYLE_CACHE_ENABLE 0x10
226 #define INF_STYLE_CACHE_DISABLE 0x20
228 #define FILEOP_COPY 0
229 #define FILEOP_RENAME 1
230 #define FILEOP_DELETE 2
231 #define FILEOP_BACKUP 3
233 #define FILEOP_ABORT 0
234 #define FILEOP_DOIT 1
235 #define FILEOP_SKIP 2
236 #define FILEOP_RETRY FILEOP_DOIT
237 #define FILEOP_NEWPATH 4
239 typedef struct _FILEPATHS_A
241 PCSTR Target;
242 PCSTR Source;
243 UINT Win32Error;
244 DWORD Flags;
245 } FILEPATHS_A, *PFILEPATHS_A;
247 typedef struct _FILEPATHS_W
249 PCWSTR Target;
250 PCWSTR Source;
251 UINT Win32Error;
252 DWORD Flags;
253 } FILEPATHS_W, *PFILEPATHS_W;
255 DECL_WINELIB_SETUPAPI_TYPE_AW(FILEPATHS)
256 DECL_WINELIB_SETUPAPI_TYPE_AW(PFILEPATHS)
258 #define SPFILENOTIFY_STARTQUEUE 0x0001
259 #define SPFILENOTIFY_ENDQUEUE 0x0002
260 #define SPFILENOTIFY_STARTSUBQUEUE 0x0003
261 #define SPFILENOTIFY_ENDSUBQUEUE 0x0004
262 #define SPFILENOTIFY_STARTDELETE 0x0005
263 #define SPFILENOTIFY_ENDDELETE 0x0006
264 #define SPFILENOTIFY_DELETEERROR 0x0007
265 #define SPFILENOTIFY_STARTRENAME 0x0008
266 #define SPFILENOTIFY_ENDRENAME 0x0009
267 #define SPFILENOTIFY_RENAMEERROR 0x000a
268 #define SPFILENOTIFY_STARTCOPY 0x000b
269 #define SPFILENOTIFY_ENDCOPY 0x000c
270 #define SPFILENOTIFY_COPYERROR 0x000d
271 #define SPFILENOTIFY_NEEDMEDIA 0x000e
272 #define SPFILENOTIFY_QUEUESCAN 0x000f
273 #define SPFILENOTIFY_CABINETINFO 0x0010
274 #define SPFILENOTIFY_FILEINCABINET 0x0011
275 #define SPFILENOTIFY_NEEDNEWCABINET 0x0012
276 #define SPFILENOTIFY_FILEEXTRACTED 0x0013
277 #define SPFILENOTIFY_FILEOPDELAYED 0x0014
278 #define SPFILENOTIFY_STARTBACKUP 0x0015
279 #define SPFILENOTIFY_BACKUPERROR 0x0016
280 #define SPFILENOTIFY_ENDBACKUP 0x0017
281 #define SPFILENOTIFY_QUEUESCAN_EX 0x0018
282 #define SPFILENOTIFY_STARTREGISTRATION 0x0019
283 #define SPFILENOTIFY_ENDREGISTRATION 0x0020
284 #define SPFILENOTIFY_QUEUESCAN_SIGNERINFO 0x0040
286 #define SPFILENOTIFY_LANGMISMATCH 0x00010000
287 #define SPFILENOTIFY_TARGETEXISTS 0x00020000
288 #define SPFILENOTIFY_TARGETNEWER 0x00040000
290 #define SPINST_LOGCONFIG 0x00000001
291 #define SPINST_INIFILES 0x00000002
292 #define SPINST_REGISTRY 0x00000004
293 #define SPINST_INI2REG 0x00000008
294 #define SPINST_FILES 0x00000010
295 #define SPINST_BITREG 0x00000020
296 #define SPINST_REGSVR 0x00000040
297 #define SPINST_UNREGSVR 0x00000080
298 #define SPINST_PROFILEITEMS 0x00000100
299 #define SPINST_COPYINF 0x00000200
300 #define SPINST_ALL 0x000003ff
301 #define SPINST_SINGLESECTION 0x00010000
302 #define SPINST_LOGCONFIG_IS_FORCED 0x00020000
303 #define SPINST_LOGCONFIGS_ARE_OVERRIDES 0x00040000
304 #define SPINST_REGISTERCALLBACKAWARE 0x00080000
306 #define SP_COPY_DELETESOURCE 0x00000001
307 #define SP_COPY_REPLACEONLY 0x00000002
308 #define SP_COPY_NEWER 0x00000004
309 #define SP_COPY_NEWER_OR_SAME SP_COPY_NEWER
310 #define SP_COPY_NOOVERWRITE 0x00000008
311 #define SP_COPY_NODECOMP 0x00000010
312 #define SP_COPY_LANGUAGEAWARE 0x00000020
313 #define SP_COPY_SOURCE_ABSOLUTE 0x00000040
314 #define SP_COPY_SOURCEPATH_ABSOLUTE 0x00000080
315 #define SP_COPY_IN_USE_NEEDS_REBOOT 0x00000100
316 #define SP_COPY_FORCE_IN_USE 0x00000200
317 #define SP_COPY_NOSKIP 0x00000400
318 #define SP_FLAG_CABINETCONTINUATION 0x00000800
319 #define SP_COPY_FORCE_NOOVERWRITE 0x00001000
320 #define SP_COPY_FORCE_NEWER 0x00002000
321 #define SP_COPY_WARNIFSKIP 0x00004000
322 #define SP_COPY_NOBROWSE 0x00008000
323 #define SP_COPY_NEWER_ONLY 0x00010000
324 #define SP_COPY_SOURCE_SIS_MASTER 0x00020000
325 #define SP_COPY_OEMINF_CATALOG_ONLY 0x00040000
326 #define SP_COPY_REPLACE_BOOT_FILE 0x00080000
327 #define SP_COPY_NOPRUNE 0x00100000
328 #define SP_COPY_OEM_F6_INF 0x00200000
330 #define FLG_ADDREG_DELREG_BIT 0x00008000
331 #define FLG_ADDREG_BINVALUETYPE 0x00000001
332 #define FLG_ADDREG_NOCLOBBER 0x00000002
333 #define FLG_ADDREG_DELVAL 0x00000004
334 #define FLG_ADDREG_APPEND 0x00000008
335 #define FLG_ADDREG_KEYONLY 0x00000010
336 #define FLG_ADDREG_OVERWRITEONLY 0x00000020
337 #define FLG_ADDREG_64BITKEY 0x00001000
338 #define FLG_ADDREG_KEYONLY_COMMON 0x00002000
339 #define FLG_ADDREG_32BITKEY 0x00004000
340 #define FLG_ADDREG_TYPE_SZ 0x00000000
341 #define FLG_ADDREG_TYPE_MULTI_SZ 0x00010000
342 #define FLG_ADDREG_TYPE_EXPAND_SZ 0x00020000
343 #define FLG_ADDREG_TYPE_BINARY (0x00000000 | FLG_ADDREG_BINVALUETYPE)
344 #define FLG_ADDREG_TYPE_DWORD (0x00010000 | FLG_ADDREG_BINVALUETYPE)
345 #define FLG_ADDREG_TYPE_NONE (0x00020000 | FLG_ADDREG_BINVALUETYPE)
346 #define FLG_ADDREG_TYPE_MASK (0xFFFF0000 | FLG_ADDREG_BINVALUETYPE)
348 #define FLG_DELREG_VALUE (0x00000000)
349 #define FLG_DELREG_TYPE_MASK FLG_ADDREG_TYPE_MASK
350 #define FLG_DELREG_TYPE_SZ FLG_ADDREG_TYPE_SZ
351 #define FLG_DELREG_TYPE_MULTI_SZ FLG_ADDREG_TYPE_MULTI_SZ
352 #define FLG_DELREG_TYPE_EXPAND_SZ FLG_ADDREG_TYPE_EXPAND_SZ
353 #define FLG_DELREG_TYPE_BINARY FLG_ADDREG_TYPE_BINARY
354 #define FLG_DELREG_TYPE_DWORD FLG_ADDREG_TYPE_DWORD
355 #define FLG_DELREG_TYPE_NONE FLG_ADDREG_TYPE_NONE
356 #define FLG_DELREG_64BITKEY FLG_ADDREG_64BITKEY
357 #define FLG_DELREG_KEYONLY_COMMON FLG_ADDREG_KEYONLY_COMMON
358 #define FLG_DELREG_32BITKEY FLG_ADDREG_32BITKEY
359 #define FLG_DELREG_OPERATION_MASK (0x000000FE)
360 #define FLG_DELREG_MULTI_SZ_DELSTRING (FLG_DELREG_TYPE_MULTI_SZ | FLG_ADDREG_DELREG_BIT | 0x00000002)
362 /* Class installer function codes */
363 #define DIF_SELECTDEVICE 0x01
364 #define DIF_INSTALLDEVICE 0x02
365 #define DIF_ASSIGNRESOURCES 0x03
366 #define DIF_PROPERTIES 0x04
367 #define DIF_REMOVE 0x05
368 #define DIF_FIRSTTIMESETUP 0x06
369 #define DIF_FOUNDDEVICE 0x07
370 #define DIF_SELECTCLASSDRIVERS 0x08
371 #define DIF_VALIDATECLASSDRIVERS 0x09
372 #define DIF_INSTALLCLASSDRIVERS 0x0a
373 #define DIF_CALCDISKSPACE 0x0b
374 #define DIF_DESTROYPRIVATEDATA 0x0c
375 #define DIF_VALIDATEDRIVER 0x0d
376 #define DIF_MOVEDEVICE 0x0e
377 #define DIF_DETECT 0x0f
378 #define DIF_INSTALLWIZARD 0x10
379 #define DIF_DESTROYWIZARDDATA 0x11
380 #define DIF_PROPERTYCHANGE 0x12
381 #define DIF_ENABLECLASS 0x13
382 #define DIF_DETECTVERIFY 0x14
383 #define DIF_INSTALLDEVICEFILES 0x15
384 #define DIF_UNREMOVE 0x16
385 #define DIF_SELECTBESTCOMPATDRV 0x17
386 #define DIF_ALLOW_INSTALL 0x18
387 #define DIF_REGISTERDEVICE 0x19
388 #define DIF_NEWDEVICEWIZARD_PRESELECT 0x1a
389 #define DIF_NEWDEVICEWIZARD_SELECT 0x1b
390 #define DIF_NEWDEVICEWIZARD_PREANALYZE 0x1c
391 #define DIF_NEWDEVICEWIZARD_POSTANALYZE 0x1d
392 #define DIF_NEWDEVICEWIZARD_FINISHINSTALL 0x1e
393 #define DIF_UNUSED1 0x1f
394 #define DIF_INSTALLINTERFACES 0x20
395 #define DIF_DETECTCANCEL 0x21
396 #define DIF_REGISTER_COINSTALLERS 0x22
397 #define DIF_ADDPROPERTYPAGE_ADVANCED 0x23
398 #define DIF_ADDPROPERTYPAGE_BASIC 0x24
399 #define DIF_RESERVED1 0x25
400 #define DIF_TROUBLESHOOTER 0x26
401 #define DIF_POWERMESSAGEWAKE 0x27
402 #define DIF_ADDREMOTEPROPERTYPAGE_ADVANCED 0x28
403 #define DIF_UPDATEDRIVER_UI 0x29
404 #define DIF_RESERVED2 0x30
406 /* Directory ids */
407 #define DIRID_ABSOLUTE (-1)
408 #define DIRID_ABSOLUTE_16BIT 0xffff
409 #define DIRID_NULL 0
410 #define DIRID_SRCPATH 1
411 #define DIRID_WINDOWS 10
412 #define DIRID_SYSTEM 11
413 #define DIRID_DRIVERS 12
414 #define DIRID_IOSUBSYS DIRID_DRIVERS
415 #define DIRID_INF 17
416 #define DIRID_HELP 18
417 #define DIRID_FONTS 20
418 #define DIRID_VIEWERS 21
419 #define DIRID_COLOR 23
420 #define DIRID_APPS 24
421 #define DIRID_SHARED 25
422 #define DIRID_BOOT 30
423 #define DIRID_SYSTEM16 50
424 #define DIRID_SPOOL 51
425 #define DIRID_SPOOLDRIVERS 52
426 #define DIRID_USERPROFILE 53
427 #define DIRID_LOADER 54
428 #define DIRID_PRINTPROCESSOR 55
429 #define DIRID_DEFAULT DIRID_SYSTEM
431 #define DIRID_COMMON_STARTMENU 16406
432 #define DIRID_COMMON_PROGRAMS 16407
433 #define DIRID_COMMON_STARTUP 16408
434 #define DIRID_COMMON_DESKTOPDIRECTORY 16409
435 #define DIRID_COMMON_FAVORITES 16415
436 #define DIRID_COMMON_APPDATA 16419
437 #define DIRID_PROGRAM_FILES 16422
438 #define DIRID_SYSTEM_X86 16425
439 #define DIRID_PROGRAM_FILES_X86 16426
440 #define DIRID_PROGRAM_FILES_COMMON 16427
441 #define DIRID_PROGRAM_FILES_COMMONX86 16428
442 #define DIRID_COMMON_TEMPLATES 16429
443 #define DIRID_COMMON_DOCUMENTS 16430
445 #define DIRID_USER 0x8000
448 /* Error code */
450 #define ERROR_EXPECTED_SECTION_NAME (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0)
451 #define ERROR_BAD_SECTION_NAME_LINE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|1)
452 #define ERROR_SECTION_NAME_TOO_LONG (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|2)
453 #define ERROR_GENERAL_SYNTAX (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|3)
454 #define ERROR_WRONG_INF_STYLE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x100)
455 #define ERROR_SECTION_NOT_FOUND (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x101)
456 #define ERROR_LINE_NOT_FOUND (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x102)
457 #define ERROR_NO_BACKUP (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x103)
458 #define ERROR_NO_ASSOCIATED_CLASS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x200)
459 #define ERROR_CLASS_MISMATCH (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x201)
460 #define ERROR_DUPLICATE_FOUND (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x202)
461 #define ERROR_NO_DRIVER_SELECTED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x203)
462 #define ERROR_KEY_DOES_NOT_EXIST (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x204)
463 #define ERROR_INVALID_DEVINST_NAME (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x205)
464 #define ERROR_INVALID_CLASS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x206)
465 #define ERROR_DEVINST_ALREADY_EXISTS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x207)
466 #define ERROR_DEVINFO_NOT_REGISTERED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x208)
467 #define ERROR_INVALID_REG_PROPERTY (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x209)
468 #define ERROR_NO_INF (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20A)
469 #define ERROR_NO_SUCH_DEVINST (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20B)
470 #define ERROR_CANT_LOAD_CLASS_ICON (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20C)
471 #define ERROR_INVALID_CLASS_INSTALLER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20D)
472 #define ERROR_DI_DO_DEFAULT (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20E)
473 #define ERROR_DI_NOFILECOPY (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x20F)
474 #define ERROR_INVALID_HWPROFILE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x210)
475 #define ERROR_NO_DEVICE_SELECTED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x211)
476 #define ERROR_DEVINFO_LIST_LOCKED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x212)
477 #define ERROR_DEVINFO_DATA_LOCKED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x213)
478 #define ERROR_DI_BAD_PATH (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x214)
479 #define ERROR_NO_CLASSINSTALL_PARAMS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x215)
480 #define ERROR_FILEQUEUE_LOCKED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x216)
481 #define ERROR_BAD_SERVICE_INSTALLSECT (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x217)
482 #define ERROR_NO_CLASS_DRIVER_LIST (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x218)
483 #define ERROR_NO_ASSOCIATED_SERVICE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x219)
484 #define ERROR_NO_DEFAULT_DEVICE_INTERFACE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21A)
485 #define ERROR_DEVICE_INTERFACE_ACTIVE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21B)
486 #define ERROR_DEVICE_INTERFACE_REMOVED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21C)
487 #define ERROR_BAD_INTERFACE_INSTALLSECT (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21D)
488 #define ERROR_NO_SUCH_INTERFACE_CLASS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21E)
489 #define ERROR_INVALID_REFERENCE_STRING (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x21F)
490 #define ERROR_INVALID_MACHINENAME (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x220)
491 #define ERROR_REMOTE_COMM_FAILURE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x221)
492 #define ERROR_MACHINE_UNAVAILABLE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x222)
493 #define ERROR_NO_CONFIGMGR_SERVICES (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x223)
494 #define ERROR_INVALID_PROPPAGE_PROVIDER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x224)
495 #define ERROR_NO_SUCH_DEVICE_INTERFACE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x225)
496 #define ERROR_DI_POSTPROCESSING_REQUIRED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x226)
497 #define ERROR_INVALID_COINSTALLER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x227)
498 #define ERROR_NO_COMPAT_DRIVERS (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x228)
499 #define ERROR_NO_DEVICE_ICON (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x229)
500 #define ERROR_INVALID_INF_LOGCONFIG (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22A)
501 #define ERROR_DI_DONT_INSTALL (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22B)
502 #define ERROR_INVALID_FILTER_DRIVER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22C)
503 #define ERROR_NON_WINDOWS_NT_DRIVER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22D)
504 #define ERROR_NON_WINDOWS_DRIVER (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22E)
505 #define ERROR_NO_CATALOG_FOR_OEM_INF (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x22F)
506 #define ERROR_DEVINSTALL_QUEUE_NONNATIVE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x230)
507 #define ERROR_NOT_DISABLEABLE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x231)
508 #define ERROR_CANT_REMOVE_DEVINST (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x232)
509 #define ERROR_INVALID_TARGET (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x233)
510 #define ERROR_DRIVER_NONNATIVE (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x234)
511 #define ERROR_IN_WOW64 (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x235)
512 #define ERROR_SET_SYSTEM_RESTORE_POINT (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x236)
513 #define ERROR_INCORRECTLY_COPIED_INF (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x237)
514 #define ERROR_SCE_DISABLED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x238)
515 #define ERROR_NO_DEFAULT_INTERFACE_DEVICE ERROR_NO_DEFAULT_DEVICE_INTERFACE
516 #define ERROR_INTERFACE_DEVICE_ACTIVE ERROR_DEVICE_INTERFACE_ACTIVE
517 #define ERROR_INTERFACE_DEVICE_REMOVED ERROR_DEVICE_INTERFACE_REMOVED
518 #define ERROR_NO_SUCH_INTERFACE_DEVICE ERROR_NO_SUCH_DEVICE_INTERFACE
519 #define ERROR_NOT_INSTALLED (APPLICATION_ERROR_MASK|ERROR_SEVERITY_ERROR|0x1000)
521 HINF WINAPI SetupOpenInfFileA( PCSTR name, PCSTR pszclass, DWORD style, UINT *error );
522 HINF WINAPI SetupOpenInfFileW( PCWSTR name, PCWSTR pszclass, DWORD style, UINT *error );
523 #define SetupOpenInfFile WINELIB_NAME_AW(SetupOpenInfFile)
524 BOOL WINAPI SetupOpenAppendInfFileA( PCSTR, HINF, UINT * );
525 BOOL WINAPI SetupOpenAppendInfFileW( PCWSTR, HINF, UINT * );
526 #define SetupOpenAppendInfFile WINELIB_NAME_AW(SetupOpenAppendInfFile)
527 void WINAPI SetupCloseInfFile( HINF hinf );
528 BOOL WINAPI SetupGetLineByIndexA( HINF, PCSTR, DWORD, INFCONTEXT * );
529 BOOL WINAPI SetupGetLineByIndexW( HINF, PCWSTR, DWORD, INFCONTEXT * );
530 #define SetupGetLineByIndex WINELIB_NAME_AW(SetupGetLineByIndex)
531 LONG WINAPI SetupGetLineCountA( HINF hinf, PCSTR section );
532 LONG WINAPI SetupGetLineCountW( HINF hinf, PCWSTR section );
533 #define SetupGetLineCount WINELIB_NAME_AW(SetupGetLineCount)
534 BOOL WINAPI SetupFindFirstLineA( HINF hinf, PCSTR section, PCSTR key, INFCONTEXT *context );
535 BOOL WINAPI SetupFindFirstLineW( HINF hinf, PCWSTR section, PCWSTR key, INFCONTEXT *context );
536 #define SetupFindFirstLine WINELIB_NAME_AW(SetupFindFirstLine)
537 BOOL WINAPI SetupFindNextLine( PINFCONTEXT context_in, PINFCONTEXT context_out );
538 BOOL WINAPI SetupFindNextMatchLineA( PINFCONTEXT context_in, PCSTR key, PINFCONTEXT context_out );
539 BOOL WINAPI SetupFindNextMatchLineW( PINFCONTEXT context_in, PCWSTR key, PINFCONTEXT context_out );
540 #define SetupFindNextMatchLine WINELIB_NAME_AW(SetupFindNextMatchLine)
541 BOOL WINAPI SetupGetLineTextA( PINFCONTEXT context, HINF hinf, PCSTR section_name,PCSTR key_name, PSTR buffer, DWORD size, PDWORD required );
542 BOOL WINAPI SetupGetLineTextW( PINFCONTEXT context, HINF hinf, PCWSTR section_name, PCWSTR key_name, PWSTR buffer, DWORD size, PDWORD required );
543 #define SetupGetLineText WINELIB_NAME_AW(SetupGetLineText)
544 DWORD WINAPI SetupGetFieldCount( PINFCONTEXT context );
545 BOOL WINAPI SetupGetIntField( PINFCONTEXT context, DWORD index, PINT result );
546 BOOL WINAPI SetupGetStringFieldA( PINFCONTEXT context, DWORD index, PSTR buffer, DWORD size, PDWORD required );
547 BOOL WINAPI SetupGetStringFieldW( PINFCONTEXT context, DWORD index, PWSTR buffer, DWORD size, PDWORD required );
548 #define SetupGetStringField WINELIB_NAME_AW(SetupGetStringField)
549 BOOL WINAPI SetupGetBinaryField( PINFCONTEXT context, DWORD index, BYTE *buffer, DWORD size, LPDWORD required );
550 BOOL WINAPI SetupGetMultiSzFieldA( PINFCONTEXT context, DWORD index, PSTR buffer, DWORD size, LPDWORD required );
551 BOOL WINAPI SetupGetMultiSzFieldW( PINFCONTEXT context, DWORD index, PWSTR buffer, DWORD size, LPDWORD required );
552 #define SetupGetMultiSzField WINELIB_NAME_AW(SetupGetMultiSzField)
553 BOOL WINAPI SetupSetDirectoryIdA( HINF, DWORD, PCSTR );
554 BOOL WINAPI SetupSetDirectoryIdW( HINF, DWORD, PCWSTR );
555 #define SetupSetDirectoryId WINELIB_NAME_AW(SetupSetDirectoryId)
556 HSPFILEQ WINAPI SetupOpenFileQueue(void);
557 BOOL WINAPI SetupCloseFileQueue( HSPFILEQ );
558 BOOL WINAPI SetupSetFileQueueAlternatePlatformA( HSPFILEQ, PSP_ALTPLATFORM_INFO, PCSTR );
559 BOOL WINAPI SetupSetFileQueueAlternatePlatformW( HSPFILEQ, PSP_ALTPLATFORM_INFO, PCWSTR );
560 #define SetupSetFileQueueAlternatePlatform WINELIB_NAME_AW(SetupSetFileQueueAlternatePlatform)
561 BOOL WINAPI SetupQueueCopyA(HSPFILEQ,PCSTR,PCSTR,PCSTR,PCSTR,PCSTR,PCSTR,PCSTR,DWORD);
562 BOOL WINAPI SetupQueueCopyW(HSPFILEQ,PCWSTR,PCWSTR,PCWSTR,PCWSTR,PCWSTR,PCWSTR,PCWSTR,DWORD);
563 #define SetupQueueCopy WINELIB_NAME_AW(SetupQueueCopy)
564 BOOL WINAPI SetupQueueCopyIndirectA( PSP_FILE_COPY_PARAMS_A );
565 BOOL WINAPI SetupQueueCopyIndirectW( PSP_FILE_COPY_PARAMS_W );
566 #define SetupQueueCopyIndirect WINELIB_NAME_AW(SetupQueueCopyIndirect)
567 BOOL WINAPI SetupQueueDefaultCopyA( HSPFILEQ, HINF, PCSTR, PCSTR, PCSTR, DWORD );
568 BOOL WINAPI SetupQueueDefaultCopyW( HSPFILEQ, HINF, PCWSTR, PCWSTR, PCWSTR, DWORD );
569 #define SetupQueueDefaultCopy WINELIB_NAME_AW(SetupQueueDefaultCopy)
570 BOOL WINAPI SetupQueueDeleteA( HSPFILEQ, PCSTR, PCSTR );
571 BOOL WINAPI SetupQueueDeleteW( HSPFILEQ, PCWSTR, PCWSTR );
572 #define SetupQueueDelete WINELIB_NAME_AW(SetupQueueDelete)
573 BOOL WINAPI SetupQueueRenameA( HSPFILEQ, PCSTR, PCSTR, PCSTR, PCSTR );
574 BOOL WINAPI SetupQueueRenameW( HSPFILEQ, PCWSTR, PCWSTR, PCWSTR, PCWSTR );
575 #define SetupQueueRename WINELIB_NAME_AW(SetupQueueRename)
576 BOOL WINAPI SetupCommitFileQueueA( HWND, HSPFILEQ, PSP_FILE_CALLBACK_A, PVOID );
577 BOOL WINAPI SetupCommitFileQueueW( HWND, HSPFILEQ, PSP_FILE_CALLBACK_W, PVOID );
578 #define SetupCommitFileQueue WINELIB_NAME_AW(SetupCommitFileQueue)
579 BOOL WINAPI SetupScanFileQueueA( HSPFILEQ, DWORD, HWND, PSP_FILE_CALLBACK_A, PVOID, PDWORD );
580 BOOL WINAPI SetupScanFileQueueW( HSPFILEQ, DWORD, HWND, PSP_FILE_CALLBACK_W, PVOID, PDWORD );
581 #define SetupScanFileQueue WINELIB_NAME_AW(SetupScanFileQueue)
582 BOOL WINAPI SetupGetFileQueueCount( HSPFILEQ, UINT, PUINT );
583 BOOL WINAPI SetupGetFileQueueFlags( HSPFILEQ, PDWORD );
584 BOOL WINAPI SetupSetFileQueueFlags( HSPFILEQ, DWORD, DWORD );
585 BOOL WINAPI SetupQueueCopySectionA( HSPFILEQ, PCSTR, HINF, HINF, PCSTR, DWORD );
586 BOOL WINAPI SetupQueueCopySectionW( HSPFILEQ, PCWSTR, HINF, HINF, PCWSTR, DWORD );
587 #define SetupQueueCopySection WINELIB_NAME_AW(SetupQueueCopySection)
588 BOOL WINAPI SetupQueueDeleteSectionA( HSPFILEQ, HINF, HINF, PCSTR );
589 BOOL WINAPI SetupQueueDeleteSectionW( HSPFILEQ, HINF, HINF, PCWSTR );
590 #define SetupQueueDeleteSection WINELIB_NAME_AW(SetupQueueDeleteSection)
591 BOOL WINAPI SetupQueueRenameSectionA( HSPFILEQ, HINF, HINF, PCSTR );
592 BOOL WINAPI SetupQueueRenameSectionW( HSPFILEQ, HINF, HINF, PCWSTR );
593 #define SetupQueueRenameSection WINELIB_NAME_AW(SetupQueueRenameSection)
594 PVOID WINAPI SetupInitDefaultQueueCallback( HWND );
595 PVOID WINAPI SetupInitDefaultQueueCallbackEx( HWND, HWND, UINT, DWORD, PVOID );
596 void WINAPI SetupTermDefaultQueueCallback( PVOID );
597 UINT WINAPI SetupDefaultQueueCallbackA( PVOID, UINT, UINT_PTR, UINT_PTR );
598 UINT WINAPI SetupDefaultQueueCallbackW( PVOID, UINT, UINT_PTR, UINT_PTR );
599 #define SetupDefaultQueueCallback WINELIB_NAME_AW(SetupDefaultQueueCallback)
600 HDEVINFO WINAPI SetupDiGetClassDevsA(CONST GUID *,LPCSTR,HWND,DWORD);
601 HDEVINFO WINAPI SetupDiGetClassDevsW(CONST GUID *,LPCWSTR,HWND,DWORD);
602 #define SetupDiGetClassDevs WINELIB_NAME_AW(SetupDiGetClassDevs)
603 BOOL WINAPI SetupInstallFilesFromInfSectionA( HINF, HINF, HSPFILEQ, PCSTR, PCSTR, UINT );
604 BOOL WINAPI SetupInstallFilesFromInfSectionW( HINF, HINF, HSPFILEQ, PCWSTR, PCWSTR, UINT );
605 #define SetupInstallFilesFromInfSection WINELIB_NAME_AW(SetupInstallFilesFromInfSection)
606 BOOL WINAPI SetupInstallFromInfSectionA(HWND,HINF,PCSTR,UINT,HKEY,PCSTR,UINT,
607 PSP_FILE_CALLBACK_A,PVOID,HDEVINFO,PSP_DEVINFO_DATA);
608 BOOL WINAPI SetupInstallFromInfSectionW(HWND,HINF,PCWSTR,UINT,HKEY,PCWSTR,UINT,
609 PSP_FILE_CALLBACK_W,PVOID,HDEVINFO,PSP_DEVINFO_DATA);
610 #define SetupInstallFromInfSection WINELIB_NAME_AW(SetupInstallFromInfSection)
611 BOOL WINAPI SetupIterateCabinetA(PCSTR, DWORD, PSP_FILE_CALLBACK_A, PVOID);
612 BOOL WINAPI SetupIterateCabinetW(PCWSTR, DWORD, PSP_FILE_CALLBACK_W, PVOID);
613 #define SetupIterateCabinet WINELIB_NAME_AW(SetupIterateCabinet)
615 #undef DECL_WINELIB_SETUPAPI_TYPE_AW
617 #endif /* _INC_SETUPAPI */