NtPowerInformation - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTPOAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)

/**
 * 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
    );

#endif
#endif

View code on GitHub
#ifndef _NTZWAPI_H

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
    );

#endif

View code on GitHub

This function is documented in Windows Driver Kit here, here, and here.