ReactOS  0.4.14-dev-293-g2b39b42
poclass.h File Reference
#include "batclass.h"
Include dependency graph for poclass.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _THERMAL_INFORMATION
 
struct  _PROCESSOR_OBJECT_INFO
 

Macros

#define IOCTL_GET_PROCESSOR_OBJ_INFO   CTL_CODE(FILE_DEVICE_BATTERY, 0x60, METHOD_BUFFERED, FILE_READ_ACCESS)
 
#define IOCTL_GET_SYS_BUTTON_CAPS   CTL_CODE(FILE_DEVICE_BATTERY, 0x50, METHOD_BUFFERED, FILE_READ_ACCESS)
 
#define IOCTL_GET_SYS_BUTTON_EVENT   CTL_CODE(FILE_DEVICE_BATTERY, 0x51, METHOD_BUFFERED, FILE_READ_ACCESS)
 
#define IOCTL_SET_SYS_MESSAGE_INDICATOR   CTL_CODE(FILE_DEVICE_BATTERY, 0x70, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#define IOCTL_NOTIFY_SWITCH_EVENT   CTL_CODE(FILE_DEVICE_BATTERY, 0x40, METHOD_BUFFERED, FILE_READ_ACCESS)
 
#define IOCTL_THERMAL_QUERY_INFORMATION   CTL_CODE(FILE_DEVICE_BATTERY, 0x20, METHOD_BUFFERED, FILE_READ_ACCESS)
 
#define IOCTL_THERMAL_SET_COOLING_POLICY   CTL_CODE(FILE_DEVICE_BATTERY, 0x21, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#define IOCTL_QUERY_LID   CTL_CODE(FILE_DEVICE_BATTERY, 0x30, METHOD_BUFFERED, FILE_READ_ACCESS)
 
#define IOCTL_RUN_ACTIVE_COOLING_METHOD   CTL_CODE(FILE_DEVICE_BATTERY, 0x22, METHOD_BUFFERED, FILE_WRITE_ACCESS)
 
#define SYS_BUTTON_POWER   0x00000001
 
#define SYS_BUTTON_SLEEP   0x00000002
 
#define SYS_BUTTON_LID   0x00000004
 
#define SYS_BUTTON_WAKE   0x80000000
 
#define MAX_ACTIVE_COOLING_LEVELS   10
 
#define ACTIVE_COOLING   0
 
#define PASSIVE_COOLING   1
 

Typedefs

typedef struct _THERMAL_INFORMATION THERMAL_INFORMATION
 
typedef struct _THERMAL_INFORMATIONPTHERMAL_INFORMATION
 
typedef struct _PROCESSOR_OBJECT_INFO PROCESSOR_OBJECT_INFO
 
typedef struct _PROCESSOR_OBJECT_INFOPPROCESSOR_OBJECT_INFO
 

Functions

 DEFINE_GUID (GUID_CLASS_INPUT, 0x4D1E55B2L, 0xF16F, 0x11CF, 0x88, 0xCB, 0x00, 0x11, 0x11, 0x00, 0x00, 0x30)
 
 DEFINE_GUID (GUID_DEVICE_LID, 0x4AFA3D52L, 0x74A7, 0x11d0, 0xbe, 0x5e, 0x00, 0xA0, 0xC9, 0x06, 0x28, 0x57)
 
 DEFINE_GUID (GUID_DEVICE_MEMORY, 0x3fd0f03dL, 0x92e0, 0x45fb, 0xb7, 0x5c, 0x5e, 0xd8, 0xff, 0xb0, 0x10, 0x21)
 
 DEFINE_GUID (GUID_DEVICE_MESSAGE_INDICATOR, 0XCD48A365L, 0xfa94, 0x4ce2, 0xa2, 0x32, 0xa1, 0xb7, 0x64, 0xe5, 0xd8, 0xb4)
 
 DEFINE_GUID (GUID_DEVICE_PROCESSOR, 0x97fadb10L, 0x4e33, 0x40ae, 0x35, 0x9c, 0x8b, 0xef, 0x02, 0x9d, 0xbd, 0xd0)
 
 DEFINE_GUID (GUID_DEVICE_SYS_BUTTON, 0x4AFA3D53L, 0x74A7, 0x11d0, 0xbe, 0x5e, 0x00, 0xA0, 0xC9, 0x06, 0x28, 0x57)
 
 DEFINE_GUID (GUID_DEVICE_THERMAL_ZONE, 0x4AFA3D51L, 0x74A7, 0x11d0, 0xbe, 0x5e, 0x00, 0xA0, 0xC9, 0x06, 0x28, 0x57)
 

Macro Definition Documentation

◆ ACTIVE_COOLING

#define ACTIVE_COOLING   0

Definition at line 87 of file poclass.h.

◆ IOCTL_GET_PROCESSOR_OBJ_INFO

#define IOCTL_GET_PROCESSOR_OBJ_INFO   CTL_CODE(FILE_DEVICE_BATTERY, 0x60, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 54 of file poclass.h.

◆ IOCTL_GET_SYS_BUTTON_CAPS

#define IOCTL_GET_SYS_BUTTON_CAPS   CTL_CODE(FILE_DEVICE_BATTERY, 0x50, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 57 of file poclass.h.

◆ IOCTL_GET_SYS_BUTTON_EVENT

