96 if (dwDescription != 0)
111 if (bResult ==
FALSE)
242 INT i = 0, iCurSel = 0;
280 for (
i = 0;
i < 16;
i++)
336 int ifrom = 0,
i = 0,
imin = 0;
341 for (
i = 1;
i < 9;
i++)
441 if (hwndCtrl !=
NULL)
444 if (tmp > 0 && tmp < 16)
451 if (hwndCtrl !=
NULL)
454 if (tmp > 0 && tmp < 16)
461 if (hwndCtrl !=
NULL)
464 if (tmp > 0 && tmp < 16)
471 if (hwndCtrl !=
NULL)
474 if (tmp > 0 && tmp < 16)
481 if (hwndCtrl !=
NULL)
484 if (tmp > 0 && tmp < 16)
491 if (hwndCtrl !=
NULL)
494 if (tmp > 0 && tmp < 16)
501 if (hwndCtrl !=
NULL)
504 if (tmp > 0 && tmp < 16)
511 if (hwndCtrl !=
NULL)
514 if (tmp > 0 && tmp < 16)
533 WCHAR szTitleBuffer[256];
534 WCHAR szRawBuffer[256], szCookedBuffer[512];
538 WCHAR szErrorText[512];
597 TCHAR szSchemeName[512];
651 pSaveSchemeData->pPageData->pSelectedPowerScheme->pszName);
800 if (aps == pScheme->uId)
805 (
LPARAM)pScheme->pszName);
811 ListEntry = ListEntry->
Flink;
#define IDS_DEL_SCHEME_TITLE
#define IDS_DEL_SCHEME_ERROR
#define IDC_MONITORDCLIST
#define IDC_STANDBYACLIST
#define IDC_MONITORACLIST
#define IDC_HIBERNATEACLIST
#define IDD_SAVEPOWERSCHEME
#define IDC_STANDBYDCLIST
#define IDC_HIBERNATEDCLIST
#define HeapFree(x, y, z)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
#define RemoveEntryList(Entry)
#define InsertTailList(ListHead, Entry)
#define InitializeListHead(ListHead)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static VOID Pos_SaveData(HWND hwndDlg, PPOWER_SCHEMES_PAGE_DATA pPageData)
struct _POWER_SCHEME POWER_SCHEME
static VOID DeletePowerScheme(PPOWER_SCHEME pScheme)
struct _SAVE_POWER_SCHEME_DATA SAVE_POWER_SCHEME_DATA
static BOOL CreateEnergyList(HWND hwndDlg, PPOWER_SCHEMES_PAGE_DATA pPageData)
struct _SAVE_POWER_SCHEME_DATA * PSAVE_POWER_SCHEME_DATA
BOOLEAN Pos_InitData(HWND hwndDlg)
static VOID LoadConfig(HWND hwndDlg, PPOWER_SCHEMES_PAGE_DATA pPageData, PPOWER_SCHEME pScheme)
static BOOL DelScheme(HWND hwnd, PPOWER_SCHEMES_PAGE_DATA pPageData)
INT_PTR CALLBACK PowerSchemesDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static BOOL SavePowerScheme(HWND hwndDlg, PSAVE_POWER_SCHEME_DATA pSaveSchemeData)
struct _POWER_SCHEMES_PAGE_DATA POWER_SCHEMES_PAGE_DATA
struct _POWER_SCHEME * PPOWER_SCHEME
struct _POWER_SCHEMES_PAGE_DATA * PPOWER_SCHEMES_PAGE_DATA
INT_PTR CALLBACK SaveSchemeDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static BOOLEAN CALLBACK EnumPowerSchemeCallback(UINT uiIndex, DWORD dwName, LPTSTR pszName, DWORD dwDesc, LPWSTR pszDesc, PPOWER_POLICY pp, LPARAM lParam)
static PPOWER_SCHEME AddPowerScheme(PPOWER_SCHEMES_PAGE_DATA pPageData, UINT uId, DWORD dwName, LPTSTR pszName, DWORD dwDescription, LPWSTR pszDescription, PPOWER_POLICY pp)
static VOID BuildSchemesList(PPOWER_SCHEMES_PAGE_DATA pPageData)
static VOID DestroySchemesList(PPOWER_SCHEMES_PAGE_DATA pPageData)
static VOID Pos_InitPage(HWND hwndDlg)
static VOID SaveScheme(HWND hwndDlg, PPOWER_SCHEMES_PAGE_DATA pPageData)
BOOLEAN WINAPI GetPwrCapabilities(PSYSTEM_POWER_CAPABILITIES lpSystemPowerCapabilities)
BOOLEAN WINAPI ReadPwrScheme(UINT uiID, PPOWER_POLICY pPowerPolicy)
BOOLEAN WINAPI GetActivePwrScheme(PUINT puiID)
BOOLEAN WINAPI ValidatePowerPolicies(PGLOBAL_POWER_POLICY pGPP, PPOWER_POLICY pPP)
BOOLEAN WINAPI WritePwrScheme(PUINT puiID, LPWSTR lpszName, LPWSTR lpszDescription, PPOWER_POLICY pPowerPolicy)
BOOLEAN WINAPI SetActivePwrScheme(UINT uiID, PGLOBAL_POWER_POLICY lpGlobalPowerPolicy, PPOWER_POLICY lpPowerPolicy)
BOOLEAN WINAPI EnumPwrSchemes(PWRSCHEMESENUMPROC lpfnPwrSchemesEnumProc, LPARAM lParam)
BOOLEAN WINAPI DeletePwrScheme(UINT uiIndex)
BOOLEAN WINAPI CanUserWritePwrScheme(VOID)
BOOLEAN WINAPI ReadGlobalPwrPolicy(PGLOBAL_POWER_POLICY pGlobalPowerPolicy)
static const WCHAR szName[]
#define PropSheet_Changed(d, w)
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
BOOLEAN SystemBatteriesPresent
struct _LIST_ENTRY * Flink
MACHINE_POWER_POLICY mach
PPOWER_SCHEME pActivePowerScheme
LIST_ENTRY PowerSchemesList
PPOWER_SCHEME pSelectedPowerScheme
PPOWER_SCHEMES_PAGE_DATA pPageData
#define CONTAINING_RECORD(address, type, field)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
HWND WINAPI GetParent(_In_ HWND)
#define SendDlgItemMessage
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)