ReactOS  r76032
batclass.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _BATTERY_QUERY_INFORMATION
 
struct  _BATTERY_INFORMATION
 
struct  _BATTERY_MANUFACTURE_DATE
 
struct  _BATTERY_SET_INFORMATION
 
struct  _BATTERY_WAIT_STATUS
 
struct  _BATTERY_STATUS
 
struct  _BATTERY_NOTIFY
 
struct  _BATTERY_MINIPORT_INFO
 
struct  _BATTERY_WMI_STATUS
 
struct  _BATTERY_WMI_RUNTIME
 
struct  _BATTERY_WMI_TEMPERATURE
 
struct  _BATTERY_WMI_FULL_CHARGED_CAPACITY
 
struct  _BATTERY_WMI_CYCLE_COUNT
 
struct  _BATTERY_WMI_STATIC_DATA
 
struct  _BATTERY_WMI_STATUS_CHANGE
 
struct  _BATTERY_TAG_CHANGE
 

Macros

#define _BATCLASS_
 
#define BATTERY_SET_CHARGE_SUPPORTED   0x00000001
 
#define BATTERY_SET_DISCHARGE_SUPPORTED   0x00000002
 
#define BATTERY_SET_RESUME_SUPPORTED   0x00000004
 
#define BATTERY_IS_SHORT_TERM   0x20000000
 
#define BATTERY_CAPACITY_RELATIVE   0x40000000
 
#define BATTERY_SYSTEM_BATTERY   0x80000000
 
#define BATTERY_UNKNOWN_CAPACITY   0xFFFFFFFF
 
#define BATTERY_UNKNOWN_TIME   0x80000000
 
#define MAX_BATTERY_STRING_SIZE   128
 
#define BATTERY_POWER_ON_LINE   0x00000001
 
#define BATTERY_DISCHARGING   0x00000002
 
#define BATTERY_CHARGING   0x00000004
 
#define BATTERY_CRITICAL   0x00000008
 
#define BATTERY_UNKNOWN_VOLTAGE   0xFFFFFFFF
 
#define BATTERY_UNKNOWN_RATE   0x80000000
 
#define IOCTL_BATTERY_QUERY_TAG   CTL_CODE(FILE_DEVICE_BATTERY, 0x10, METHOD_BUFFERED, FILE_READ_ACCESS)
 
#define IOCTL_BATTERY_QUERY_INFORMATION   CTL_CODE(FILE_DEVICE_BATTERY, 0x11, METHOD_BUFFERED, FILE_READ_ACCESS)
 
#define IOCTL_BATTERY_SET_INFORMATION   CTL_CODE(FILE_DEVICE_BATTERY, 0x12, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#define IOCTL_BATTERY_QUERY_STATUS   CTL_CODE(FILE_DEVICE_BATTERY, 0x13, METHOD_BUFFERED, FILE_READ_ACCESS)
 
#define BATTERY_TAG_INVALID   0
 
#define BATTERY_CLASS_MAJOR_VERSION   0x0001
 
#define BATTERY_CLASS_MINOR_VERSION   0x0000
 
#define BCLASSAPI   DECLSPEC_IMPORT
 

Typedefs

typedef enum
_BATTERY_QUERY_INFORMATION_LEVEL 
BATTERY_QUERY_INFORMATION_LEVEL
 
typedef struct
_BATTERY_QUERY_INFORMATION 
BATTERY_QUERY_INFORMATION
 
typedef struct
_BATTERY_QUERY_INFORMATION
PBATTERY_QUERY_INFORMATION
 
typedef struct _BATTERY_INFORMATION BATTERY_INFORMATION
 
typedef struct
_BATTERY_INFORMATION
PBATTERY_INFORMATION
 
typedef struct
_BATTERY_MANUFACTURE_DATE 
BATTERY_MANUFACTURE_DATE
 
typedef struct
_BATTERY_MANUFACTURE_DATE
PBATTERY_MANUFACTURE_DATE
 
typedef enum
_BATTERY_SET_INFORMATION_LEVEL 
BATTERY_SET_INFORMATION_LEVEL
 