#define IOCTL_GET_SYS_BUTTON_EVENT   CTL_CODE(FILE_DEVICE_BATTERY, 0x51, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 60 of file poclass.h.

◆ IOCTL_NOTIFY_SWITCH_EVENT

#define IOCTL_NOTIFY_SWITCH_EVENT   CTL_CODE(FILE_DEVICE_BATTERY, 0x40, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 66 of file poclass.h.

◆ IOCTL_QUERY_LID

#define IOCTL_QUERY_LID   CTL_CODE(FILE_DEVICE_BATTERY, 0x30, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 75 of file poclass.h.

◆ IOCTL_RUN_ACTIVE_COOLING_METHOD

#define IOCTL_RUN_ACTIVE_COOLING_METHOD   CTL_CODE(FILE_DEVICE_BATTERY, 0x22, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 78 of file poclass.h.

◆ IOCTL_SET_SYS_MESSAGE_INDICATOR

#define IOCTL_SET_SYS_MESSAGE_INDICATOR   CTL_CODE(FILE_DEVICE_BATTERY, 0x70, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 63 of file poclass.h.

◆ IOCTL_THERMAL_QUERY_INFORMATION

#define IOCTL_THERMAL_QUERY_INFORMATION   CTL_CODE(FILE_DEVICE_BATTERY, 0x20, METHOD_BUFFERED, FILE_READ_ACCESS)

Definition at line 69 of file poclass.h.

◆ IOCTL_THERMAL_SET_COOLING_POLICY

#define IOCTL_THERMAL_SET_COOLING_POLICY   CTL_CODE(FILE_DEVICE_BATTERY, 0x21, METHOD_BUFFERED, FILE_WRITE_ACCESS)

Definition at line 72 of file poclass.h.

◆ MAX_ACTIVE_COOLING_LEVELS

#define MAX_ACTIVE_COOLING_LEVELS   10

Definition at line 86 of file poclass.h.

◆ PASSIVE_COOLING

#define PASSIVE_COOLING   1

Definition at line 88 of file poclass.h.

◆ SYS_BUTTON_LID

#define SYS_BUTTON_LID   0x00000004

Definition at line 83 of file poclass.h.

◆ SYS_BUTTON_POWER

#define SYS_BUTTON_POWER   0x00000001

Definition at line 81 of file poclass.h.

◆ SYS_BUTTON_SLEEP

#define SYS_BUTTON_SLEEP   0x00000002

Definition at line 82 of file poclass.h.

◆ SYS_BUTTON_WAKE

#define SYS_BUTTON_WAKE   0x80000000

Definition at line 84 of file poclass.h.

Typedef Documentation

◆ PPROCESSOR_OBJECT_INFO

◆ PROCESSOR_OBJECT_INFO

◆ PTHERMAL_INFORMATION

◆ THERMAL_INFORMATION

Function Documentation

◆ DEFINE_GUID() [1/7]

DEFINE_GUID ( GUID_CLASS_INPUT  ,
0x4D1E55B2L  ,
0xF16F  ,
0x11CF  ,
0x88  ,
0xCB  ,
0x00  ,
0x11  ,
0x11  ,
0x00  ,
0x00  ,
0x30   
)

◆ DEFINE_GUID() [2/7]

DEFINE_GUID ( GUID_DEVICE_LID  ,
0x4AFA3D52L  ,
0x74A7  ,
0x11d0  ,
0xbe  ,
0x5e  ,
0x00  ,
0xA0  ,
0xC9  ,
0x06  ,
0x28  ,
0x57   
)

◆ DEFINE_GUID() [3/7]

DEFINE_GUID ( GUID_DEVICE_MEMORY  ,
0x3fd0f03dL  ,
0x92e0  ,
0x45fb  ,
0xb7  ,
0x5c  ,
0x5e  ,
0xd8  ,
0xff  ,
0xb0  ,
0x10  ,
0x21   
)

◆ DEFINE_GUID() [4/7]

DEFINE_GUID ( GUID_DEVICE_MESSAGE_INDICATOR  ,
0XCD48A365L  ,
0xfa94  ,
0x4ce2  ,
0xa2  ,
0x32  ,
0xa1  ,
0xb7  ,
0x64  ,
0xe5  ,
0xd8  ,
0xb4   
)

◆ DEFINE_GUID() [5/7]

DEFINE_GUID ( GUID_DEVICE_PROCESSOR  ,
0x97fadb10L  ,
0x4e33  ,
0x40ae  ,
0x35  ,
0x9c  ,
0x8b  ,
0xef  ,
0x02  ,
0x9d  ,
0xbd  ,
0xd0   
)

◆ DEFINE_GUID() [6/7]

DEFINE_GUID ( GUID_DEVICE_SYS_BUTTON  ,
0x4AFA3D53L  ,
0x74A7  ,
0x11d0  ,
0xbe  ,
0x5e  ,
0x00  ,
0xA0  ,
0xC9  ,
0x06  ,
0x28  ,
0x57   
)

◆ DEFINE_GUID() [7/7]

DEFINE_GUID ( GUID_DEVICE_THERMAL_ZONE  ,
0x4AFA3D51L  ,
0x74A7  ,
0x11d0  ,
0xbe  ,
0x5e  ,
0x00  ,
0xA0  ,
0xC9  ,
0x06  ,
0x28  ,
0x57   
)