/**
* The NtPowerInformation routine sets or retrieves system power information.
*
* @param InformationLevel Specifies the requested information level, which indicates the specific power information to be set or retrieved.
* @param InputBuffer Optional pointer to a caller-allocated input buffer.
* @param InputBufferLength Size, in bytes, of the buffer at InputBuffer.
* @param OutputBuffer Optional pointer to an output buffer. The type depends on the InformationLevel requested.
* @param OutputBufferLength Size, in bytes, of the output buffer.
* @return Successful or errant status.
*/
NTSYSCALLAPI
NTSTATUS
NTAPI
NtPowerInformation(
_In_ POWER_INFORMATION_LEVEL InformationLevel,
_In_reads_bytes_opt_(InputBufferLength) PVOID InputBuffer,
_In_ ULONG InputBufferLength,
_Out_writes_bytes_opt_(OutputBufferLength) PVOID OutputBuffer,
_In_ ULONG OutputBufferLength
);
View code on GitHub
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwPowerInformation(
_In_ POWER_INFORMATION_LEVEL InformationLevel,
_In_reads_bytes_opt_(InputBufferLength) PVOID InputBuffer,
_In_ ULONG InputBufferLength,
_Out_writes_bytes_opt_(OutputBufferLength) PVOID OutputBuffer,
_In_ ULONG OutputBufferLength
);
View code on GitHub