typedef struct
_BATTERY_SET_INFORMATION 
BATTERY_SET_INFORMATION
 
typedef struct
_BATTERY_SET_INFORMATION
PBATTERY_SET_INFORMATION
 
typedef struct _BATTERY_WAIT_STATUS BATTERY_WAIT_STATUS
 
typedef struct
_BATTERY_WAIT_STATUS
PBATTERY_WAIT_STATUS
 
typedef struct _BATTERY_STATUS BATTERY_STATUS
 
typedef struct _BATTERY_STATUSPBATTERY_STATUS
 
typedef BCLASS_QUERY_TAG_CALLBACK * PBCLASS_QUERY_TAG_CALLBACK
 
typedef
BCLASS_QUERY_INFORMATION_CALLBACK * 
PBCLASS_QUERY_INFORMATION_CALLBACK
 
typedef
BCLASS_QUERY_STATUS_CALLBACK * 
PBCLASS_QUERY_STATUS_CALLBACK
 
typedef struct _BATTERY_NOTIFY BATTERY_NOTIFY
 
typedef struct _BATTERY_NOTIFYPBATTERY_NOTIFY
 
typedef
BCLASS_SET_STATUS_NOTIFY_CALLBACK * 
PBCLASS_SET_STATUS_NOTIFY_CALLBACK
 
typedef
BCLASS_SET_INFORMATION_CALLBACK * 
PBCLASS_SET_INFORMATION_CALLBACK
 
typedef
BCLASS_DISABLE_STATUS_NOTIFY_CALLBACK * 
PBCLASS_DISABLE_STATUS_NOTIFY_CALLBACK
 
typedef PBCLASS_QUERY_TAG_CALLBACK BCLASS_QUERY_TAG
 
typedef
PBCLASS_QUERY_INFORMATION_CALLBACK 
BCLASS_QUERY_INFORMATION
 
typedef
PBCLASS_QUERY_STATUS_CALLBACK 
BCLASS_QUERY_STATUS
 
typedef
PBCLASS_SET_STATUS_NOTIFY_CALLBACK 
BCLASS_SET_STATUS_NOTIFY
 
typedef
PBCLASS_SET_INFORMATION_CALLBACK 
BCLASS_SET_INFORMATION
 
typedef
PBCLASS_DISABLE_STATUS_NOTIFY_CALLBACK 
BCLASS_DISABLE_STATUS_NOTIFY
 
typedef struct
_BATTERY_MINIPORT_INFO 
BATTERY_MINIPORT_INFO
 
typedef struct
_BATTERY_MINIPORT_INFO
PBATTERY_MINIPORT_INFO
 
typedef struct _BATTERY_WMI_STATUS BATTERY_WMI_STATUS
 
typedef struct
_BATTERY_WMI_STATUS
PBATTERY_WMI_STATUS
 
typedef struct _BATTERY_WMI_RUNTIME BATTERY_WMI_RUNTIME
 
typedef struct
_BATTERY_WMI_RUNTIME
PBATTERY_WMI_RUNTIME
 
typedef struct
_BATTERY_WMI_TEMPERATURE 
BATTERY_WMI_TEMPERATURE
 
typedef struct
_BATTERY_WMI_TEMPERATURE
PBATTERY_WMI_TEMPERATURE
 
typedef struct
_BATTERY_WMI_FULL_CHARGED_CAPACITY 
BATTERY_WMI_FULL_CHARGED_CAPACITY
 
typedef struct
_BATTERY_WMI_FULL_CHARGED_CAPACITY
PBATTERY_WMI_FULL_CHARGED_CAPACITY
 
typedef struct
_BATTERY_WMI_CYCLE_COUNT 
BATTERY_WMI_CYCLE_COUNT
 
typedef struct
_BATTERY_WMI_CYCLE_COUNT
PBATTERY_WMI_CYCLE_COUNT
 
typedef struct
_BATTERY_WMI_STATIC_DATA 
BATTERY_WMI_STATIC_DATA
 
