ReactOS 0.4.16-dev-2-g02a6913
|
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 |
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 | |
Queries information details about a security descriptor. | |
_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) |
#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.
#define BATTERY_CLASS_MAJOR_VERSION 0x0001 |
Definition at line 163 of file batclass.h.
#define BATTERY_CLASS_MINOR_VERSION 0x0000 |
Definition at line 164 of file batclass.h.
#define BATTERY_CRITICAL 0x00000008 |
Definition at line 76 of file batclass.h.
#define BATTERY_DISCHARGING 0x00000002 |
Definition at line 74 of file batclass.h.
#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.
#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_CAPACITY 0xFFFFFFFF |
Definition at line 65 of file batclass.h.
#define BATTERY_UNKNOWN_RATE 0x80000000 |
Definition at line 82 of file batclass.h.
#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.
#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) |
Definition at line 86 of file batclass.h.
#define IOCTL_BATTERY_QUERY_STATUS CTL_CODE(FILE_DEVICE_BATTERY, 0x13, METHOD_BUFFERED, FILE_READ_ACCESS) |
Definition at line 90 of file batclass.h.
#define IOCTL_BATTERY_QUERY_TAG CTL_CODE(FILE_DEVICE_BATTERY, 0x10, METHOD_BUFFERED, FILE_READ_ACCESS) |
Definition at line 84 of file batclass.h.
#define IOCTL_BATTERY_SET_INFORMATION CTL_CODE(FILE_DEVICE_BATTERY, 0x12, METHOD_BUFFERED, FILE_WRITE_ACCESS) |
Definition at line 88 of file batclass.h.
#define MAX_BATTERY_STRING_SIZE 128 |
Definition at line 70 of file batclass.h.
typedef struct _BATTERY_NOTIFY BATTERY_NOTIFY |
typedef struct _BATTERY_STATUS BATTERY_STATUS |
Definition at line 245 of file batclass.h.
Definition at line 241 of file batclass.h.
Definition at line 242 of file batclass.h.
Definition at line 240 of file batclass.h.
Definition at line 244 of file batclass.h.
Definition at line 243 of file batclass.h.
typedef struct _BATTERY_INFORMATION * PBATTERY_INFORMATION |
typedef struct _BATTERY_NOTIFY * PBATTERY_NOTIFY |
typedef struct _BATTERY_STATUS * PBATTERY_STATUS |
typedef struct _BATTERY_TAG_CHANGE * PBATTERY_TAG_CHANGE |
typedef struct _BATTERY_WAIT_STATUS * PBATTERY_WAIT_STATUS |
typedef struct _BATTERY_WMI_RUNTIME * PBATTERY_WMI_RUNTIME |
typedef struct _BATTERY_WMI_STATUS * PBATTERY_WMI_STATUS |
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.
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.
_Function_class_ | ( | BCLASS_DISABLE_STATUS_NOTIFY_CALLBACK | ) |
_Function_class_ | ( | BCLASS_QUERY_INFORMATION_CALLBACK | ) |
_Function_class_ | ( | BCLASS_QUERY_STATUS_CALLBACK | ) |
_Function_class_ | ( | BCLASS_QUERY_TAG_CALLBACK | ) |
_Function_class_ | ( | BCLASS_SET_INFORMATION_CALLBACK | ) |
_Function_class_ | ( | BCLASS_SET_STATUS_NOTIFY_CALLBACK | ) |
_IRQL_requires_max_ | ( | DISPATCH_LEVEL | ) |
Definition at line 3557 of file common.c.
_IRQL_requires_max_ | ( | PASSIVE_LEVEL | ) |
Queries information details about a security descriptor.
Computes the quota size of a security descriptor.
Assigns a security descriptor for a new object.
An extended function that assigns a security descriptor for a new object.
Frees a security descriptor.
An extended function that sets new information data to a security descriptor.
Modifies some information data about a security descriptor.
[in] | SecurityInformation | Security information details to be queried from a security descriptor. |
[out] | SecurityDescriptor | The returned security descriptor with security information data. |
[in,out] | Length | The returned length of a security descriptor. |
[in,out] | ObjectsSecurityDescriptor | The returned object security descriptor. |
[in] | Object | If specified, the function will use this arbitrary object that points to an object security descriptor. |
[in] | SecurityInformation | Security information details to be set. |
[in] | SecurityDescriptor | A security descriptor where its info is to be changed. |
[in,out] | ObjectsSecurityDescriptor | The returned pointer to security descriptor objects. |
[in] | PoolType | Pool type for the new security descriptor to allocate. |
[in] | GenericMapping | The generic mapping of access rights masks. |
[in] | Object | If specified, the function will use this arbitrary object that points to an object security descriptor. |
[in] | SecurityInformation | Security information details to be set. |
[in] | SecurityDescriptor | A security descriptor where its info is to be changed. |
[in,out] | ObjectsSecurityDescriptor | The returned pointer to security descriptor objects. |
[in] | AutoInheritFlags | Flags bitmask inheritation, influencing how the security descriptor can be inherited and if it can be in the first place. |
[in] | PoolType | Pool type for the new security descriptor to allocate. |
[in] | GenericMapping | The generic mapping of access rights masks. |
[in] | SecurityDescriptor | A security descriptor to be freed from memory. |
[in] | _ParentDescriptor | A security descriptor of the parent object that is being created. |
[in] | _ExplicitDescriptor | An explicit security descriptor that is applied to a new object. |
[out] | NewDescriptor | The new allocated security descriptor. |
[in] | ObjectType | The type of the new object. |
[in] | IsDirectoryObject | Set this to TRUE if the newly created object is a directory object, otherwise set this to FALSE. |
[in] | AutoInheritFlags | Automatic inheritance flags that influence how access control entries within ACLs from security descriptors are inherited. |
[in] | SubjectContext | Security subject context of the new object. |
[in] | GenericMapping | Generic mapping of access mask rights. |
[in] | PoolType | This parameter is unused. |
[in] | ParentDescriptor | A security descriptor of the parent object that is being created. |
[in] | ExplicitDescriptor | An explicit security descriptor that is applied to a new object. |
[out] | NewDescriptor | The new allocated security descriptor. |
[in] | IsDirectoryObject | Set this to TRUE if the newly created object is a directory object, otherwise set this to FALSE. |
[in] | SubjectContext | Security subject context of the new object. |
[in] | GenericMapping | Generic mapping of access mask rights. |
[in] | PoolType | This parameter is unused. |
[in] | SecurityDescriptor | A security descriptor. |
[out] | QuotaInfoSize | The returned quota size of the given security descriptor to the caller. The function may return 0 to this parameter if the descriptor doesn't have a group or a discretionary access control list (DACL) even. |
Definition at line 923 of file Messaging.c.
_Inout_ PDEVICE_OBJECT _Inout_ PIRP _In_ ULONG _In_ ULONG _Out_writes_bytes_opt_ | ( | OutBufferSize | ) |
_In_ ULONG _In_ BATTERY_QUERY_INFORMATION_LEVEL _In_ LONG _Out_writes_bytes_to_ | ( | BufferLength | , |
* | ReturnedLength | ||
) |
DEFINE_GUID | ( | BATTERY_CYCLE_COUNT_WMI_GUID | , |
0xef98db24 | , | ||
0x0014 | , | ||
0x4c25 | , | ||
0xa5 | , | ||
0x0b | , | ||
0xc7 | , | ||
0x24 | , | ||
0xae | , | ||
0x5c | , | ||
0xd3 | , | ||
0x71 | |||
) |
DEFINE_GUID | ( | BATTERY_FULL_CHARGED_CAPACITY_WMI_GUID | , |
0x40b40565 | , | ||
0x96f7 | , | ||
0x4435 | , | ||
0x86 | , | ||
0x94 | , | ||
0x97 | , | ||
0xe0 | , | ||
0xe4 | , | ||
0x39 | , | ||
0x59 | , | ||
0x05 | |||
) |
DEFINE_GUID | ( | BATTERY_RUNTIME_WMI_GUID | , |
0x535a3767 | , | ||
0x1ac2 | , | ||
0x49bc | , | ||
0xa0 | , | ||
0x77 | , | ||
0x3f | , | ||
0x7a | , | ||
0x02 | , | ||
0xe4 | , | ||
0x0a | , | ||
0xec | |||
) |
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_STATUS_WMI_GUID | , |
0xfc4670d1 | , | ||
0xebbf | , | ||
0x416e | , | ||
0x87 | , | ||
0xce | , | ||
0x37 | , | ||
0x4a | , | ||
0x4e | , | ||
0xbc | , | ||
0x11 | , | ||
0x1a | |||
) |
DEFINE_GUID | ( | BATTERY_TAG_CHANGE_WMI_GUID | , |
0x5e1f6e19 | , | ||
0x8786 | , | ||
0x4d23 | , | ||
0x94 | , | ||
0xfc | , | ||
0x9e | , | ||
0x74 | , | ||
0x6b | , | ||
0xd5 | , | ||
0xd8 | , | ||
0x88 | |||
) |
DEFINE_GUID | ( | BATTERY_TEMPERATURE_WMI_GUID | , |
0x1a52a14d | , | ||
0xadce | , | ||
0x4a44 | , | ||
0x9a | , | ||
0x3e | , | ||
0xc8 | , | ||
0xd8 | , | ||
0xf1 | , | ||
0x5f | , | ||
0xf2 | , | ||
0xc2 | |||
) |
DEFINE_GUID | ( | GUID_DEVICE_BATTERY | , |
0x72631e54L | , | ||
0x78A4 | , | ||
0x11d0 | , | ||
0xbc | , | ||
0xf7 | , | ||
0x00 | , | ||
0xaa | , | ||
0x00 | , | ||
0xb7 | , | ||
0xb3 | , | ||
0x2a | |||
) |
Definition at line 185 of file batclass.h.
Referenced by CmBattQueryInformation().
_In_ ULONG _In_ PBATTERY_NOTIFY BatteryNotify |
Definition at line 216 of file batclass.h.
Referenced by CmBattSetStatusNotify().
_In_ ULONG _Out_ PBATTERY_STATUS BatteryStatus |
Definition at line 199 of file batclass.h.
Referenced by CmBattQueryStatus().
Definition at line 173 of file batclass.h.
Referenced by CmBattSetStatusNotify().
Definition at line 228 of file batclass.h.
Definition at line 187 of file batclass.h.
Definition at line 336 of file batclass.h.
Referenced by BatteryClassInitializeDevice(), BatteryClassIoctl(), BatteryClassStatusNotify(), BatteryClassUnload(), and CmpQueryKeyData().
Definition at line 363 of file batclass.h.
Definition at line 380 of file batclass.h.
Definition at line 365 of file batclass.h.
Definition at line 345 of file batclass.h.
Definition at line 184 of file batclass.h.
Definition at line 367 of file batclass.h.
Definition at line 188 of file batclass.h.
Referenced by BatteryClassIoctl(), BiConvertRegistryDataToElement(), CmBattQueryInformation(), CompBattQueryInformation(), ExpValidateNlsLocaleId(), Ext2ReadFile(), Ext2WriteFile(), GetDisplayIdentifier(), HaliQuerySystemInformation(), IopGetBasicInformationFile(), IopGetFileInformation(), IopLogWorker(), IopQueryDeviceInformation(), IoQueryFileInformation(), IoQueryVolumeInformation(), IsThisARootDirectory(), LdrQueryImageFileExecutionOptions(), LdrQueryImageFileExecutionOptionsEx(), LdrQueryImageFileKeyOption(), LsapRegEnumerateSubKey(), LsapRegEnumerateValue(), RtlGetNtProductType(), RtlpNtEnumerateSubKey(), SampRegEnumerateSubKey(), SampRegEnumerateValue(), Test_API(), Test_ThreadBasicInformationClass(), TestAMLIllegalIOPortAddresses(), VfatCommonRead(), VGAMapVideoMemory(), and VideoPortGetAccessRanges().
Definition at line 377 of file batclass.h.
Referenced by BT958WmiInitialize(), and CmBattSystemControl().