| Modifier and Type | Class and Description |
|---|---|
| public static interface | PowrProf.POWER_INFORMATION_LEVEL
Enum which indicates the power information level requested from
|
| Modifier and Type | Field and Description |
|---|---|
| public static final PowrProf |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: If the function succeeds, the return value isNTStatus#STATUS_SUCCESS. If the function fails, the
return value can be one the following status codes:
NTStatus#STATUS_BUFFER_TOO_SMALL if the output buffer is
of insufficient size to contain the data to be returned.
NTStatus#STATUS_ACCESS_DENIED if the caller had
insufficient access rights to perform the requested action.The information level requested. This value indicates the
specific power information to be set or retrieved. This
parameter must be one of the following
informationLevel, Pointer POWER_INFORMATION_LEVEL enumeration type values:
POWER_INFORMATION_LEVEL#LastSleepTime,
POWER_INFORMATION_LEVEL#LastWakeTime,
POWER_INFORMATION_LEVEL#ProcessorInformation,
POWER_INFORMATION_LEVEL#SystemBatteryState,
POWER_INFORMATION_LEVEL#SystemExecutionState,
POWER_INFORMATION_LEVEL#SystemPowerCapabilities,
POWER_INFORMATION_LEVEL#SystemPowerInformation,
POWER_INFORMATION_LEVEL#SystemPowerPolicyAc,
POWER_INFORMATION_LEVEL#SystemPowerPolicyCurrent,
POWER_INFORMATION_LEVEL#SystemPowerPolicyDc, or
POWER_INFORMATION_LEVEL#SystemReserveHiberFile.A pointer to an optional input buffer. The data type of this
buffer depends on the information level requested in the
lpInputBuffer, int informationLevel parameter.The size of the input buffer, in bytes. nInputBufferSize, Pointer A pointer to an optional output buffer. The data type of this
buffer depends on the information level requested in the
lpOutputBuffer, int informationLevel parameter. If the buffer is too small
to contain the information, the function returns
NTStatus#STATUS_BUFFER_TOO_SMALL.The size of the output buffer, in bytes. Depending on the
information level requested, this may be a variably sized
buffer. nOutputBufferSize)Sets or retrieves power information. |
| INSTANCE | back to summary |
|---|---|
| public static final PowrProf INSTANCE | |
| CallNtPowerInformation | back to summary |
|---|---|
| public int CallNtPowerInformation(int informationLevel, Pointer lpInputBuffer, int nInputBufferSize, Pointer lpOutputBuffer, int nOutputBufferSize) Sets or retrieves power information.
Changes made to the current system power policy using
| |
CallNtPowerInformation. This value indicates the specific
power information to be set or retrieved.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | LastSleepTime
The |
| public static final int | LastWakeTime
The |
| public static final int | ProcessorInformation
The |
| public static final int | SystemBatteryState
The |
| public static final int | SystemExecutionState
The |
| public static final int | SystemPowerCapabilities
The |
| public static final int | SystemPowerInformation
The |
| public static final int | SystemPowerPolicyAc
If |
| public static final int | SystemPowerPolicyCurrent
The |
| public static final int | SystemPowerPolicyDc
If |
| public static final int | SystemReserveHiberFile
If |
| LastSleepTime | back to summary |
|---|---|
| public static final int LastSleepTime The
The | |
| LastWakeTime | back to summary |
|---|---|
| public static final int LastWakeTime The
The | |
| ProcessorInformation | back to summary |
|---|---|
| public static final int ProcessorInformation The
The | |
| SystemBatteryState | back to summary |
|---|---|
| public static final int SystemBatteryState The
The | |
| SystemExecutionState | back to summary |
|---|---|
| public static final int SystemExecutionState The
The | |
| SystemPowerCapabilities | back to summary |
|---|---|
| public static final int SystemPowerCapabilities The
The This information represents the currently supported power capabilities. It may change as drivers are installed in the system. For example, installation of legacy device drivers that do not support power management disables all system sleep states. | |
| SystemPowerInformation | back to summary |
|---|---|
| public static final int SystemPowerInformation The
The Applications can use this level to retrieve information about the idleness of the system. | |
| SystemPowerPolicyAc | back to summary |
|---|---|
| public static final int SystemPowerPolicyAc If
The | |
| SystemPowerPolicyCurrent | back to summary |
|---|---|
| public static final int SystemPowerPolicyCurrent The
The | |
| SystemPowerPolicyDc | back to summary |
|---|---|
| public static final int SystemPowerPolicyDc If
The | |
| SystemReserveHiberFile | back to summary |
|---|---|
| public static final int SystemReserveHiberFile If
The lpInBuffer parameter must point to a | |