IPortClsPnp::RegisterAdapterPnpManagement method

The RegisterAdapterPowerManagement method registers the PnP management interface of the adapter with PortCls.

Syntax

NTSTATUS RegisterAdapterPnpManagement(
  PUNKNOWN       pUnknown,
  PDEVICE_OBJECT DeviceObject
);

Parameters

pUnknown

Specifies a pointer to IUnknown of IAdapterPnpManagement.

DeviceObject

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

Return value

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

Remarks

When the RegisterAdapterPowerManagement method registers the PnP management interface for the adapter with PortCls, it allows the adapter driver to be notified of PnP state change events.

For more information, see Implement PnP Rebalance for PortCls Audio Drivers.

Requirements

   
Minimum supported client Available in Windows 10, version 1511 and later versions of Windows.
Target Platform Universal
Header portcls.h (include Portcls.h)
IRQL PASSIVE_LEVEL

See also

IPortClsPnp

IPortClsPower::UnregisterAdapterPowerManagement