IPortClsPower::RegisterAdapterPowerManagement method (portcls.h)

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

Syntax

NTSTATUS RegisterAdapterPowerManagement(
  [in] PUNKNOWN       _pUnknown,
  [in] PDEVICE_OBJECT _DeviceObject
);

Parameters

[in] _pUnknown

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

[in] _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

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

IAdapterPowerManagement

IAdapterPowerManagement2

IPortClsPower