Merge from amd64 branch:
[reactos.git] / reactos / include / reactos / idl / pnp.idl
1 /*
2 * Plug and Play Manager RPC interface definition
3 */
4
5 #include <ms-dtyp.idl>
6
7 const unsigned long PNP_MAX_STRING_LEN = 32767;
8 const unsigned long PNP_MAX_DEVICE_ID_LEN = 200;
9 const unsigned long PNP_MAX_GUID_STRING_LEN = 39;
10 const unsigned long PNP_MAX_DEVINTERFACE_LEN = PNP_MAX_STRING_LEN;
11 const unsigned long PNP_MAX_CULTURE_NAME_LEN = 85;
12 const unsigned long PNP_MAX_CM_PATH = 360;
13 const unsigned long PNP_MAX_PROP_SIZE = 65534;
14 const unsigned long PNP_MAX_PROP_COUNT = 32767;
15 const unsigned long PNP_MAX_BUFFER_SIZE = 16000000;
16
17 cpp_quote("#ifndef _CFGMGR32_H_")
18 typedef unsigned long RESOURCEID;
19 cpp_quote("#endif")
20 typedef unsigned long DEVPROPTYPE;
21 typedef [range(0, PNP_MAX_PROP_SIZE)] unsigned long PNP_PROP_SIZE;
22 typedef [range(0, PNP_MAX_PROP_COUNT)] unsigned long PNP_PROP_COUNT;
23 typedef [range(0, PNP_MAX_STRING_LEN)] unsigned long PNP_RPC_STRING_LEN;
24 typedef [range(0, PNP_MAX_BUFFER_SIZE)] unsigned long PNP_RPC_BUFFER_SIZE;
25 typedef PNP_PROP_SIZE *PPNP_PROP_SIZE;
26 typedef PNP_PROP_COUNT *PPNP_PROP_COUNT;
27 typedef PNP_RPC_STRING_LEN *PPNP_RPC_STRING_LEN;
28 typedef PNP_RPC_BUFFER_SIZE *PPNP_RPC_BUFFER_SIZE;
29
30 cpp_quote("#ifndef _CFG_INCLUDED_")
31
32 typedef enum _PNP_VETO_TYPE {
33 PNP_VetoTypeUnknown = 0,
34 PNP_VetoLegacyDevice = 1,
35 PNP_VetoPendingClose = 2,
36 PNP_VetoWindowsApp = 3,
37 PNP_VetoWindowsService = 4,
38 PNP_VetoOutstandingOpen = 5,
39 PNP_VetoDevice = 6,
40 PNP_VetoDriver = 7,
41 PNP_VetoIllegalDeviceRequest = 8,
42 PNP_VetoInsufficientPower = 9,
43 PNP_VetoNonDisableable = 10,
44 PNP_VetoLegacyDriver = 11,
45 PNP_VetoInsufficientRights = 12,
46 } *PPNP_VETO_TYPE;
47
48 cpp_quote("#endif")
49
50 cpp_quote("#if 0")
51
52 typedef struct _BUSNUMBER_DES {
53 DWORD BUSD_Count;
54 DWORD BUSD_Type;
55 DWORD BUSD_Flags;
56 DWORD BUSD_Alloc_Base;
57 DWORD BUSD_Alloc_End;
58 } BUSNUMBER_DES, *PBUSNUMBER_DES;
59
60 typedef struct _BUSNUMBER_RANGE {
61 DWORD BUSR_Min;
62 DWORD BUSR_Max;
63 DWORD BUSR_nBusNumbers;
64 DWORD BUSR_Flags;
65 } BUSNUMBER_RANGE, *PBUSNUMBER_RANGE;
66
67 typedef struct _BUSNUMBER_RESOURCE {
68 BUSNUMBER_DES BusNumber_Header;
69 BUSNUMBER_RANGE BusNumber_Data[1];
70 } BUSNUMBER_RESOURCE, *PBUSNUMBER_RESOURCE;
71
72 typedef struct _CS_DES {
73 DWORD CSD_SignatureLength;
74 DWORD CSD_LegacyDataOffset;
75 DWORD CSD_LegacyDataSize;
76 DWORD CSD_Flags;
77 GUID CSD_ClassGuid;
78 BYTE CSD_Signature[1];
79 } CS_DES, *PCS_DES;
80
81 typedef struct _CS_RESOURCE {
82 CS_DES CS_Header;
83 } CS_RESOURCE, *PCS_RESOURCE;
84
85 typedef struct _DEVPRIVATE_DES {
86 DWORD PD_Count;
87 DWORD PD_Type;
88 DWORD PD_Data1;
89 DWORD PD_Data2;
90 DWORD PD_Data3;
91 DWORD PD_Flags;
92 } DEVPRIVATE_DES, *PDEVPRIVATE_DES;
93
94 typedef struct _DEVPRIVATE_RANGE {
95 DWORD PR_Data1;
96 DWORD PR_Data2;
97 DWORD PR_Data3;
98 } DEVPRIVATE_RANGE, *PDEVPRIVATE_RANGE;
99
100 typedef struct _DEVPRIVATE_RESOURCE {
101 DEVPRIVATE_DES PRV_Header;
102 DEVPRIVATE_RANGE PRV_Data[1];
103 } DEVPRIVATE_RESOURCE, *PDEVPRIVATE_RESOURCE;
104
105 typedef struct _DMA_DES {
106 DWORD DD_Count;
107 DWORD DD_Type;
108 DWORD DD_Flags;
109 unsigned long DD_Alloc_Chan;
110 } DMA_DES, *PDMA_DES;
111
112 typedef struct _DMA_RANGE {
113 DWORD DR_Min;
114 DWORD DR_Max;
115 DWORD DR_Flags;
116 } DMA_RANGE, *PDMA_RANGE;
117
118 typedef struct _DMA_RESOURCE {
119 DMA_DES DMA_Header;
120 DMA_RANGE DMA_Data[1];
121 } DMA_RESOURCE, *PDMA_RESOURCE;
122
123 typedef struct _IO_DES {
124 DWORD IOD_Count;
125 DWORD IOD_Type;
126 unsigned __int64 IOD_AllocBase;
127 unsigned __int64 IOD_AllocEnd;
128 DWORD IOD_DesFlags;
129 } IO_DES, *PIO_DES;
130
131 typedef struct _IO_RANGE {
132 unsigned __int64 IOR_Align;
133 DWORD IOR_nPorts;
134 unsigned __int64 IOR_Min;
135 unsigned __int64 IOR_Max;
136 DWORD IOR_RangeFlags;
137 unsigned __int64 IOR_Alias;
138 } IO_RANGE, *PIO_RANGE;
139
140 typedef struct _IO_RESOURCE {
141 IO_DES IO_Header;
142 IO_RANGE IO_Data[1];
143 } IO_RESOURCE, *PIO_RESOURCE;
144
145 typedef struct _IRQ_DES {
146 DWORD IRQD_Count;
147 DWORD IRQD_Type;
148 DWORD IRQD_Flags;
149 DWORD IRQD_Alloc_Num;
150 DWORD IRQD_Affinity;
151 } IRQ_DES, *PIRQ_DES;
152
153 typedef struct _IRQ_RANGE {
154 DWORD IRQR_Min;
155 DWORD IRQR_Max;
156 DWORD IRQR_Flags;
157 } IRQ_RANGE, *PIRQ_RANGE;
158
159 typedef struct _IRQ_RESOURCE {
160 IRQ_DES IO_Header;
161 IRQ_RANGE IO_Data[1];
162 } IRQ_RESOURCE, *PIRQ_RESOURCE;
163
164 typedef struct _MEM_DES {
165 DWORD MD_Count;
166 DWORD MD_Type;
167 unsigned __int64 MD_Alloc_Base;
168 unsigned __int64 MD_Alloc_End;
169 DWORD MD_Flags;
170 DWORD Reserved;
171 } MEM_DES, *PMEM_DES;
172
173 typedef struct _MEM_RANGE {
174 __int64 MR_Align;
175 DWORD MR_nBytes;
176 __int64 MR_Min;
177 __int64 MR_Max;
178 DWORD MR_Flags;
179 DWORD MR_Reserved;
180 } MEM_RANGE, *PMEM_RANGE;
181
182 typedef struct _MEM_RESOURCE {
183 MEM_DES MEM_Header;
184 MEM_RANGE MEM_Data[1];
185 } MEM_RESOURCE, *PMEM_RESOURCE;
186
187 typedef struct _MFCARD_DES {
188 DWORD PMF_Count;
189 DWORD PMF_Type;
190 DWORD PMF_Flags;
191 BYTE PMF_ConfigOptions;
192 BYTE PMF_IoResourceIndex;
193 BYTE PMF_Reserved[2];
194 DWORD PMF_ConfigRegisterBase;
195 } MFCARD_DES, *PMFCARD_DES;
196
197 typedef struct _MFCARD_RESOURCE {
198 MFCARD_DES MfCard_Header;
199 } MFCARD_RESOURCE, *PMFCARD_RESOURCE;
200
201 typedef struct _PCCARD_DES {
202 DWORD PCD_Count;
203 DWORD PCD_Type;
204 DWORD PCD_Flags;
205 BYTE PCD_ConfigIndex;
206 BYTE PCD_Reserved[3];
207 DWORD PCD_MemoryCardBase1;
208 DWORD PCD_MemoryCardBase2;
209 } PCCARD_DES, *PPCCARD_DES;
210
211 typedef struct _PCCARD_RESOURCE {
212 PCCARD_DES PcCard_Header;
213 } PCCARD_RESOURCE, *PPCARD_RESOURCE;
214
215 cpp_quote("#endif")
216
217 typedef struct _PNP_CONFLICT_ENTRY {
218 DWORD DeviceInstance;
219 DWORD DeviceFlags;
220 DWORD ResourceType;
221 __int64 ResourceStart;
222 __int64 ResourceEnd;
223 DWORD ResourceFlags;
224 } PNP_CONFLICT_ENTRY, *PPNP_CONFLICT_ENTRY;
225
226 typedef struct _PNP_CONFLICT_LIST {
227 DWORD Reserved1;
228 DWORD Reserved2;
229 DWORD ConflictsCounted;
230 DWORD ConflictsListed;
231 DWORD RequiredBufferSize;
232 PNP_CONFLICT_ENTRY ConflictEntry[1];
233 } PNP_CONFLICT_LIST, *PPNP_CONFLICT_LIST;
234
235 typedef struct _PNP_CONFLICT_STRINGS {
236 DWORD NullDeviceInstance;
237 WCHAR DeviceInstanceStrings[1];
238 } PNP_CONFLICT_STRINGS, *PPNP_CONFLICT_STRINGS;
239
240 typedef struct _DEVPROPKEY {
241 GUID fmtid;
242 DWORD pid;
243 } DEVPROPKEY;
244
245 typedef struct _HWPROFILEINFO {
246 DWORD HWPI_ulHWProfile;
247 WCHAR HWPI_szFriendlyName[80];
248 DWORD HWPI_dwFlags;
249 } HWPROFILEINFO;
250
251 [
252 uuid (809F4e40-A03D-11CE-8F69-08003E30051B),
253 version(1.0),
254 pointer_default(unique)
255 #ifndef __midl
256 ,explicit_handle
257 #endif
258 ]
259 interface pnp
260 {
261 /* Function 0 */
262 DWORD PNP_Disconnect(
263 [in] handle_t hBinding); /* FIXME */
264
265 /* Function 1 */
266 DWORD PNP_Connect(
267 [in] handle_t hBinding); /* FIXME */
268
269 /* Function 2 */
270 DWORD PNP_GetVersion(
271 [in] handle_t hBinding,
272 [out] WORD *pVersion);
273
274 /* Function 3 */
275 DWORD PNP_GetGlobalState(
276 [in] handle_t hBinding,
277 [out] DWORD *pulState,
278 [in] DWORD ulFlags);
279
280 /* Function 4 */
281 DWORD PNP_InitDetection(
282 [in] handle_t hBinding);
283
284 /* Function 5 */
285 DWORD PNP_ReportLogOn(
286 [in] handle_t hBinding,
287 [in] BOOL Admin,
288 [in] DWORD ProcessId);
289
290 /* Function 6 */
291 DWORD PNP_ValidateDeviceInstance(
292 [in] handle_t hBinding,
293 [in, string, ref] LPWSTR pDeviceID,
294 [in] DWORD ulFlags);
295
296 /* Function 7 */
297 DWORD PNP_GetRootDeviceInstance(
298 [in] handle_t hBinding,
299 [out, string, size_is(ulLength)] LPWSTR pDeviceID,
300 [in] PNP_RPC_STRING_LEN ulLength);
301
302 /* Function 8 */
303 cpp_quote("#define PNP_GET_PARENT_DEVICE_INSTANCE 0x1")
304 cpp_quote("#define PNP_GET_CHILD_DEVICE_INSTANCE 0x2")
305 cpp_quote("#define PNP_GET_SIBLING_DEVICE_INSTANCE 0x3")
306 DWORD PNP_GetRelatedDeviceInstance(
307 [in] handle_t hBinding,
308 [in] DWORD ulRelationship,
309 [in, string, ref] LPWSTR pDeviceID,
310 [out, string, size_is(*pulLength)] LPWSTR pRelatedDeviceId,
311 [in, out] PNP_RPC_STRING_LEN *pulLength,
312 [in] DWORD ulFlags);
313
314 /* Function 9 */
315 cpp_quote("#define PNP_ENUMERATOR_SUBKEYS 0x1")
316 cpp_quote("#define PNP_CLASS_SUBKEYS 0x2")
317 DWORD PNP_EnumerateSubKeys(
318 [in] handle_t hBinding,
319 [in] DWORD ulBranch,
320 [in] DWORD ulIndex,
321 [out, string, size_is(ulLength)] LPWSTR Buffer,
322 [in] PNP_RPC_STRING_LEN ulLength,
323 [out] PNP_RPC_STRING_LEN *pulRequiredLen,
324 [in] DWORD ulFlags);
325
326 /* Function 10 */
327 DWORD PNP_GetDeviceList(
328 [in] handle_t hBinding,
329 [in, string, unique] LPWSTR pszFilter,
330 [out, size_is(*pulLength), length_is(*pulLength)] LPWSTR Buffer,
331 [in, out] PNP_RPC_STRING_LEN *pulLength,
332 [in] DWORD ulFlags);
333
334 /* Function 11 */
335 DWORD PNP_GetDeviceListSize(
336 [in] handle_t hBinding,
337 [in, string, unique] LPWSTR pszFilter,
338 [out] PNP_RPC_BUFFER_SIZE *pulLen,
339 [in] DWORD ulFlags);
340
341 /* Function 12 */
342 DWORD PNP_GetDepth(
343 [in] handle_t hBinding,
344 [in, string, ref] LPWSTR pszDeviceID,
345 [out] DWORD *pulDepth,
346 [in] DWORD ulFlags);
347
348 /* Function 13 */
349 DWORD PNP_GetDeviceRegProp(
350 [in] handle_t hBinding,
351 [in, string, ref] LPWSTR pDeviceID,
352 [in] DWORD ulProperty,
353 [in, out] DWORD *pulRegDataType,
354 [out, size_is(*pulTransferLen), length_is(*pulTransferLen)] BYTE *Buffer,
355 [in, out] PNP_PROP_SIZE *pulTransferLen,
356 [in, out] PNP_PROP_SIZE *pulLength,
357 [in] DWORD ulFlags);
358
359 /* Function 14 */
360 DWORD PNP_SetDeviceRegProp(
361 [in] handle_t hBinding,
362 [in, string, ref] LPWSTR pDeviceId,
363 [in] DWORD ulProperty,
364 [in] DWORD ulDataType,
365 [in, size_is(ulLength)] BYTE *Buffer,
366 [in] PNP_PROP_SIZE ulLength,
367 [in] DWORD ulFlags);
368
369 /* Function 15 */
370 DWORD PNP_GetClassInstance(
371 [in] handle_t hBinding,
372 [in, string, ref] LPWSTR pDeviceId,
373 [out, string, size_is(ulLength)] LPWSTR pszClassInstance,
374 [in] PNP_RPC_STRING_LEN ulLength);
375
376 /* Function 16 */
377 DWORD PNP_CreateKey(
378 [in] handle_t hBinding,
379 [in, string, ref] LPWSTR pszSubKey,
380 [in] DWORD samDesired,
381 [in] DWORD ulFlags);
382
383 /* Function 17 */
384 DWORD PNP_DeleteRegistryKey(
385 [in] handle_t hBinding,
386 [in, string, ref] LPWSTR pszDeviceID,
387 [in, string, ref] LPWSTR pszParentKey,
388 [in, string, ref] LPWSTR pszChildKey,
389 [in] DWORD ulFlags);
390
391 /* Function 18 */
392 DWORD PNP_GetClassCount(
393 [in] handle_t hBinding,
394 [out] DWORD *pulClassCount,
395 [in] DWORD ulFlags);
396
397 /* Function 19 */
398 DWORD PNP_GetClassName(
399 [in] handle_t hBinding,
400 [in, string, ref] LPWSTR pszClassGuid,
401 [out, string, size_is(*pulLength)] LPWSTR Buffer,
402 [in, out] PNP_RPC_STRING_LEN *pulLength,
403 [in] DWORD ulFlags);
404
405 /* Function 20 */
406 DWORD PNP_DeleteClassKey(
407 [in] handle_t hBinding,
408 [in, string, ref] LPWSTR pszClassGuid,
409 [in] DWORD ulFlags);
410
411 /* Function 21 */
412 DWORD PNP_GetInterfaceDeviceAlias(
413 [in] handle_t hBinding,
414 [in, string, ref] LPWSTR pszInterfaceDevice,
415 [in] GUID *AliasInterfaceGuid,
416 [out, string, size_is(*pulTransferLen)] LPWSTR pszAliasInterfaceDevice,
417 [in, out] PNP_RPC_STRING_LEN *pulLength,
418 [in, out] PNP_RPC_STRING_LEN *pulTransferLen,
419 [in] DWORD ulFlags);
420
421 /* Function 22 */
422 DWORD PNP_GetInterfaceDeviceList(
423 [in] handle_t hBinding,
424 [in] GUID *InterfaceGuid,
425 [in, string, unique] LPWSTR pszDeviceID,
426 [out, size_is(*pulLength), length_is(*pulLength)] BYTE *Buffer,
427 [in, out] PNP_RPC_BUFFER_SIZE *pulLength,
428 [in] DWORD ulFlags);
429
430 /* Function 23 */
431 DWORD PNP_GetInterfaceDeviceListSize(
432 [in] handle_t hBinding,
433 [out] PNP_RPC_BUFFER_SIZE *pulLen,
434 [in] GUID *InterfaceGuid,
435 [in, string, unique] LPWSTR pszDeviceID,
436 [in] DWORD ulFlags);
437
438 /* Function 24 */
439 DWORD PNP_RegisterDeviceClassAssociation(
440 [in] handle_t hBinding,
441 [in, string, unique] LPWSTR pszDeviceID,
442 [in] GUID *InterfaceGuid,
443 [in, string, unique] LPWSTR pszReference,
444 [out, string, size_is(*pulTransferLen)] LPWSTR pszSymLink,
445 [in, out] PNP_RPC_STRING_LEN *pulLength,
446 [in, out] PNP_RPC_STRING_LEN *pulTransferLen,
447 [in] DWORD ulFlags);
448
449 /* Function 25 */
450 DWORD PNP_UnregisterDeviceClassAssociation(
451 [in] handle_t hBinding,
452 [in, string, unique] LPWSTR pszInterfaceDevice,
453 [in] DWORD ulFlags);
454
455 /* Function 26 */
456 DWORD PNP_GetClassRegProp(
457 [in] handle_t hBinding,
458 [in, string, ref] LPWSTR pszClassGuid,
459 [in] DWORD ulProperty,
460 [in, out] DWORD *pulRegDataType,
461 [out, size_is(*pulTransferLen), length_is(*pulTransferLen)] BYTE *Buffer,
462 [in, out] PNP_RPC_STRING_LEN *pulTransferLen,
463 [in, out] PNP_RPC_STRING_LEN *pulLength,
464 [in] DWORD ulFlags);
465
466 /* Function 27 */
467 DWORD PNP_SetClassRegProp(
468 [in] handle_t hBinding,
469 [in, string, ref] LPWSTR *pszClassGuid,
470 [in] DWORD ulProperty,
471 [in] DWORD ulDataType,
472 [in, size_is(ulLength)] BYTE *Buffer,
473 [in] PNP_PROP_SIZE ulLength,
474 [in] DWORD ulFlags);
475
476 /* Function 28 */
477 DWORD PNP_CreateDevInst(
478 [in] handle_t hBinding,
479 [in, out, string, size_is(ulLength)] LPWSTR pszDeviceID,
480 [in, string, ref] LPWSTR pszParentDeviceID,
481 [in] PNP_RPC_STRING_LEN ulLength,
482 [in] DWORD ulFlags);
483
484 /* Function 29 */
485 cpp_quote("#define PNP_DEVINST_MOVE 0x2")
486 cpp_quote("#define PNP_DEVINST_SETUP 0x3")
487 cpp_quote("#define PNP_DEVINST_ENABLE 0x4")
488 cpp_quote("#define PNP_DEVINST_DISABLE 0x5")
489 cpp_quote("#define PNP_DEVINST_REENUMERATE 0x7")
490 DWORD PNP_DeviceInstanceAction(
491 [in] handle_t hBinding,
492 [in] DWORD ulAction,
493 [in] DWORD ulFlags,
494 [in, string, unique] LPWSTR pszDeviceInstance1,
495 [in, string, unique] LPWSTR pszDeviceInstance2);
496
497 /* Function 30 */
498 DWORD PNP_GetDeviceStatus(
499 [in] handle_t hBinding,
500 [in, string, unique] LPWSTR pDeviceID,
501 [out] DWORD *pulStatus,
502 [out] DWORD *pulProblem,
503 [in] DWORD ulFlags);
504
505 /* Function 31 */
506 DWORD PNP_SetDeviceProblem(
507 [in] handle_t hBinding,
508 [in, string, unique] LPWSTR pDeviceID,
509 [in] DWORD ulProblem,
510 [in] DWORD ulFlags);
511
512 /* Function 32 */
513 DWORD PNP_DisableDevInst(
514 [in] handle_t hBinding,
515 [in, string, unique] LPWSTR pDeviceID,
516 [in, out, unique] PPNP_VETO_TYPE pVetoType,
517 [in, out, string, unique, size_is(ulNameLength)] LPWSTR pszVetoName,
518 [in] DWORD ulNameLength,
519 [in] DWORD ulFlags);
520
521 /* Function 33 */
522 DWORD PNP_UninstallDevInst(
523 [in] handle_t hBinding,
524 [in, string, unique] LPWSTR pDeviceID,
525 [in] DWORD ulFlags);
526
527 /* Function 34 */
528 DWORD PNP_AddID(
529 [in] handle_t hBinding,
530 [in, string, unique] LPWSTR pszDeviceID,
531 [in, string, ref] LPWSTR pszID,
532 [in] DWORD ulFlags);
533
534 /* Function 35 */
535 DWORD PNP_RegisterDriver(
536 [in] handle_t hBinding,
537 [in, string, ref] LPWSTR pszDeviceID,
538 [in] DWORD ulFlags);
539
540 /* Function 36 */
541 DWORD PNP_QueryRemove(
542 [in] handle_t hBinding,
543 [in, string, ref] LPWSTR pszDeviceID,
544 [in, out, unique] PPNP_VETO_TYPE pVetoType,
545 [in, out, string, unique, size_is(ulNameLength)] LPWSTR pszVetoName,
546 [in] DWORD ulNameLength,
547 [in] DWORD ulFlags);
548
549 /* Function 37 */
550 DWORD PNP_RequestDeviceEject(
551 [in] handle_t hBinding,
552 [in, string, ref] LPWSTR pszDeviceID,
553 [in, out, unique] PPNP_VETO_TYPE pVetoType,
554 [in, out, string, unique, size_is(ulNameLength)] LPWSTR pszVetoName,
555 [in] DWORD ulNameLength,
556 [in] DWORD ulFlags);
557
558 /* Function 38 */
559 DWORD PNP_IsDockStationPresent(
560 [in] handle_t hBinding,
561 [in, out, unique] BOOL *Present);
562
563 /* Function 39 */
564 DWORD PNP_RequestEjectPC(
565 [in] handle_t hBinding);
566
567 /* Function 40 */
568 cpp_quote("#define PNP_GET_HWPROFFLAGS 0x1")
569 cpp_quote("#define PNP_SET_HWPROFFLAGS 0x2")
570 DWORD PNP_HwProfFlags(
571 [in] handle_t hBinding,
572 [in] DWORD ulAction,
573 [in, string, ref] LPWSTR pDeviceID,
574 [in] DWORD ulConfig,
575 [in, out] DWORD *pulValue,
576 [in, out, unique] PPNP_VETO_TYPE pVetoType,
577 [in, out, string, unique, size_is(ulNameLength)] LPWSTR pszVetoName,
578 [in] DWORD ulNameLength,
579 [in] DWORD ulFlags);
580
581 /* Function 41 */
582 DWORD PNP_GetHwProfInfo(
583 [in] handle_t hBinding,
584 [in] DWORD ulIndex,
585 [in, out, ref] HWPROFILEINFO *pHWProfileInfo,
586 [in, range(0, 168)] DWORD ulProfileInfoSize,
587 /* FIXME: should be [in, range(0, sizeof(HWPROFILEINFO))] DWORD ulProfileInfoSize, */
588 [in] DWORD ulFlags);
589
590 /* Function 42 */
591 DWORD PNP_AddEmptyLogConf(
592 [in] handle_t hBinding,
593 [in, string, ref] LPWSTR pDeviceID,
594 [in] DWORD ulPriority,
595 [out] DWORD *pulLogConfTag,
596 [in] DWORD ulFlags);
597
598 /* Function 43 */
599 DWORD PNP_FreeLogConf(
600 [in] handle_t hBinding,
601 [in, string, ref] LPWSTR pDeviceID,
602 [in] DWORD ulLogConfType,
603 [in] DWORD ulLogConfTag,
604 [in] DWORD ulFlags);
605
606 /* Function 44 */
607 DWORD PNP_GetFirstLogConf(
608 [in] handle_t hBinding,
609 [in, string, ref] LPWSTR pDeviceID,
610 [in] DWORD ulLogConfType,
611 [out] DWORD *pulLogConfTag,
612 [in] DWORD ulFlags);
613
614 /* Function 45 */
615 DWORD PNP_GetNextLogConf(
616 [in] handle_t hBinding,
617 [in, string, ref] LPWSTR pDeviceID,
618 [in] DWORD ulLogConfType,
619 [in] DWORD ulCurrentTag,
620 [out] DWORD *pulNextTag,
621 [in] DWORD ulFlags);
622
623 /* Function 46 */
624 DWORD PNP_GetLogConfPriority(
625 [in] handle_t hBinding,
626 [in, string, ref] LPWSTR pDeviceID,
627 [in] DWORD ulType,
628 [in] DWORD ulTag,
629 [out] DWORD *pPriority,
630 [in] DWORD ulFlags);
631
632 /* Function 47 */
633 DWORD PNP_AddResDes(
634 [in] handle_t hBinding,
635 [in, string, ref] LPWSTR pDeviceID,
636 [in] DWORD ulLogConfTag,
637 [in] DWORD ulLogConfType,
638 [in] RESOURCEID ResourceID,
639 [out] DWORD *pulResourceTag,
640 [in, size_is(ResourceLen)] BYTE *ResourceData,
641 [in] PNP_RPC_BUFFER_SIZE ResourceLen,
642 [in] DWORD ulFlags);
643
644 /* Function 48 */
645 DWORD PNP_FreeResDes(
646 [in] handle_t hBinding,
647 [in, string, ref] LPWSTR pDeviceID,
648 [in] DWORD ulLogConfTag,
649 [in] DWORD ulLogConfType,
650 [in] RESOURCEID ResourceID,
651 [in] DWORD ulResourceTag,
652 [out] DWORD *pulPreviousResType,
653 [out] DWORD *pulPreviousResTag,
654 [in] DWORD ulFlags);
655
656 /* Function 49 */
657 DWORD PNP_GetNextResDes(
658 [in] handle_t hBinding,
659 [in, string, ref] LPWSTR pDeviceID,
660 [in] DWORD ulLogConfTag,
661 [in] DWORD ulLogConfType,
662 [in] RESOURCEID ResourceID,
663 [in] DWORD ulResourceTag,
664 [out] DWORD *pulNextResType,
665 [out] DWORD *pulNextResTag,
666 [in] DWORD ulFlags);
667
668 /* Function 50 */
669 DWORD PNP_GetResDesData(
670 [in] handle_t hBinding,
671 [in, string, ref] LPWSTR pDeviceID,
672 [in] DWORD ulLogConfTag,
673 [in] DWORD ulLogConfType,
674 [in] RESOURCEID ResourceID,
675 [in] DWORD ulResourceTag,
676 [out, size_is(BufferLen)] BYTE *Buffer,
677 [in] PNP_RPC_BUFFER_SIZE BufferLen,
678 [in] DWORD ulFlags);
679
680 /* Function 51 */
681 DWORD PNP_GetResDesDataSize(
682 [in] handle_t hBinding,
683 [in, string, ref] LPWSTR pDeviceID,
684 [in] DWORD ulLogConfTag,
685 [in] DWORD ulLogConfType,
686 [in] RESOURCEID ResourceID,
687 [in] DWORD ulResourceTag,
688 [out] DWORD *pulSize,
689 [in] DWORD ulFlags);
690
691 /* Function 52 */
692 DWORD PNP_ModifyResDes(
693 [in] handle_t hBinding,
694 [in, string, ref] LPWSTR pDeviceID,
695 [in] DWORD ulLogConfTag,
696 [in] DWORD ulLogConfType,
697 [in] RESOURCEID CurrentResourceID,
698 [in] RESOURCEID NewResourceID,
699 [in] DWORD ulResourceTag,
700 [in, size_is(ResourceLen)] BYTE *ResourceData,
701 [in] PNP_RPC_BUFFER_SIZE ResourceLen,
702 [in] DWORD ulFlags);
703
704 /* Function 53 */
705 DWORD PNP_DetectResourceConflict(
706 [in] handle_t hBinding,
707 [in, string, ref] LPWSTR pDeviceID,
708 [in] RESOURCEID ResourceID,
709 [in, size_is(ResourceLen)] BYTE *ResourceData,
710 [in] PNP_RPC_BUFFER_SIZE ResourceLen,
711 [out] BOOL *pbConflictDetected,
712 [in] DWORD ulFlags);
713
714 /* Function 54 */
715 DWORD PNP_QueryResConfList(
716 [in] handle_t hBinding,
717 [in, string, ref] LPWSTR pDeviceID,
718 [in] RESOURCEID ResourceID,
719 [in, size_is(ResourceLen)] BYTE *ResourceData,
720 [in] PNP_RPC_BUFFER_SIZE ResourceLen,
721 [out, size_is(BufferLen)] BYTE *Buffer,
722 [in] PNP_RPC_BUFFER_SIZE BufferLen,
723 [in] DWORD ulFlags);
724
725 /* Function 55 */
726 DWORD PNP_SetHwProf(
727 [in] handle_t hBinding,
728 [in] DWORD ulHardwareProfile,
729 [in] DWORD ulFlags);
730
731 /* Function 56 */
732 DWORD PNP_QueryArbitratorFreeData(
733 [in] handle_t hBinding);
734
735 /* Function 57 */
736 DWORD PNP_QueryArbitratorFreeSize(
737 [in] handle_t hBinding);
738
739 /* Function 58 */
740 DWORD PNP_RunDetection(
741 [in] handle_t hBinding,
742 [in] DWORD ulFlags);
743
744 /* Function 59 */
745 DWORD PNP_RegisterNotification(
746 [in] handle_t hBinding);
747
748 /* Function 60 */
749 DWORD PNP_UnregisterNotification(
750 [in] handle_t hBinding);
751
752 cpp_quote("#if _WIN32_WINNT >= 0x0501")
753
754 /* Function 61 */
755 DWORD PNP_GetCustomDevProp(
756 [in] handle_t hBinding,
757 [in, string, ref] LPWSTR pDeviceID,
758 [in, string, ref] LPWSTR CustomPropName,
759 [out] DWORD *pulRegDataType,
760 [out, size_is(*pulLength), length_is(*pulTransferLen)] BYTE *Buffer,
761 [out] PNP_RPC_STRING_LEN *pulTransferLen,
762 [in, out] PNP_RPC_STRING_LEN *pulLength,
763 [in] DWORD ulFlags);
764
765 /* Function 62 */
766 DWORD PNP_GetVersionInternal(
767 [in] handle_t hBinding,
768 [in, out] WORD *pwVersion);
769
770 /* Function 63 */
771 DWORD PNP_GetBlockedDriverInfo(
772 [in] handle_t hBinding,
773 [out, size_is(*pulLength), length_is(*pulTransferLen)] BYTE *Buffer,
774 [out] PNP_RPC_BUFFER_SIZE *pulTransferLen,
775 [in, out] PNP_RPC_BUFFER_SIZE *pulLength,
776 [in] DWORD ulFlags);
777
778 /* Function 64 */
779 DWORD PNP_GetServerSideDeviceInstallFlags(
780 [in] handle_t hBinding,
781 [out] DWORD *pulSSDIFlags,
782 [in] DWORD ulFlags);
783
784 cpp_quote("#if _WIN32_WINNT >= 0x0600")
785
786 /* Function 65 */
787 DWORD PNP_GetObjectPropKeys(
788 [in] handle_t hBinding,
789 [in, string, ref] LPWSTR ObjectName,
790 [in] DWORD ObjectType,
791 [in, string, unique] LPWSTR PropertyCultureName,
792 [in, out] PNP_PROP_COUNT *PropertyCount,
793 [out] PNP_PROP_COUNT *TransferLen,
794 [out, size_is(*PropertyCount), length_is(*TransferLen)] DEVPROPKEY *PropertyKeys,
795 [in] DWORD Flags);
796
797 /* Function 66 */
798 DWORD PNP_GetObjectProp(
799 [in] handle_t hBinding,
800 [in, string, ref] LPWSTR ObjectName,
801 [in] DWORD ObjectType,
802 [in, string, unique] LPWSTR PropertyCultureName,
803 [in] const DEVPROPKEY *PropertyKey,
804 [out] DEVPROPTYPE *PropertyType,
805 [in, out] PNP_PROP_SIZE *PropertySize,
806 [out] PNP_PROP_SIZE *TransferLen,
807 [out, size_is(*PropertySize), length_is(*TransferLen)] BYTE *PropertyBuffer,
808 [in] DWORD Flags);
809
810 /* Function 67 */
811 DWORD PNP_SetObjectProp(
812 [in] handle_t hBinding,
813 [in, string, ref] LPWSTR ObjectName,
814 [in] DWORD ObjectType,
815 [in, string, unique] LPWSTR PropertyCultureName,
816 [in] const DEVPROPKEY *PropertyKey,
817 [in] DEVPROPTYPE PropertyType,
818 [in] PNP_PROP_SIZE PropertySize,
819 [in, unique, size_is(PropertySize)] BYTE *PropertyBuffer,
820 [in] DWORD Flags);
821
822 /* Function 68 */
823 DWORD PNP_InstallDevInst(
824 [in] handle_t hBinding); /* FIXME */
825
826 /* Function 69 */
827 DWORD PNP_ApplyPowerSettings(
828 [in] handle_t hBinding); /* FIXME */
829
830 /* Function 70 */
831 DWORD PNP_DriverStoreAddDriverPackage(
832 [in] handle_t hBinding); /* FIXME */
833
834 /* Function 71 */
835 DWORD PNP_DriverStoreDeleteDriverPackage(
836 [in] handle_t hBinding); /* FIXME */
837
838 /* Function 72 */
839 DWORD PNP_RegisterServiceNotification(
840 [in] handle_t hBinding); /* FIXME */
841
842 /* Function 73 */
843 DWORD PNP_SetActiveService(
844 [in] handle_t hBinding); /* FIXME */
845
846 /* Function 74 */
847 DWORD PNP_DeleteServiceDevices(
848 [in] handle_t hBinding); /* FIXME */
849
850 cpp_quote("#endif /* WIN32_WINNT >= 0x0600 */")
851 cpp_quote("#endif /* WIN32_WINNT >= 0x0501 */")
852
853 }