IPortWMIRegistration::RegisterWMIProvider method (portcls.h)

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

Syntax

NTSTATUS RegisterWMIProvider(
  [in] PDEVICE_OBJECT unnamedParam1,
  [in] PVOID          unnamedParam2
);

Parameters

[in] unnamedParam1

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

[in] unnamedParam2

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

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

Requirement Value
Minimum supported client Available in Windows 7 and later versions of Windows.
Target Platform Universal
Header portcls.h (include Portcls.h)
IRQL PASSIVE_LEVEL.

See also

DEVICE_OBJECT

Event Tracing for Windows

IPortWMIRegistration

Improve Debugging And Performance Tuning With ETW

WMILIB_CONTEXT