Schnittstelle PowrProf.POWER_INFORMATION_LEVEL
- Umschließende Schnittstelle:
PowrProf
PowrProf.CallNtPowerInformation(int, com.sun.jna.Pointer, int, com.sun.jna.Pointer, int)
. This value indicates the specific
power information to be set or retrieved.-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final int
ThelpInBuffer
parameter must beNULL
; otherwise, the function returnsWinError.ERROR_INVALID_PARAMETER
.static final int
ThelpInBuffer
parameter must beNULL
; otherwise, the function returnsWinError.ERROR_INVALID_PARAMETER
.static final int
ThelpInBuffer
parameter must beNULL
; otherwise, the function returnsWinError.ERROR_INVALID_PARAMETER
.static final int
ThelpInBuffer
parameter must beNULL
; otherwise, the function returnsWinError.ERROR_INVALID_PARAMETER
.static final int
ThelpInBuffer
parameter must beNULL
otherwise, the function returnsWinError.ERROR_INVALID_PARAMETER
.static final int
ThelpInBuffer
parameter must beNULL
; otherwise, the function returnsWinError.ERROR_INVALID_PARAMETER
.static final int
ThelpInBuffer
parameter must beNULL
; otherwise, the function returnsWinError.ERROR_INVALID_PARAMETER
.static final int
IflpInBuffer
is notNULL
, the function applies theWinNT.SYSTEM_POWER_POLICY
values passed inlpInBuffer
to the current system power policy used while the system is running on AC (utility) power.static final int
ThelpInBuffer
parameter must beNULL
; otherwise, the function returnsWinError.ERROR_INVALID_PARAMETER
.static final int
IflpInBuffer
is notNULL
, the function applies theWinNT.SYSTEM_POWER_POLICY
values passed inlpInBuffer
to the current system power policy used while the system is running on battery power.static final int
IflpInBuffer
is notNULL
and the current user has sufficient privileges, the function commits or decommits the storage required to hold the hibernation image on the boot volume.
-
Felddetails
-
LastSleepTime
static final int LastSleepTimeThelpInBuffer
parameter must beNULL
; otherwise, the function returnsWinError.ERROR_INVALID_PARAMETER
.The
lpOutputBuffer
buffer receives aWinDef.ULONGLONG
that specifies the interrupt-time count, in 100-nanosecond units, at the last system sleep time.- Siehe auch:
-
LastWakeTime
static final int LastWakeTimeThelpInBuffer
parameter must beNULL
; otherwise, the function returnsWinError.ERROR_INVALID_PARAMETER
.The
lpOutputBuffer
buffer receives aWinDef.ULONGLONG
that specifies the interrupt-time count, in 100-nanosecond units, at the last system wake time.- Siehe auch:
-
ProcessorInformation
static final int ProcessorInformationThelpInBuffer
parameter must beNULL
; otherwise, the function returnsWinError.ERROR_INVALID_PARAMETER
.The
lpOutputBuffer
buffer receives oneWinNT.PROCESSOR_POWER_INFORMATION
structure for each processor that is installed on the system. Use theKernel32.GetSystemInfo(com.sun.jna.platform.win32.WinBase.SYSTEM_INFO)
function to retrieve the number of processors, which will be the number of logical processors on the current Processor Group.- Siehe auch:
-
SystemBatteryState
static final int SystemBatteryStateThelpInBuffer
parameter must beNULL
; otherwise, the function returnsWinError.ERROR_INVALID_PARAMETER
.The
lpOutputBuffer
buffer receives aWinNT.SYSTEM_BATTERY_STATE
structure containing information about the current system battery.- Siehe auch:
-
SystemExecutionState
static final int SystemExecutionStateThelpInBuffer
parameter must beNULL
otherwise, the function returnsWinError.ERROR_INVALID_PARAMETER
.The
lpOutputBuffer
buffer receives aWinDef.ULONG
value containing the system execution state buffer. This value may contain any combination of the following values:WinBase.ES_SYSTEM_REQUIRED
,WinBase.ES_DISPLAY_REQUIRED
, orWinBase.ES_USER_PRESENT
. For more information, see theKernel32.SetThreadExecutionState(int)
function.- Siehe auch:
-
SystemPowerCapabilities
static final int SystemPowerCapabilitiesThelpInBuffer
parameter must beNULL
; otherwise, the function returnsWinError.ERROR_INVALID_PARAMETER
.The
lpOutputBuffer
buffer receives aWinNT.SYSTEM_POWER_CAPABILITIES
structure containing the current system power capabilities.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.
- Siehe auch:
-
SystemPowerInformation
static final int SystemPowerInformationThelpInBuffer
parameter must beNULL
; otherwise, the function returnsWinError.ERROR_INVALID_PARAMETER
.The
lpOutputBuffer
buffer receives aWinNT.SYSTEM_POWER_INFORMATION
structure.Applications can use this level to retrieve information about the idleness of the system.
- Siehe auch:
-
SystemPowerPolicyAc
static final int SystemPowerPolicyAcIflpInBuffer
is notNULL
, the function applies theWinNT.SYSTEM_POWER_POLICY
values passed inlpInBuffer
to the current system power policy used while the system is running on AC (utility) power.The
lpOutputBuffer
buffer receives aWinNT.SYSTEM_POWER_POLICY
structure containing the current system power policy used while the system is running on AC (utility) power.- Siehe auch:
-
SystemPowerPolicyCurrent
static final int SystemPowerPolicyCurrentThelpInBuffer
parameter must beNULL
; otherwise, the function returnsWinError.ERROR_INVALID_PARAMETER
.The
lpOutputBuffer
buffer receives aWinNT.SYSTEM_POWER_POLICY
structure containing the current system power policy used while the system is running on AC (utility) power.- Siehe auch:
-
SystemPowerPolicyDc
static final int SystemPowerPolicyDcIflpInBuffer
is notNULL
, the function applies theWinNT.SYSTEM_POWER_POLICY
values passed inlpInBuffer
to the current system power policy used while the system is running on battery power.The
lpOutputBuffer
buffer receives aWinNT.SYSTEM_POWER_POLICY
structure containing the current system power policy used while the system is running on battery power.- Siehe auch:
-
SystemReserveHiberFile
static final int SystemReserveHiberFileIflpInBuffer
is notNULL
and the current user has sufficient privileges, the function commits or decommits the storage required to hold the hibernation image on the boot volume.The lpInBuffer parameter must point to a
BOOLEAN
value indicating the desired request. If the value isTRUE
, the hibernation file is reserved; if the value isFALSE
, the hibernation file is removed.- Siehe auch:
-