32 0x72631e54L, 0x78A4, 0x11d0, 0xbc, 0xf7, 0x00, 0xaa, 0x00, 0xb7, 0xb3, 0x2a);
34#if (NTDDI_VERSION >= NTDDI_WINXP)
36 0xfc4670d1, 0xebbf, 0x416e, 0x87, 0xce, 0x37, 0x4a, 0x4e, 0xbc, 0x11, 0x1a);
38 0x535a3767, 0x1ac2, 0x49bc, 0xa0, 0x77, 0x3f, 0x7a, 0x02, 0xe4, 0x0a, 0xec);
40 0x1a52a14d, 0xadce, 0x4a44, 0x9a, 0x3e, 0xc8, 0xd8, 0xf1, 0x5f, 0xf2, 0xc2);
42 0x40b40565, 0x96f7, 0x4435, 0x86, 0x94, 0x97, 0xe0, 0xe4, 0x39, 0x59, 0x05);
44 0xef98db24, 0x0014, 0x4c25, 0xa5, 0x0b, 0xc7, 0x24, 0xae, 0x5c, 0xd3, 0x71);
46 0x05e1e463, 0xe4e2, 0x4ea9, 0x80, 0xcb, 0x9b, 0xd4, 0xb3, 0xca, 0x06, 0x55);
48 0xcddfa0c3, 0x7c5b, 0x4e43, 0xa0, 0x34, 0x05, 0x9f, 0xa5, 0xb8, 0x43, 0x64);
50 0x5e1f6e19, 0x8786, 0x4d23, 0x94, 0xfc, 0x9e, 0x74, 0x6b, 0xd5, 0xd8, 0x88);
57#define BATTERY_SET_CHARGE_SUPPORTED 0x00000001
58#define BATTERY_SET_DISCHARGE_SUPPORTED 0x00000002
59#define BATTERY_SET_RESUME_SUPPORTED 0x00000004
60#define BATTERY_IS_SHORT_TERM 0x20000000
61#define BATTERY_CAPACITY_RELATIVE 0x40000000
62#define BATTERY_SYSTEM_BATTERY 0x80000000
65#define BATTERY_UNKNOWN_CAPACITY 0xFFFFFFFF
68#define BATTERY_UNKNOWN_TIME 0x80000000
70#define MAX_BATTERY_STRING_SIZE 128
73#define BATTERY_POWER_ON_LINE 0x00000001
74#define BATTERY_DISCHARGING 0x00000002
75#define BATTERY_CHARGING 0x00000004
76#define BATTERY_CRITICAL 0x00000008
79#define BATTERY_UNKNOWN_VOLTAGE 0xFFFFFFFF
82#define BATTERY_UNKNOWN_RATE 0x80000000
84#define IOCTL_BATTERY_QUERY_TAG \
85 CTL_CODE(FILE_DEVICE_BATTERY, 0x10, METHOD_BUFFERED, FILE_READ_ACCESS)
86#define IOCTL_BATTERY_QUERY_INFORMATION \
87 CTL_CODE(FILE_DEVICE_BATTERY, 0x11, METHOD_BUFFERED, FILE_READ_ACCESS)
88#define IOCTL_BATTERY_SET_INFORMATION \
89 CTL_CODE(FILE_DEVICE_BATTERY, 0x12, METHOD_BUFFERED, FILE_WRITE_ACCESS)
90#define IOCTL_BATTERY_QUERY_STATUS \
91 CTL_CODE(FILE_DEVICE_BATTERY, 0x13, METHOD_BUFFERED, FILE_READ_ACCESS)
94#define BATTERY_TAG_INVALID 0
163#define BATTERY_CLASS_MAJOR_VERSION 0x0001
164#define BATTERY_CLASS_MINOR_VERSION 0x0000
171(
NTAPI BCLASS_QUERY_TAG_CALLBACK)(
181(
NTAPI BCLASS_QUERY_INFORMATION_CALLBACK)(
196(
NTAPI BCLASS_QUERY_STATUS_CALLBACK)(
213(
NTAPI BCLASS_SET_STATUS_NOTIFY_CALLBACK)(
224(
NTAPI BCLASS_SET_INFORMATION_CALLBACK)(
236(
NTAPI BCLASS_DISABLE_STATUS_NOTIFY_CALLBACK)(
261#if (NTDDI_VERSION >= NTDDI_WINXP)
323#if defined(_BATTERYCLASS_)
326#define BCLASSAPI DECLSPEC_IMPORT
354#if (NTDDI_VERSION >= NTDDI_WINXP)
struct _BATTERY_TAG_CHANGE * PBATTERY_TAG_CHANGE
_In_ ULONG _In_ BATTERY_QUERY_INFORMATION_LEVEL _In_ LONG _In_ ULONG _Out_ PULONG ReturnedLength
BCLASS_QUERY_INFORMATION_CALLBACK * PBCLASS_QUERY_INFORMATION_CALLBACK
BCLASS_SET_STATUS_NOTIFY_CALLBACK * PBCLASS_SET_STATUS_NOTIFY_CALLBACK
struct _BATTERY_WAIT_STATUS * PBATTERY_WAIT_STATUS
struct _BATTERY_QUERY_INFORMATION BATTERY_QUERY_INFORMATION
struct _BATTERY_WMI_FULL_CHARGED_CAPACITY BATTERY_WMI_FULL_CHARGED_CAPACITY
_Inout_ PDEVICE_OBJECT _Inout_ PIRP _In_ ULONG GuidIndex
BCLASS_SET_INFORMATION_CALLBACK * PBCLASS_SET_INFORMATION_CALLBACK
_In_ PVOID _In_ PDEVICE_OBJECT _Inout_ PIRP _Out_ PVOID Disposition
struct _BATTERY_WMI_STATUS_CHANGE * PBATTERY_WMI_STATUS_CHANGE
_In_ ULONG _In_ BATTERY_QUERY_INFORMATION_LEVEL _In_ LONG _In_ ULONG BufferLength
_In_ ULONG _In_ BATTERY_QUERY_INFORMATION_LEVEL Level
struct _BATTERY_WMI_STATUS BATTERY_WMI_STATUS
struct _BATTERY_STATUS * PBATTERY_STATUS
struct _BATTERY_WAIT_STATUS BATTERY_WAIT_STATUS
BCLASS_DISABLE_STATUS_NOTIFY_CALLBACK * PBCLASS_DISABLE_STATUS_NOTIFY_CALLBACK
struct _BATTERY_WMI_STATIC_DATA * PBATTERY_WMI_STATIC_DATA
_BATTERY_SET_INFORMATION_LEVEL
_In_ ULONG _In_ PBATTERY_NOTIFY BatteryNotify
PBCLASS_SET_INFORMATION_CALLBACK BCLASS_SET_INFORMATION
_In_ ULONG _Out_ PBATTERY_STATUS BatteryStatus
struct _BATTERY_WMI_TEMPERATURE * PBATTERY_WMI_TEMPERATURE
struct _BATTERY_WMI_STATUS * PBATTERY_WMI_STATUS
BCLASS_QUERY_TAG_CALLBACK * PBCLASS_QUERY_TAG_CALLBACK
struct _BATTERY_WMI_CYCLE_COUNT * PBATTERY_WMI_CYCLE_COUNT
struct _BATTERY_WMI_FULL_CHARGED_CAPACITY * PBATTERY_WMI_FULL_CHARGED_CAPACITY
struct _BATTERY_INFORMATION * PBATTERY_INFORMATION
struct _BATTERY_QUERY_INFORMATION * PBATTERY_QUERY_INFORMATION
struct _BATTERY_NOTIFY * PBATTERY_NOTIFY
struct _BATTERY_WMI_TEMPERATURE BATTERY_WMI_TEMPERATURE
struct _BATTERY_SET_INFORMATION BATTERY_SET_INFORMATION
PBCLASS_QUERY_INFORMATION_CALLBACK BCLASS_QUERY_INFORMATION
struct _BATTERY_WMI_STATIC_DATA BATTERY_WMI_STATIC_DATA
struct _BATTERY_TAG_CHANGE BATTERY_TAG_CHANGE
struct _BATTERY_WMI_RUNTIME * PBATTERY_WMI_RUNTIME
struct _BATTERY_WMI_CYCLE_COUNT BATTERY_WMI_CYCLE_COUNT
_In_ ULONG _In_ BATTERY_QUERY_INFORMATION_LEVEL _In_ LONG AtRate
PBCLASS_SET_STATUS_NOTIFY_CALLBACK BCLASS_SET_STATUS_NOTIFY
struct _BATTERY_MINIPORT_INFO BATTERY_MINIPORT_INFO
PBCLASS_DISABLE_STATUS_NOTIFY_CALLBACK BCLASS_DISABLE_STATUS_NOTIFY
struct _BATTERY_INFORMATION BATTERY_INFORMATION
struct _BATTERY_WMI_STATUS_CHANGE BATTERY_WMI_STATUS_CHANGE
struct _BATTERY_MINIPORT_INFO * PBATTERY_MINIPORT_INFO
enum _BATTERY_SET_INFORMATION_LEVEL BATTERY_SET_INFORMATION_LEVEL
_BATTERY_QUERY_INFORMATION_LEVEL
@ BatteryGranularityInformation
struct _BATTERY_MANUFACTURE_DATE * PBATTERY_MANUFACTURE_DATE
PBCLASS_QUERY_STATUS_CALLBACK BCLASS_QUERY_STATUS
struct _BATTERY_WMI_RUNTIME BATTERY_WMI_RUNTIME
struct _BATTERY_MANUFACTURE_DATE BATTERY_MANUFACTURE_DATE
_In_ ULONG _In_ BATTERY_SET_INFORMATION_LEVEL _In_opt_ PVOID Buffer
BCLASS_QUERY_STATUS_CALLBACK * PBCLASS_QUERY_STATUS_CALLBACK
enum _BATTERY_QUERY_INFORMATION_LEVEL BATTERY_QUERY_INFORMATION_LEVEL
struct _BATTERY_STATUS BATTERY_STATUS
PBCLASS_QUERY_TAG_CALLBACK BCLASS_QUERY_TAG
struct _BATTERY_NOTIFY BATTERY_NOTIFY
struct _BATTERY_SET_INFORMATION * PBATTERY_SET_INFORMATION
BCLASSAPI NTSTATUS NTAPI BatteryClassQueryWmiDataBlock(PVOID ClassData, PDEVICE_OBJECT DeviceObject, PIRP Irp, ULONG GuidIndex, PULONG InstanceLengthArray, ULONG OutBufferSize, PUCHAR Buffer)
BCLASSAPI NTSTATUS NTAPI BatteryClassStatusNotify(PVOID ClassData)
BCLASSAPI NTSTATUS NTAPI BatteryClassInitializeDevice(PBATTERY_MINIPORT_INFO MiniportInfo, PVOID *ClassData)
BCLASSAPI NTSTATUS NTAPI BatteryClassIoctl(PVOID ClassData, PIRP Irp)
BCLASSAPI NTSTATUS NTAPI BatteryClassSystemControl(PVOID ClassData, PVOID WmiLibContext, PDEVICE_OBJECT DeviceObject, PIRP Irp, PVOID Disposition)
BCLASSAPI NTSTATUS NTAPI BatteryClassUnload(PVOID ClassData)
#define _IRQL_requires_same_
#define _IRQL_requires_max_(irql)
#define _Function_class_(x)
#define _Out_writes_bytes_to_(size, count)
#define _Out_writes_(size)
#define _Out_writes_bytes_opt_(size)
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
BCLASS_QUERY_INFORMATION QueryInformation
BCLASS_SET_STATUS_NOTIFY SetStatusNotify
BCLASS_SET_INFORMATION SetInformation
PUNICODE_STRING DeviceName
BCLASS_DISABLE_STATUS_NOTIFY DisableStatusNotify
BCLASS_QUERY_STATUS QueryStatus
BCLASS_QUERY_TAG QueryTag
ULONG FullChargedCapacity
WCHAR ManufactureDate[25]
BATTERY_REPORTING_SCALE Granularity[4]
_In_ PDEVICE_OBJECT DeviceObject
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
_Reserved_ PVOID Reserved