PcRegisterAdapterPowerManagement function (portcls.h)

The PcRegisterAdapterPowerManagement function registers the adapter's power-management interface with the PortCls system driver.

Syntax

PORTCLASSAPI NTSTATUS PcRegisterAdapterPowerManagement(
       PUNKNOWN Unknown,
  [in] PVOID    pvContext1
);

Parameters

Unknown

Pointer to an adapter driver object's IUnknown interface. The PortCls system driver queries this object for its IAdapterPowerManagement interface.

[in] pvContext1

Pointer to the adapter's functional device object (FDO). This parameter is a pointer to a system structure of type DEVICE_OBJECT but is cast to type PVOID.

Return value

PcRegisterAdapterPowerManagement returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an appropriate error code.

Requirements

Requirement Value
Minimum supported client Available starting in Windows 2000.
Target Platform Universal
Header portcls.h (include Portcls.h)
Library Portcls.lib
IRQL PASSIVE_LEVEL

See also

DEVICE_OBJECT

IAdapterPowerManagement