Portcls calls the
IAdapterPowerManagement2::PowerChangeState2 method to request a change to the new power state. This request is passed on to the adapter driver.
void PowerChangeState2( DEVICE_POWER_STATE NewDeviceState, SYSTEM_POWER_STATE NewSystemState );
Specifies the new power state that Portcls has requested for the device. This parameter is an enumeration of type DEVICE_POWER_STATE.
Specifies the new power state that Portcls has requested for the system. This parameter is an enumeration of type SYSTEM_POWER_STATE.
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.
|Minimum supported client||Available in Windows 7 and later versions of Windows.|
|Header||portcls.h (include Portcls.h)|