IAdapterPowerManagement2::PowerChangeState2 method (portcls.h)

Portcls calls the IAdapterPowerManagement2::PowerChangeState2 method to request a change to the new power state. This request is passed on to the adapter driver.

Syntax

void PowerChangeState2(
  [in] DEVICE_POWER_STATE NewDeviceState,
  [in] SYSTEM_POWER_STATE NewSystemState
);

Parameters

[in] NewDeviceState

Specifies the new power state that Portcls has requested for the device. This parameter is an enumeration of type DEVICE_POWER_STATE.

[in] NewSystemState

Specifies the new power state that Portcls has requested for the system. This parameter is an enumeration of type SYSTEM_POWER_STATE.

Return value

None

Remarks

A power state indicates the level of power consumption of a device or system. As a result, the level of computing activity is directly affected by the power state of a device or system.

For more information about system power states, see Handling System Power State Requests. For more information about device power states, see Managing Power for Individual Devices.

Requirements

Requirement Value
Minimum supported client Available in Windows 7 and later versions of Windows.
Target Platform Universal
Header portcls.h (include Portcls.h)

See also

DEVICE_POWER_STATE

Handling System Power State Requests

IAdapterPowerManagement2

Managing Power for Individual Devices

SYSTEM_POWER_STATE