42typedef enum _PNP_VETO_TYPE {
43 PNP_VetoTypeUnknown = 0,
44 PNP_VetoLegacyDevice = 1,
45 PNP_VetoPendingClose = 2,
46 PNP_VetoWindowsApp = 3,
47 PNP_VetoWindowsService = 4,
48 PNP_VetoOutstandingOpen = 5,
51 PNP_VetoIllegalDeviceRequest = 8,
52 PNP_VetoInsufficientPower = 9,
53 PNP_VetoNonDisableable = 10,
54 PNP_VetoLegacyDriver = 11,
55 PNP_VetoInsufficientRights = 12,
56} PNP_VETO_TYPE, *PPNP_VETO_TYPE;
62typedef struct _BUSNUMBER_DES {
66 DWORD BUSD_Alloc_Base;
68} BUSNUMBER_DES, *PBUSNUMBER_DES;
70typedef struct _BUSNUMBER_RANGE {
73 DWORD BUSR_nBusNumbers;
75} BUSNUMBER_RANGE, *PBUSNUMBER_RANGE;
77typedef struct _BUSNUMBER_RESOURCE {
78 BUSNUMBER_DES BusNumber_Header;
79 BUSNUMBER_RANGE BusNumber_Data[1];
80} BUSNUMBER_RESOURCE, *PBUSNUMBER_RESOURCE;
82typedef struct _CS_DES {
83 DWORD CSD_SignatureLength;
84 DWORD CSD_LegacyDataOffset;
85 DWORD CSD_LegacyDataSize;
88 BYTE CSD_Signature[1];
91typedef struct _CS_RESOURCE {
93} CS_RESOURCE, *PCS_RESOURCE;
95typedef struct _DEVPRIVATE_DES {
102} DEVPRIVATE_DES, *PDEVPRIVATE_DES;
104typedef struct _DEVPRIVATE_RANGE {
108} DEVPRIVATE_RANGE, *PDEVPRIVATE_RANGE;
110typedef struct _DEVPRIVATE_RESOURCE {
111 DEVPRIVATE_DES PRV_Header;
112 DEVPRIVATE_RANGE PRV_Data[1];
113} DEVPRIVATE_RESOURCE, *PDEVPRIVATE_RESOURCE;
115typedef struct _DMA_DES {
119 unsigned long DD_Alloc_Chan;
122typedef struct _DMA_RANGE {
126} DMA_RANGE, *PDMA_RANGE;
128typedef struct _DMA_RESOURCE {
130 DMA_RANGE DMA_Data[1];
131} DMA_RESOURCE, *PDMA_RESOURCE;
133typedef struct _IO_DES {
136 unsigned __int64 IOD_AllocBase;
137 unsigned __int64 IOD_AllocEnd;
141typedef struct _IO_RANGE {
142 unsigned __int64 IOR_Align;
144 unsigned __int64 IOR_Min;
145 unsigned __int64 IOR_Max;
146 DWORD IOR_RangeFlags;
147 unsigned __int64 IOR_Alias;
148} IO_RANGE, *PIO_RANGE;
150typedef struct _IO_RESOURCE {
153} IO_RESOURCE, *PIO_RESOURCE;
155typedef struct _IRQ_DES {
159 DWORD IRQD_Alloc_Num;
163typedef struct _IRQ_RANGE {
167} IRQ_RANGE, *PIRQ_RANGE;
169typedef struct _IRQ_RESOURCE {
171 IRQ_RANGE IO_Data[1];
172} IRQ_RESOURCE, *PIRQ_RESOURCE;
174typedef struct _MEM_DES {
177 unsigned __int64 MD_Alloc_Base;
178 unsigned __int64 MD_Alloc_End;
183typedef struct _MEM_RANGE {
190} MEM_RANGE, *PMEM_RANGE;
192typedef struct _MEM_RESOURCE {
194 MEM_RANGE MEM_Data[1];
195} MEM_RESOURCE, *PMEM_RESOURCE;
197typedef struct _MFCARD_DES {
201 BYTE PMF_ConfigOptions;
202 BYTE PMF_IoResourceIndex;
203 BYTE PMF_Reserved[2];
204 DWORD PMF_ConfigRegisterBase;
205} MFCARD_DES, *PMFCARD_DES;
207typedef struct _MFCARD_RESOURCE {
208 MFCARD_DES MfCard_Header;
209} MFCARD_RESOURCE, *PMFCARD_RESOURCE;
211typedef struct _PCCARD_DES {
215 BYTE PCD_ConfigIndex;
216 BYTE PCD_Reserved[3];
217 DWORD PCD_MemoryCardBase1;
218 DWORD PCD_MemoryCardBase2;
219} PCCARD_DES, *PPCCARD_DES;
221typedef struct _PCCARD_RESOURCE {
222 PCCARD_DES PcCard_Header;
223} PCCARD_RESOURCE, *PPCARD_RESOURCE;
227typedef struct _PNP_CONFLICT_ENTRY {
228 DWORD DeviceInstance;
231 __int64 ResourceStart;
234} PNP_CONFLICT_ENTRY, *PPNP_CONFLICT_ENTRY;
236typedef struct _PNP_CONFLICT_LIST {
239 DWORD ConflictsCounted;
240 DWORD ConflictsListed;
241 DWORD RequiredBufferSize;
242 PNP_CONFLICT_ENTRY ConflictEntry[1];
243} PNP_CONFLICT_LIST, *PPNP_CONFLICT_LIST;
245typedef struct _PNP_CONFLICT_STRINGS {
246 DWORD NullDeviceInstance;
247 WCHAR DeviceInstanceStrings[1];
248} PNP_CONFLICT_STRINGS, *PPNP_CONFLICT_STRINGS;
250typedef struct _DEVPROPKEY {
256 uuid (8D9F4E40-A03D-11CE-8F69-08003E30051B),
258 pointer_default(unique),
259 endpoint("ncacn_np:[\\pipe\\plugplay]")
270 [in] handle_t hBinding); /* FIXME */
276 [in] handle_t hBinding); /* FIXME */
282 [in] handle_t hBinding,
283 [out] WORD *pVersion);
289 [in] handle_t hBinding,
290 [out] DWORD *pulState,
297 [in] handle_t hBinding);
303 [in] handle_t hBinding,
305 [in] DWORD ProcessId);
310 PNP_ValidateDeviceInstance(
311 [in] handle_t hBinding,
312 [in, string, ref] LPWSTR pDeviceID,
318 PNP_GetRootDeviceInstance(
319 [in] handle_t hBinding,
320 [out, string, size_is(ulLength)] LPWSTR pDeviceID,
321 [in] PNP_RPC_STRING_LEN ulLength);
324 cpp_quote("#define PNP_GET_PARENT_DEVICE_INSTANCE 0x1")
325 cpp_quote("#define PNP_GET_CHILD_DEVICE_INSTANCE 0x2")
326 cpp_quote("#define PNP_GET_SIBLING_DEVICE_INSTANCE 0x3")
329 PNP_GetRelatedDeviceInstance(
330 [in] handle_t hBinding,
331 [in] DWORD ulRelationship,
332 [in, string, ref] LPWSTR pDeviceID,
333 [out, string, size_is(*pulLength)] LPWSTR pRelatedDeviceId,
334 [in, out] PNP_RPC_STRING_LEN *pulLength,
338 cpp_quote("#define PNP_ENUMERATOR_SUBKEYS 0x1")
339 cpp_quote("#define PNP_CLASS_SUBKEYS 0x2")
342 PNP_EnumerateSubKeys(
343 [in] handle_t hBinding,
346 [out, string, size_is(ulLength)] LPWSTR Buffer,
347 [in] PNP_RPC_STRING_LEN ulLength,
348 [out] PNP_RPC_STRING_LEN *pulRequiredLen,
355 [in] handle_t hBinding,
356 [in, string, unique] LPWSTR pszFilter,
357 [out, size_is(*pulLength), length_is(*pulLength)] LPWSTR Buffer,
358 [in, out] PNP_RPC_STRING_LEN *pulLength,
364 PNP_GetDeviceListSize(
365 [in] handle_t hBinding,
366 [in, string, unique] LPWSTR pszFilter,
367 [out] PNP_RPC_BUFFER_SIZE *pulLen,
374 [in] handle_t hBinding,
375 [in, string, ref] LPWSTR pszDeviceID,
376 [out] DWORD *pulDepth,
382 PNP_GetDeviceRegProp(
383 [in] handle_t hBinding,
384 [in, string, ref] LPWSTR pDeviceID,
385 [in] DWORD ulProperty,
386 [in, out] DWORD *pulRegDataType,
387 [out, size_is(*pulTransferLen), length_is(*pulTransferLen)] BYTE *Buffer,
388 [in, out] PNP_PROP_SIZE *pulTransferLen,
389 [in, out] PNP_PROP_SIZE *pulLength,
395 PNP_SetDeviceRegProp(
396 [in] handle_t hBinding,
397 [in, string, ref] LPWSTR pDeviceId,
398 [in] DWORD ulProperty,
399 [in] DWORD ulDataType,
400 [in, size_is(ulLength)] BYTE *Buffer,
401 [in] PNP_PROP_SIZE ulLength,
407 PNP_GetClassInstance(
408 [in] handle_t hBinding,
409 [in, string, ref] LPWSTR pDeviceId,
410 [out, string, size_is(ulLength)] LPWSTR pszClassInstance,
411 [in] PNP_RPC_STRING_LEN ulLength);
417 [in] handle_t hBinding,
418 [in, string, ref] LPWSTR pszSubKey,
419 [in] DWORD samDesired,
425 PNP_DeleteRegistryKey(
426 [in] handle_t hBinding,
427 [in, string, ref] LPWSTR pszDeviceID,
428 [in, string, ref] LPWSTR pszParentKey,
429 [in, string, ref] LPWSTR pszChildKey,
436 [in] handle_t hBinding,
437 [out] DWORD *pulClassCount,
444 [in] handle_t hBinding,
445 [in, string, ref] LPWSTR pszClassGuid,
446 [out, string, size_is(*pulLength)] LPWSTR Buffer,
447 [in, out] PNP_RPC_STRING_LEN *pulLength,
454 [in] handle_t hBinding,
455 [in, string, ref] LPWSTR pszClassGuid,
461 PNP_GetInterfaceDeviceAlias(
462 [in] handle_t hBinding,
463 [in, string, ref] LPWSTR pszInterfaceDevice,
464 [in] GUID *AliasInterfaceGuid,
465 [out, string, size_is(*pulTransferLen)] LPWSTR pszAliasInterfaceDevice,
466 [in, out] PNP_RPC_STRING_LEN *pulLength,
467 [in, out] PNP_RPC_STRING_LEN *pulTransferLen,
473 PNP_GetInterfaceDeviceList(
474 [in] handle_t hBinding,
475 [in] GUID *InterfaceGuid,
476 [in, string, unique] LPWSTR pszDeviceID,
477 [out, size_is(*pulLength), length_is(*pulLength)] BYTE *Buffer,
478 [in, out] PNP_RPC_BUFFER_SIZE *pulLength,
484 PNP_GetInterfaceDeviceListSize(
485 [in] handle_t hBinding,
486 [out] PNP_RPC_BUFFER_SIZE *pulLen,
487 [in] GUID *InterfaceGuid,
488 [in, string, unique] LPWSTR pszDeviceID,
494 PNP_RegisterDeviceClassAssociation(
495 [in] handle_t hBinding,
496 [in, string, unique] LPWSTR pszDeviceID,
497 [in] GUID *InterfaceGuid,
498 [in, string, unique] LPWSTR pszReference,
499 [out, string, size_is(*pulTransferLen)] LPWSTR pszSymLink,
500 [in, out] PNP_RPC_STRING_LEN *pulLength,
501 [in, out] PNP_RPC_STRING_LEN *pulTransferLen,
507 PNP_UnregisterDeviceClassAssociation(
508 [in] handle_t hBinding,
509 [in, string, unique] LPWSTR pszInterfaceDevice,
516 [in] handle_t hBinding,
517 [in, string, ref] LPWSTR pszClassGuid,
518 [in] DWORD ulProperty,
519 [in, out] DWORD *pulRegDataType,
520 [out, size_is(*pulTransferLen), length_is(*pulTransferLen)] BYTE *Buffer,
521 [in, out] PNP_RPC_STRING_LEN *pulTransferLen,
522 [in, out] PNP_RPC_STRING_LEN *pulLength,
529 [in] handle_t hBinding,
530 [in, string, ref] LPWSTR pszClassGuid,
531 [in] DWORD ulProperty,
532 [in] DWORD ulDataType,
533 [in, size_is(ulLength)] BYTE *Buffer,
534 [in] PNP_PROP_SIZE ulLength,
541 [in] handle_t hBinding,
542 [in, out, string, size_is(ulLength)] LPWSTR pszDeviceID,
543 [in, string, ref] LPWSTR pszParentDeviceID,
544 [in] PNP_RPC_STRING_LEN ulLength,
548 cpp_quote("#define PNP_DEVINST_MOVE 0x2")
549 cpp_quote("#define PNP_DEVINST_SETUP 0x3")
550 cpp_quote("#define PNP_DEVINST_ENABLE 0x4")
551 cpp_quote("#define PNP_DEVINST_DISABLE 0x5")
552 cpp_quote("#define PNP_DEVINST_REENUMERATE 0x7")
555 PNP_DeviceInstanceAction(
556 [in] handle_t hBinding,
557 [in] DWORD ulMajorAction,
558 [in] DWORD ulMinorAction,
559 [in, string, unique] LPWSTR pszDeviceInstance1,
560 [in, string, unique] LPWSTR pszDeviceInstance2);
566 [in] handle_t hBinding,
567 [in, string, unique] LPWSTR pDeviceID,
568 [out] DWORD *pulStatus,
569 [out] DWORD *pulProblem,
575 PNP_SetDeviceProblem(
576 [in] handle_t hBinding,
577 [in, string, unique] LPWSTR pDeviceID,
578 [in] DWORD ulProblem,
585 [in] handle_t hBinding,
586 [in, string, unique] LPWSTR pDeviceID,
587 [in, out, unique] PPNP_VETO_TYPE pVetoType,
588 [in, out, string, unique, size_is(ulNameLength)] LPWSTR pszVetoName,
589 [in] DWORD ulNameLength,
595 PNP_UninstallDevInst(
596 [in] handle_t hBinding,
597 [in, string, unique] LPWSTR pDeviceID,
604 [in] handle_t hBinding,
605 [in, string, unique] LPWSTR pszDeviceID,
606 [in, string, ref] LPWSTR pszID,
613 [in] handle_t hBinding,
614 [in, string, ref] LPWSTR pszDeviceID,
621 [in] handle_t hBinding,
622 [in, string, ref] LPWSTR pszDeviceID,
623 [in, out, unique] PPNP_VETO_TYPE pVetoType,
624 [in, out, string, unique, size_is(ulNameLength)] LPWSTR pszVetoName,
625 [in] DWORD ulNameLength,
631 PNP_RequestDeviceEject(
632 [in] handle_t hBinding,
633 [in, string, ref] LPWSTR pszDeviceID,
634 [in, out, unique] PPNP_VETO_TYPE pVetoType,
635 [in, out, string, unique, size_is(ulNameLength)] LPWSTR pszVetoName,
636 [in] DWORD ulNameLength,
642 PNP_IsDockStationPresent(
643 [in] handle_t hBinding,
644 [in, out, unique] BOOL *Present);
650 [in] handle_t hBinding);
653 cpp_quote("#define PNP_GET_HWPROFFLAGS 0x1")
654 cpp_quote("#define PNP_SET_HWPROFFLAGS 0x2")
658 [in] handle_t hBinding,
660 [in, string, ref] LPWSTR pDeviceID,
662 [in, out] DWORD *pulValue,
663 [in, out, unique] PPNP_VETO_TYPE pVetoType,
664 [in, out, string, unique, size_is(ulNameLength)] LPWSTR pszVetoName,
665 [in] DWORD ulNameLength,
672 [in] handle_t hBinding,
674 [in, out, ref] HWPROFILEINFO *pHWProfileInfo,
675 [in, range(0, 168)] DWORD ulProfileInfoSize,
676 /* FIXME: should be [in, range(0, sizeof(HWPROFILEINFO))] DWORD ulProfileInfoSize, */
683 [in] handle_t hBinding,
684 [in, string, ref] LPWSTR pDeviceID,
685 [in] DWORD ulPriority,
686 [out] DWORD *pulLogConfTag,
693 [in] handle_t hBinding,
694 [in, string, ref] LPWSTR pDeviceID,
695 [in] DWORD ulLogConfType,
696 [in] DWORD ulLogConfTag,
703 [in] handle_t hBinding,
704 [in, string, ref] LPWSTR pDeviceID,
705 [in] DWORD ulLogConfType,
706 [out] DWORD *pulLogConfTag,
713 [in] handle_t hBinding,
714 [in, string, ref] LPWSTR pDeviceID,
715 [in] DWORD ulLogConfType,
716 [in] DWORD ulCurrentTag,
717 [out] DWORD *pulNextTag,
723 PNP_GetLogConfPriority(
724 [in] handle_t hBinding,
725 [in, string, ref] LPWSTR pDeviceID,
728 [out] DWORD *pPriority,
735 [in] handle_t hBinding,
736 [in, string, ref] LPWSTR pDeviceID,
737 [in] DWORD ulLogConfTag,
738 [in] DWORD ulLogConfType,
739 [in] RESOURCEID ResourceID,
740 [out] DWORD *pulResourceTag,
741 [in, size_is(ResourceLen)] BYTE *ResourceData,
742 [in] PNP_RPC_BUFFER_SIZE ResourceLen,
749 [in] handle_t hBinding,
750 [in, string, ref] LPWSTR pDeviceID,
751 [in] DWORD ulLogConfTag,
752 [in] DWORD ulLogConfType,
753 [in] RESOURCEID ResourceID,
754 [in] DWORD ulResourceTag,
755 [out] DWORD *pulPreviousResType,
756 [out] DWORD *pulPreviousResTag,
763 [in] handle_t hBinding,
764 [in, string, ref] LPWSTR pDeviceID,
765 [in] DWORD ulLogConfTag,
766 [in] DWORD ulLogConfType,
767 [in] RESOURCEID ResourceID,
768 [in] DWORD ulResourceTag,
769 [out] DWORD *pulNextResType,
770 [out] DWORD *pulNextResTag,
777 [in] handle_t hBinding,
778 [in, string, ref] LPWSTR pDeviceID,
779 [in] DWORD ulLogConfTag,
780 [in] DWORD ulLogConfType,
781 [in] RESOURCEID ResourceID,
782 [in] DWORD ulResourceTag,
783 [out, size_is(BufferLen)] BYTE *Buffer,
784 [in] PNP_RPC_BUFFER_SIZE BufferLen,
790 PNP_GetResDesDataSize(
791 [in] handle_t hBinding,
792 [in, string, ref] LPWSTR pDeviceID,
793 [in] DWORD ulLogConfTag,
794 [in] DWORD ulLogConfType,
795 [in] RESOURCEID ResourceID,
796 [in] DWORD ulResourceTag,
797 [out] DWORD *pulSize,
804 [in] handle_t hBinding,
805 [in, string, ref] LPWSTR pDeviceID,
806 [in] DWORD ulLogConfTag,
807 [in] DWORD ulLogConfType,
808 [in] RESOURCEID CurrentResourceID,
809 [in] RESOURCEID NewResourceID,
810 [in] DWORD ulResourceTag,
811 [in, size_is(ResourceLen)] BYTE *ResourceData,
812 [in] PNP_RPC_BUFFER_SIZE ResourceLen,
818 PNP_DetectResourceConflict(
819 [in] handle_t hBinding,
820 [in, string, ref] LPWSTR pDeviceID,
821 [in] RESOURCEID ResourceID,
822 [in, size_is(ResourceLen)] BYTE *ResourceData,
823 [in] PNP_RPC_BUFFER_SIZE ResourceLen,
824 [out] BOOL *pbConflictDetected,
830 PNP_QueryResConfList(
831 [in] handle_t hBinding,
832 [in, string, ref] LPWSTR pDeviceID,
833 [in] RESOURCEID ResourceID,
834 [in, size_is(ResourceLen)] BYTE *ResourceData,
835 [in] PNP_RPC_BUFFER_SIZE ResourceLen,
836 [out, size_is(BufferLen)] BYTE *Buffer,
837 [in] PNP_RPC_BUFFER_SIZE BufferLen,
844 [in] handle_t hBinding,
845 [in] DWORD ulHardwareProfile,
851 PNP_QueryArbitratorFreeData(
852 [in] handle_t hBinding,
853 [out, size_is(DataLen)] BYTE *pData,
855 [in, string, ref] LPWSTR pDeviceID,
856 [in] RESOURCEID ResourceID,
862 PNP_QueryArbitratorFreeSize(
863 [in] handle_t hBinding,
864 [out] DWORD *pulSize,
865 [in, string, ref] LPWSTR pDeviceID,
866 [in] RESOURCEID ResourceID,
873 [in] handle_t hBinding,
879 PNP_RegisterNotification(
880 [in] handle_t hBinding,
881 [in] DWORD_PTR hRecipient,
882 [in, string, ref] LPWSTR pszName,
883 [in, size_is(ulNotificationFilterSize)] BYTE *pNotificationFilter,
884 [in] DWORD ulNotificationFilterSize,
886 [out] PPNP_NOTIFY_HANDLE pNotifyHandle,
887 [in] DWORD ulProcessId,
888 [in] DWORD *pulUnknown9);
893 PNP_UnregisterNotification(
894 [in] handle_t hBinding,
895 [in, out] PPNP_NOTIFY_HANDLE pNotifyHandle);
897cpp_quote("#if _WIN32_WINNT >= 0x0501")
902 PNP_GetCustomDevProp(
903 [in] handle_t hBinding,
904 [in, string, ref] LPWSTR pDeviceID,
905 [in, string, ref] LPWSTR CustomPropName,
906 [out] DWORD *pulRegDataType,
907 [out, size_is(*pulLength), length_is(*pulTransferLen)] BYTE *Buffer,
908 [out] PNP_RPC_STRING_LEN *pulTransferLen,
909 [in, out] PNP_RPC_STRING_LEN *pulLength,
915 PNP_GetVersionInternal(
916 [in] handle_t hBinding,
917 [in, out] WORD *pwVersion);
922 PNP_GetBlockedDriverInfo(
923 [in] handle_t hBinding,
924 [out, size_is(*pulLength), length_is(*pulTransferLen)] BYTE *Buffer,
925 [out] PNP_RPC_BUFFER_SIZE *pulTransferLen,
926 [in, out] PNP_RPC_BUFFER_SIZE *pulLength,
932 PNP_GetServerSideDeviceInstallFlags(
933 [in] handle_t hBinding,
934 [out] DWORD *pulSSDIFlags,
937 /* Functions 65 to 74 are Vista+, see r63565 */
CD3D10_BUFFER_DESC D3D10_BUFFER_DESC cpp_quote(" ~CD3D10_BUFFER_DESC() {}") operator const D3D10_BUFFER_DESC &() const
const unsigned long PNP_MAX_CULTURE_NAME_LEN
const unsigned long PNP_MAX_CM_PATH
unsigned long PNP_PROP_COUNT
const unsigned long PNP_MAX_DEVICE_ID_LEN
PNP_RPC_STRING_LEN * PPNP_RPC_STRING_LEN
struct _HWPROFILEINFO HWPROFILEINFO
const unsigned long PNP_MAX_GUID_STRING_LEN
PNP_PROP_COUNT * PPNP_PROP_COUNT
PNP_RPC_BUFFER_SIZE * PPNP_RPC_BUFFER_SIZE
unsigned long PNP_RPC_BUFFER_SIZE
const unsigned long PNP_MAX_STRING_LEN
PNP_PROP_SIZE * PPNP_PROP_SIZE
unsigned long PNP_RPC_STRING_LEN
PNP_NOTIFY_HANDLE * PPNP_NOTIFY_HANDLE
const unsigned long PNP_MAX_PROP_COUNT
const unsigned long PNP_MAX_DEVINTERFACE_LEN
const unsigned long PNP_MAX_BUFFER_SIZE
const unsigned long PNP_MAX_PROP_SIZE
unsigned long PNP_PROP_SIZE