IPortClsPower::RegisterAdapterPowerManagement method

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

Syntax

NTSTATUS RegisterAdapterPowerManagement(
  PUNKNOWN       _pUnknown,
  PDEVICE_OBJECT _DeviceObject
);

Parameters

_pUnknown

Specifies a pointer to IUnknown. . PortCls queries this IUnknown object for the IAdapterPowerManagement or the IAdapterPowerManagement2 interface of the adapter.

_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 power management interface for the adapter with PortCls, it allows the adapter driver to be notified of power state change events.

Requirements

   
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

IAdapterPowerManagement

IAdapterPowerManagement2

IPortClsPower