IPortWMIRegistration::UnregisterWMIProvider method (portcls.h)

The UnregisterWMIProvider method unregisters the Event Tracing for Windows (ETW) interface that was previously registered with a call to the RegisterWMIProvider method. The unregistration disables the ETW registration with PortCls.

Syntax

NTSTATUS UnregisterWMIProvider(
  [in] PDEVICE_OBJECT unnamedParam1
);

Parameters

[in] unnamedParam1

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

Return value

The UnregisterWMIProvider method returns STATUS_SUCCESS if the call is successful. Otherwise, it returns the appropriate error message.

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