typedef struct
_BATTERY_WMI_STATIC_DATA
PBATTERY_WMI_STATIC_DATA
 
typedef struct
_BATTERY_WMI_STATUS_CHANGE 
BATTERY_WMI_STATUS_CHANGE
 
typedef struct
_BATTERY_WMI_STATUS_CHANGE
PBATTERY_WMI_STATUS_CHANGE
 
typedef struct _BATTERY_TAG_CHANGE BATTERY_TAG_CHANGE
 
typedef struct
_BATTERY_TAG_CHANGE
PBATTERY_TAG_CHANGE
 

Enumerations

enum  _BATTERY_QUERY_INFORMATION_LEVEL {
  BatteryInformation = 0, BatteryGranularityInformation, BatteryTemperature, BatteryEstimatedTime,
  BatteryDeviceName, BatteryManufactureDate, BatteryManufactureName, BatteryUniqueID,
  BatterySerialNumber
}
 
enum  _BATTERY_SET_INFORMATION_LEVEL { BatteryCriticalBias = 0, BatteryCharge, BatteryDischarge }
 

Functions

 DEFINE_GUID (GUID_DEVICE_BATTERY, 0x72631e54L, 0x78A4, 0x11d0, 0xbc, 0xf7, 0x00, 0xaa, 0x00, 0xb7, 0xb3, 0x2a)
 
 DEFINE_GUID (BATTERY_STATUS_WMI_GUID, 0xfc4670d1, 0xebbf, 0x416e, 0x87, 0xce, 0x37, 0x4a, 0x4e, 0xbc, 0x11, 0x1a)
 
 DEFINE_GUID (BATTERY_RUNTIME_WMI_GUID, 0x535a3767, 0x1ac2, 0x49bc, 0xa0, 0x77, 0x3f, 0x7a, 0x02, 0xe4, 0x0a, 0xec)
 
 DEFINE_GUID (BATTERY_TEMPERATURE_WMI_GUID, 0x1a52a14d, 0xadce, 0x4a44, 0x9a, 0x3e, 0xc8, 0xd8, 0xf1, 0x5f, 0xf2, 0xc2)
 
 DEFINE_GUID (BATTERY_FULL_CHARGED_CAPACITY_WMI_GUID, 0x40b40565, 0x96f7, 0x4435, 0x86, 0x94, 0x97, 0xe0, 0xe4, 0x39, 0x59, 0x05)
 
 DEFINE_GUID (BATTERY_CYCLE_COUNT_WMI_GUID, 0xef98db24, 0x0014, 0x4c25, 0xa5, 0x0b, 0xc7, 0x24, 0xae, 0x5c, 0xd3, 0x71)
 
 DEFINE_GUID (BATTERY_STATIC_DATA_WMI_GUID, 0x05e1e463, 0xe4e2, 0x4ea9, 0x80, 0xcb, 0x9b, 0xd4, 0xb3, 0xca, 0x06, 0x55)
 
 DEFINE_GUID (BATTERY_STATUS_CHANGE_WMI_GUID, 0xcddfa0c3, 0x7c5b, 0x4e43, 0xa0, 0x34, 0x05, 0x9f, 0xa5, 0xb8, 0x43, 0x64)
 
 DEFINE_GUID (BATTERY_TAG_CHANGE_WMI_GUID, 0x5e1f6e19, 0x8786, 0x4d23, 0x94, 0xfc, 0x9e, 0x74, 0x6b, 0xd5, 0xd8, 0x88)
 
 _Function_class_ (BCLASS_QUERY_TAG_CALLBACK) _IRQL_requires_same_ _IRQL_requires_max_(PASSIVE_LEVEL) _Check_return_ typedef NTSTATUS(NTAPI BCLASS_QUERY_TAG_CALLBACK)(_In_ PVOID Context
 
 _Function_class_ (BCLASS_QUERY_INFORMATION_CALLBACK) _IRQL_requires_same_ _IRQL_requires_max_(PASSIVE_LEVEL) _Check_return_ typedef NTSTATUS(NTAPI BCLASS_QUERY_INFORMATION_CALLBACK)(_In_ PVOID Context
 
_In_ ULONG _In_
BATTERY_QUERY_INFORMATION_LEVEL
_In_ LONG 
_Out_writes_bytes_to_ (BufferLength,*ReturnedLength) PVOID Buffer
 
 _Function_class_ (BCLASS_QUERY_STATUS_CALLBACK) _IRQL_requires_same_ _IRQL_requires_max_(PASSIVE_LEVEL) _Check_return_ typedef NTSTATUS(NTAPI BCLASS_QUERY_STATUS_CALLBACK)(_In_ PVOID Context
 
 _Function_class_ (BCLASS_SET_STATUS_NOTIFY_CALLBACK) _IRQL_requires_same_ _IRQL_requires_max_(PASSIVE_LEVEL) _Check_return_ typedef NTSTATUS(NTAPI BCLASS_SET_STATUS_NOTIFY_CALLBACK)(_In_ PVOID Context
 
 _Function_class_ (BCLASS_SET_INFORMATION_CALLBACK) _IRQL_requires_same_ _IRQL_requires_max_(PASSIVE_LEVEL) _Check_return_ typedef NTSTATUS(NTAPI BCLASS_SET_INFORMATION_CALLBACK)(_In_ PVOID Context
 
 _Function_class_ (BCLASS_DISABLE_STATUS_NOTIFY_CALLBACK) _IRQL_requires_same_ _IRQL_requires_max_(PASSIVE_LEVEL) _Check_return_ typedef NTSTATUS(NTAPI BCLASS_DISABLE_STATUS_NOTIFY_CALLBACK)(_In_ PVOID Context)
 
 _IRQL_requires_max_ (PASSIVE_LEVEL) _Check_return_ BCLASSAPI NTSTATUS NTAPI BatteryClassInitializeDevice(_In_ PBATTERY_MINIPORT_INFO MiniportInfo
 
 _IRQL_requires_max_ (DISPATCH_LEVEL) BCLASSAPI NTSTATUS NTAPI BatteryClassStatusNotify(_In_ PVOID ClassData)
 
_Inout_ PDEVICE_OBJECT _Inout_
PIRP _In_ ULONG 
_Out_writes_ (1) PULONG InstanceLengthArray
 
_Inout_ PDEVICE_OBJECT _Inout_
PIRP _In_ ULONG _In_ ULONG 
_Out_writes_bytes_opt_ (OutBufferSize) PUCHAR Buffer)
 

Variables

_Out_ PULONG BatteryTag
 
_In_ ULONG _In_
BATTERY_QUERY_INFORMATION_LEVEL 
Level
 
_In_ ULONG _In_
BATTERY_QUERY_INFORMATION_LEVEL
_In_ LONG 
AtRate
 
_In_ ULONG _In_
BATTERY_QUERY_INFORMATION_LEVEL
_In_ LONG _In_ ULONG 
BufferLength
 
_In_ ULONG _In_
BATTERY_QUERY_INFORMATION_LEVEL
_In_ LONG _In_ ULONG _Out_
PULONG 
ReturnedLength
 
_In_ ULONG _Out_ PBATTERY_STATUS BatteryStatus
 
_In_ ULONG _In_ PBATTERY_NOTIFY BatteryNotify
 
_In_ ULONG _In_
BATTERY_SET_INFORMATION_LEVEL
_In_opt_ PVOID 
Buffer
 
_Out_ PVOIDClassData
 
_Inout_ PIRP Irp
 
_Inout_ PDEVICE_OBJECT DeviceObject
 
_Inout_ PDEVICE_OBJECT _Inout_
PIRP _In_ ULONG 
GuidIndex
 
_Inout_ PDEVICE_OBJECT _Inout_
PIRP _In_ ULONG _In_ ULONG 
OutBufferSize
 
_In_ PVOID WmiLibContext
 
_In_ PVOID _In_ PDEVICE_OBJECT
_Inout_ PIRP _Out_ PVOID 
Disposition
 

Macro Definition Documentation

#define _BATCLASS_

Definition at line 54 of file batclass.h.

#define BATTERY_CAPACITY_RELATIVE   0x40000000

Definition at line 61 of file batclass.h.

#define BATTERY_CHARGING   0x00000004

Definition at line 75 of file batclass.h.

Referenced by CmBattGetBatteryStatus().

#define BATTERY_CLASS_MAJOR_VERSION   0x0001

Definition at line 163 of file batclass.h.

Referenced by CmBattAddBattery(), and CompBattAddDevice().

#define BATTERY_CLASS_MINOR_VERSION   0x0000

Definition at line 164 of file batclass.h.

Referenced by CmBattAddBattery(), and CompBattAddDevice().

#define BATTERY_CRITICAL   0x00000008

Definition at line 76 of file batclass.h.

Referenced by CmBattGetBatteryStatus().

#define BATTERY_DISCHARGING   0x00000002

Definition at line 74 of file batclass.h.

Referenced by CmBattGetBatteryStatus().

#define BATTERY_IS_SHORT_TERM   0x20000000

Definition at line 60 of file batclass.h.

#define BATTERY_POWER_ON_LINE   0x00000001

Definition at line 73 of file batclass.h.

Referenced by CmBattGetBatteryStatus().

#define BATTERY_SET_CHARGE_SUPPORTED   0x00000001

Definition at line 57 of file batclass.h.

#define BATTERY_SET_DISCHARGE_SUPPORTED   0x00000002

Definition at line 58 of file batclass.h.

#define BATTERY_SET_RESUME_SUPPORTED   0x00000004

Definition at line 59 of file batclass.h.

#define BATTERY_SYSTEM_BATTERY   0x80000000

Definition at line 62 of file batclass.h.

#define BATTERY_TAG_INVALID   0

Definition at line 94 of file batclass.h.

#define BATTERY_UNKNOWN_RATE   0x80000000

Definition at line 82 of file batclass.h.

Referenced by CmBattGetBatteryStatus(), and CmBattQueryInformation().

#define BATTERY_UNKNOWN_TIME   0x80000000

Definition at line 68 of file batclass.h.

#define BATTERY_UNKNOWN_VOLTAGE   0xFFFFFFFF

Definition at line 79 of file batclass.h.

Referenced by CmBattSetStatusNotify().

#define BCLASSAPI   DECLSPEC_IMPORT

Definition at line 326 of file batclass.h.

#define IOCTL_BATTERY_QUERY_INFORMATION   CTL_CODE(FILE_DEVICE_BATTERY, 0x11, METHOD_BUFFERED, FILE_READ_ACCESS)
#define IOCTL_BATTERY_QUERY_STATUS   CTL_CODE(FILE_DEVICE_BATTERY, 0x13, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 90 of file batclass.h.

Referenced by BatteryClassIoctl().

#define IOCTL_BATTERY_QUERY_TAG   CTL_CODE(FILE_DEVICE_BATTERY, 0x10, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 84 of file batclass.h.

Referenced by BatteryClassIoctl().

#define IOCTL_BATTERY_SET_INFORMATION   CTL_CODE(FILE_DEVICE_BATTERY, 0x12, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 88 of file batclass.h.

Referenced by BatteryClassIoctl().

#define MAX_BATTERY_STRING_SIZE   128

Definition at line 70 of file batclass.h.

Typedef Documentation

Definition at line 242 of file batclass.h.

Definition at line 240 of file batclass.h.

typedef BCLASS_DISABLE_STATUS_NOTIFY_CALLBACK* PBCLASS_DISABLE_STATUS_NOTIFY_CALLBACK

Definition at line 238 of file batclass.h.

typedef BCLASS_QUERY_INFORMATION_CALLBACK* PBCLASS_QUERY_INFORMATION_CALLBACK

Definition at line 189 of file batclass.h.

typedef BCLASS_QUERY_STATUS_CALLBACK* PBCLASS_QUERY_STATUS_CALLBACK

Definition at line 200 of file batclass.h.

typedef BCLASS_QUERY_TAG_CALLBACK* PBCLASS_QUERY_TAG_CALLBACK

Definition at line 174 of file batclass.h.

typedef BCLASS_SET_INFORMATION_CALLBACK* PBCLASS_SET_INFORMATION_CALLBACK

Definition at line 229 of file batclass.h.

typedef BCLASS_SET_STATUS_NOTIFY_CALLBACK* PBCLASS_SET_STATUS_NOTIFY_CALLBACK

Definition at line 217 of file batclass.h.

Enumeration Type Documentation

Enumerator
BatteryInformation 
BatteryGranularityInformation 
BatteryTemperature 
BatteryEstimatedTime 
BatteryDeviceName 
BatteryManufactureDate 
BatteryManufactureName 
BatteryUniqueID 
BatterySerialNumber 

Definition at line 96 of file batclass.h.

Enumerator
BatteryCriticalBias 
BatteryCharge 
BatteryDischarge 

Definition at line 133 of file batclass.h.

133  {
enum _BATTERY_SET_INFORMATION_LEVEL BATTERY_SET_INFORMATION_LEVEL

Function Documentation

_Function_class_ ( BCLASS_QUERY_TAG_CALLBACK  )
_Function_class_ ( BCLASS_QUERY_INFORMATION_CALLBACK  )
_Function_class_ ( BCLASS_QUERY_STATUS_CALLBACK  )
_Function_class_ ( BCLASS_SET_STATUS_NOTIFY_CALLBACK  )
_Function_class_ ( BCLASS_SET_INFORMATION_CALLBACK  )
_Function_class_ ( BCLASS_DISABLE_STATUS_NOTIFY_CALLBACK  )
_IRQL_requires_max_ ( PASSIVE_LEVEL  )

Definition at line 37 of file Messaging.c.

48 {
49  PFLT_SERVER_PORT_OBJECT PortObject;
51 
52  /* The caller must allow at least one connection */
53  if (MaxConnections == 0)
54  {
56  }
57 
58  /* The request must be for a kernel handle */
59  if (!(ObjectAttributes->Attributes & OBJ_KERNEL_HANDLE))
60  {
62  }
63 
64  /*
65  * Get rundown protection on the target to stop the owner
66  * from unloading whilst this port object is open. It gets
67  * removed in the FltpServerPortClose callback
68  */
69  Status = FltObjectReference(Filter);
70  if (!NT_SUCCESS(Status))
71  {
72  return Status;
73  }
74 
75  /* Create our new server port object */
76  Status = ObCreateObject(0,
79  KernelMode,
80  NULL,
81  sizeof(FLT_SERVER_PORT_OBJECT),
82  0,
83  0,
84  (PVOID *)&PortObject);
85  if (NT_SUCCESS(Status))
86  {
87  /* Zero out the struct */
88  RtlZeroMemory(PortObject, sizeof(FLT_SERVER_PORT_OBJECT));
89 
90  /* Increment the ref count on the target filter */
92 
93  /* Setup the filter port object */
94  PortObject->Filter = Filter;
98  PortObject->Cookie = ServerPortCookie;
99  PortObject->MaxConnections = MaxConnections;
100 
101  /* Insert the object */
102  Status = ObInsertObject(PortObject,
103  NULL,
105  0,
106  NULL,
108  if (NT_SUCCESS(Status))
109  {
110  /* Lock the connection list */
112 
113  /* Add the new port object to the connection list and increment the count */
116 
117  /* Unlock the connection list*/
119  }
120  }
121 
122  if (!NT_SUCCESS(Status))
123  {
124  /* Allow the filter to be cleaned up */
126  }
127 
128  return STATUS_NOT_IMPLEMENTED;
129 }
DWORD *typedef PVOID
Definition: winlogon.h:52
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
Definition: conport.c:35
#define STATUS_NOT_IMPLEMENTED
Definition: ntstatus.h:225
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
_Must_inspect_result_ _Outptr_ PFLT_PORT * ServerPort
Definition: fltkernel.h:1873
PFLT_CONNECT_NOTIFY ConnectNotify
Definition: fltmgrint.h:177
VOID FLTAPI FltObjectDereference(_Inout_ PVOID Object)
Definition: Object.c:53
#define InsertTailList(ListHead, Entry)
VOID FASTCALL ExReleaseFastMutex(IN PFAST_MUTEX FastMutex)
Definition: fmutex.c:31
ULONG FltpObjectPointerReference(_In_ PFLT_OBJECT Object)
Definition: Object.c:252
LIST_ENTRY mList
Definition: fltmgrint.h:56
_Must_inspect_result_ _In_opt_ PFLT_FILTER Filter
Definition: fltkernel.h:1802
#define FILE_READ_DATA
Definition: nt_native.h:628
smooth NULL
Definition: ftsmooth.c:557
NTSTATUS NTAPI ObCreateObject(IN KPROCESSOR_MODE ProbeMode OPTIONAL, IN POBJECT_TYPE Type, IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, IN KPROCESSOR_MODE AccessMode, IN OUT PVOID ParseContext OPTIONAL, IN ULONG ObjectSize, IN ULONG PagedPoolCharge OPTIONAL, IN ULONG NonPagedPoolCharge OPTIONAL, OUT PVOID *Object)
Definition: oblife.c:938
POBJECT_TYPE ServerPortObjectType
Definition: Messaging.c:23
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:24
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID _In_ PFLT_CONNECT_NOTIFY _In_ PFLT_DISCONNECT_NOTIFY DisconnectNotifyCallback
Definition: fltkernel.h:1873
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:411
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID _In_ PFLT_CONNECT_NOTIFY ConnectNotifyCallback
Definition: fltkernel.h:1873
Status
Definition: gdiplustypes.h:24
NTSTATUS NTAPI ObInsertObject(IN PVOID Object, IN PACCESS_STATE AccessState OPTIONAL, IN ACCESS_MASK DesiredAccess, IN ULONG ObjectPointerBias, OUT PVOID *NewObject OPTIONAL, OUT PHANDLE Handle)
Definition: obhandle.c:2925
LONG NTSTATUS
Definition: DriverTester.h:11
#define STANDARD_RIGHTS_ALL
Definition: nt_native.h:69
VOID FASTCALL ExAcquireFastMutex(IN PFAST_MUTEX FastMutex)
Definition: fmutex.c:23
NTSTATUS FLTAPI FltObjectReference(_Inout_ PVOID Object)
Definition: Object.c:41
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID ServerPortCookie
Definition: fltkernel.h:1873
FAST_MUTEX mLock
Definition: fltmgrint.h:55
PFLT_MESSAGE_NOTIFY MessageNotify
Definition: fltmgrint.h:179
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:261
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID _In_ PFLT_CONNECT_NOTIFY _In_ PFLT_DISCONNECT_NOTIFY _In_opt_ PFLT_MESSAGE_NOTIFY _In_ LONG MaxConnections
Definition: fltkernel.h:1873
PFLT_DISCONNECT_NOTIFY DisconnectNotify
Definition: fltmgrint.h:178
#define OBJ_KERNEL_HANDLE
Definition: winternl.h:231
_Must_inspect_result_ _Outptr_ PFLT_PORT _In_ POBJECT_ATTRIBUTES _In_opt_ PVOID _In_ PFLT_CONNECT_NOTIFY _In_ PFLT_DISCONNECT_NOTIFY _In_opt_ PFLT_MESSAGE_NOTIFY MessageNotifyCallback
Definition: fltkernel.h:1873
FLT_MUTEX_LIST_HEAD ConnectionList
Definition: fltmgrint.h:86
_IRQL_requires_max_ ( DISPATCH_LEVEL  )

Definition at line 30 of file rmap.c.

36 {
38 }
#define TAG_RMAP
Definition: tag.h:133
#define ExFreePoolWithTag(_P, _T)
Definition: module.h:1097
#define P(row, col)
Definition: m_matrix.c:147
_Inout_ PDEVICE_OBJECT _Inout_ PIRP _In_ ULONG _Out_writes_ ( )
_In_ ULONG _In_ BATTERY_QUERY_INFORMATION_LEVEL _In_ LONG _Out_writes_bytes_to_ ( BufferLength  ,
ReturnedLength 
)
DEFINE_GUID ( GUID_DEVICE_BATTERY  ,
0x72631e54L  ,
0x78A4  ,
0x11d0  ,
0xbc  ,
0xf7  ,
0x00  ,
0xaa  ,
0x00  ,
0xb7  ,
0xb3  ,
0x2a   
)
DEFINE_GUID ( BATTERY_STATUS_WMI_GUID  ,
0xfc4670d1  ,
0xebbf  ,
0x416e  ,
0x87  ,
0xce  ,
0x37  ,
0x4a  ,
0x4e  ,
0xbc  ,
0x11  ,
0x1a   
)
DEFINE_GUID ( BATTERY_RUNTIME_WMI_GUID  ,
0x535a3767  ,
0x1ac2  ,
0x49bc  ,
0xa0  ,
0x77  ,
0x3f  ,
0x7a  ,
0x02  ,
0xe4  ,
0x0a  ,
0xec   
)
DEFINE_GUID ( BATTERY_TEMPERATURE_WMI_GUID  ,
0x1a52a14d  ,
0xadce  ,
0x4a44  ,
0x9a  ,
0x3e  ,
0xc8  ,
0xd8  ,
0xf1  ,
0x5f  ,
0xf2  ,
0xc2   
)
DEFINE_GUID ( BATTERY_FULL_CHARGED_CAPACITY_WMI_GUID  ,
0x40b40565  ,
0x96f7  ,
0x4435  ,
0x86  ,
0x94  ,
0x97  ,
0xe0  ,
0xe4  ,
0x39  ,
0x59  ,
0x05   
)
DEFINE_GUID ( BATTERY_CYCLE_COUNT_WMI_GUID  ,
0xef98db24  ,
0x0014  ,
0x4c25  ,
0xa5  ,
0x0b  ,
0xc7  ,
0x24  ,
0xae  ,
0x5c  ,
0xd3  ,
0x71   
)
DEFINE_GUID ( BATTERY_STATIC_DATA_WMI_GUID  ,
0x05e1e463  ,
0xe4e2  ,
0x4ea9  ,
0x80  ,
0xcb  ,
0x9b  ,
0xd4  ,
0xb3  ,
0xca  ,
0x06  ,
0x55   
)
DEFINE_GUID ( BATTERY_STATUS_CHANGE_WMI_GUID  ,
0xcddfa0c3  ,
0x7c5b  ,
0x4e43  ,
0xa0  ,
0x34  ,
0x05  ,
0x9f  ,
0xa5  ,
0xb8  ,
0x43  ,
0x64   
)
DEFINE_GUID ( BATTERY_TAG_CHANGE_WMI_GUID  ,
0x5e1f6e19  ,
0x8786  ,
0x4d23  ,
0x94  ,
0xfc  ,
0x9e  ,
0x74  ,
0x6b  ,
0xd5  ,
0xd8  ,
0x88   
)

Variable Documentation

Definition at line 183 of file batclass.h.

Referenced by CmBattQueryInformation().

_In_ ULONG _In_ PBATTERY_NOTIFY BatteryNotify

Definition at line 215 of file batclass.h.

Definition at line 198 of file batclass.h.

_In_ ULONG BatteryTag

Definition at line 173 of file batclass.h.

Definition at line 187 of file batclass.h.

_Out_ PVOID* ClassData
_In_ PVOID _In_ PDEVICE_OBJECT DeviceObject

Definition at line 363 of file batclass.h.

Definition at line 377 of file batclass.h.

Definition at line 345 of file batclass.h.

Definition at line 183 of file batclass.h.

_In_ PVOID WmiLibContext

Definition at line 377 of file batclass.h.

Referenced by BT958WmiInitialize(), and CmBattSystemControl().