Expand Minimize

IoWMIDeviceObjectToProviderId routine

The IoWMIDeviceObjectToProviderId routine translates the specified device object into the corresponding WMI Provider ID.

Syntax


ULONG IoWMIDeviceObjectToProviderId(
  _In_  PDEVICE_OBJECT DeviceObject
);

Parameters

DeviceObject [in]

Pointer to a device object.

Return value

IoWMIDeviceObjectToProviderId returns the WMI Provider ID associated with the specified device object.

Remarks

IoWMIDeviceObjectToProviderId should be used when filling in the ProviderId member of the WNODE_HEADER structure in those cases when the WNODEHEADER structure is being initialized as part of a WNODE_EVENT_ITEM or WNODE_EVENT_REFERENCE structure. (If the WNODE_HEADER is being used for other purposes, ProviderId is reserved.)

When running on a 32-bit operating system, the provider ID and the device object are identical. When running on a 64-bit operating system, IoWMIDeviceObjectToProviderId will convert the 64-bit device object to a 32-bit provider ID.

Requirements

Version

Available starting with Windows 2000.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

<= DISPATCH_LEVEL

See also

WNODE_HEADER
WNODE_EVENT_ITEM
WNODE_EVENT_REFERENCE

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft