IPortWMIRegistration::RegisterWMIProvider method

The RegisterWMIProvider method registers the Event Tracing for Windows (ETW) capability of the miniport driver with PortCls.

Syntax


NTSTATUS RegisterWMIProvider(
  [in]  pDeviceObject pDeviceObject,
  [in]  MiniportWmiContext MiniportWmiContext
);

Parameters

pDeviceObject [in]

Specifies a pointer to a DEVICE_OBJECT structure that represents the functional device object of the adapter driver.

MiniportWmiContext [in]

Specifies a pointer to a WMILIB_CONTEXT structure that provides registration information for a driver's data blocks and event blocks.

Return value

The RegisterWMIProvider method returns STATUS_SUCCESS if the call is successful. Otherwise, it returns an appropriate error code.

Remarks

For more information about ETW, see Improve Debugging And Performance Tuning With ETW.

Requirements

Version

Available in Windows 7 and later versions of Windows.

Header

Portcls.h (include Portcls.h)

IRQL

PASSIVE_LEVEL.

See also

DEVICE_OBJECT
Event Tracing for Windows
Improve Debugging And Performance Tuning With ETW
WMILIB_CONTEXT

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft