|
ReactOS 0.4.16-dev-1948-gd260c1d
|
#include "precomp.h"#include <devguid.h>#include <winioctl.h>#include <powrprof.h>#include <windows.h>#include <batclass.h>
Go to the source code of this file.
Classes | |
| struct | _PWRSCHEMECONTEXT |
Macros | |
| #define | HOUR_IN_SECS 3600 |
| #define | MIN_IN_SECS 60 |
Typedefs | |
| typedef struct _PWRSCHEMECONTEXT | PWRSCHEMECONTEXT |
| typedef struct _PWRSCHEMECONTEXT * | PPWRSCHEMECONTEXT |
Functions | |
| static UINT | Quantize (BYTE p) |
| static HICON | DynamicLoadIcon (HINSTANCE hinst) |
| HRESULT STDMETHODCALLTYPE | Power_Init (_In_ CSysTray *pSysTray) |
| HRESULT STDMETHODCALLTYPE | Power_Update (_In_ CSysTray *pSysTray) |
| HRESULT STDMETHODCALLTYPE | Power_Shutdown (_In_ CSysTray *pSysTray) |
| static void | _RunPower () |
| static void | _ShowContextMenu (CSysTray *pSysTray) |
| static BOOLEAN CALLBACK | PowerSchemesEnumProc (UINT uiIndex, DWORD dwName, LPWSTR sName, DWORD dwDesc, LPWSTR sDesc, PPOWER_POLICY pp, LPARAM lParam) |
| static VOID | ShowPowerSchemesPopupMenu (CSysTray *pSysTray) |
| HRESULT STDMETHODCALLTYPE | Power_Message (_In_ CSysTray *pSysTray, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult) |
Variables | |
| int | br_icons [5] = { IDI_BATTCAP0, IDI_BATTCAP1, IDI_BATTCAP2, IDI_BATTCAP3, IDI_BATTCAP4 } |
| int | bc_icons [5] = { IDI_BATTCHA0, IDI_BATTCHA1, IDI_BATTCHA2, IDI_BATTCHA3, IDI_BATTCHA4 } |
| CString | g_strTooltip |
| static HICON | g_hIconBattery = NULL |
| typedef struct _PWRSCHEMECONTEXT * PPWRSCHEMECONTEXT |
| typedef struct _PWRSCHEMECONTEXT PWRSCHEMECONTEXT |
|
static |
Definition at line 172 of file power.cpp.
Referenced by _ShowContextMenu(), and Power_Message().
Definition at line 177 of file power.cpp.
Referenced by Power_Message().
Definition at line 79 of file power.cpp.
Referenced by Power_Init(), and Power_Update().
| HRESULT STDMETHODCALLTYPE Power_Init | ( | _In_ CSysTray * | pSysTray | ) |
| HRESULT STDMETHODCALLTYPE Power_Message | ( | _In_ CSysTray * | pSysTray, |
| UINT | uMsg, | ||
| WPARAM | wParam, | ||
| LPARAM | lParam, | ||
| LRESULT & | lResult | ||
| ) |
Definition at line 264 of file power.cpp.
| HRESULT STDMETHODCALLTYPE Power_Shutdown | ( | _In_ CSysTray * | pSysTray | ) |
| HRESULT STDMETHODCALLTYPE Power_Update | ( | _In_ CSysTray * | pSysTray | ) |
|
static |
Definition at line 205 of file power.cpp.
Referenced by ShowPowerSchemesPopupMenu().
Definition at line 53 of file power.cpp.
Referenced by DynamicLoadIcon().
Definition at line 229 of file power.cpp.
Referenced by Power_Message().
| int bc_icons[5] = { IDI_BATTCHA0, IDI_BATTCHA1, IDI_BATTCHA2, IDI_BATTCHA3, IDI_BATTCHA4 } |
Definition at line 20 of file power.cpp.
Referenced by DynamicLoadIcon().
| int br_icons[5] = { IDI_BATTCAP0, IDI_BATTCAP1, IDI_BATTCAP2, IDI_BATTCAP3, IDI_BATTCAP4 } |
Definition at line 19 of file power.cpp.
Referenced by DynamicLoadIcon().
Definition at line 30 of file power.cpp.
Referenced by Power_Init(), and Power_Update().
| CString g_strTooltip |
Definition at line 29 of file power.cpp.
Referenced by DynamicLoadIcon(), Power_Init(), and Power_Update().