ReactOS 0.4.16-dev-550-g2186ce3
|
#include <ntsecapi.h>
Go to the source code of this file.
Classes | |
struct | _GLOBAL_MACHINE_POWER_POLICY |
struct | _GLOBAL_USER_POWER_POLICY |
struct | _GLOBAL_POWER_POLICY |
struct | _MACHINE_POWER_POLICY |
struct | _MACHINE_PROCESSOR_POWER_POLICY |
struct | _USER_POWER_POLICY |
struct | _POWER_POLICY |
Macros | |
#define | EnableMultiBatteryDisplay 2 |
#define | EnablePasswordLogon 4 |
#define | EnableSysTrayBatteryMeter 1 |
#define | EnableWakeOnRing 8 |
#define | EnableVideoDimDisplay 16 |
#define | NEWSCHEME (UINT)-1 |
#define EnableMultiBatteryDisplay 2 |
Definition at line 15 of file powrprof.h.
#define EnablePasswordLogon 4 |
Definition at line 16 of file powrprof.h.
#define EnableSysTrayBatteryMeter 1 |
Definition at line 17 of file powrprof.h.
#define EnableVideoDimDisplay 16 |
Definition at line 19 of file powrprof.h.
#define EnableWakeOnRing 8 |
Definition at line 18 of file powrprof.h.
Definition at line 20 of file powrprof.h.
typedef BOOLEAN(CALLBACK * PFNNTINITIATEPWRACTION) (POWER_ACTION, SYSTEM_POWER_STATE, ULONG, BOOLEAN) |
Definition at line 95 of file powrprof.h.
typedef struct _GLOBAL_POWER_POLICY * PGLOBAL_POWER_POLICY |
typedef struct _MACHINE_POWER_POLICY * PMACHINE_POWER_POLICY |
typedef struct _POWER_POLICY POWER_POLICY |
typedef struct _POWER_POLICY * PPOWER_POLICY |
typedef struct _USER_POWER_POLICY * PUSER_POWER_POLICY |
typedef BOOLEAN(CALLBACK * PWRSCHEMESENUMPROC) (UINT, DWORD, LPWSTR, DWORD, LPWSTR, PPOWER_POLICY, LPARAM) |
Definition at line 94 of file powrprof.h.
NTSTATUS WINAPI CallNtPowerInformation | ( | POWER_INFORMATION_LEVEL | InformationLevel, |
PVOID | lpInputBuffer, | ||
ULONG | nInputBufferSize, | ||
PVOID | lpOutputBuffer, | ||
ULONG | nOutputBufferSize | ||
) |
Definition at line 59 of file powrprof.c.
Referenced by Hib_InitDialog(), Hib_SaveData(), IsBatteryUsed(), ProcessorDlgProc(), SetProcSpeed(), and test_CallNtPowerInformation().
Definition at line 79 of file powrprof.c.
Referenced by CreateEnergyList(), and test_CanUserWritePwrScheme().
Definition at line 99 of file powrprof.c.
Referenced by DelScheme(), and test_DeletePwrScheme().
BOOLEAN WINAPI EnumPwrSchemes | ( | PWRSCHEMESENUMPROC | lpfnPwrSchemesEnumProc, |
LPARAM | lParam | ||
) |
Definition at line 219 of file powrprof.c.
Referenced by BuildSchemesList(), ShowPowerSchemesPopupMenu(), and test_EnumPwrSchemes().
Definition at line 285 of file powrprof.c.
Referenced by CreateEnergyList(), DeletePwrScheme(), GetCurrentPowerPolicies(), ShowPowerSchemesPopupMenu(), test_DeletePwrScheme(), test_GetCurrentPowerPolicies(), and test_GetSetActivePwrScheme().
BOOLEAN WINAPI GetCurrentPowerPolicies | ( | PGLOBAL_POWER_POLICY | pGlobalPowerPolicy, |
PPOWER_POLICY | pPowerPolicy | ||
) |
Definition at line 321 of file powrprof.c.
Referenced by test_GetCurrentPowerPolicies(), test_ValidatePowerPolicies(), and test_ValidatePowerPolicies_Old().
BOOLEAN WINAPI GetPwrCapabilities | ( | PSYSTEM_POWER_CAPABILITIES | lpSystemPowerCapabilities | ) |
Definition at line 358 of file powrprof.c.
Referenced by Adv_InitDialog(), Applet1(), CreateEnergyList(), Hib_InitDialog(), Pos_InitData(), and test_GetPwrCapabilities().
Definition at line 381 of file powrprof.c.
Referenced by test_GetPwrDiskSpindownRange().
BOOLEAN WINAPI IsAdminOverrideActive | ( | PADMINISTRATOR_POWER_POLICY | p | ) |
Definition at line 450 of file powrprof.c.
Referenced by ExitWindowsDialog(), GetAllowedShutdownOptions(), and wmain().
Definition at line 469 of file powrprof.c.
Definition at line 488 of file powrprof.c.
Referenced by ExitWindowsDialog(), GetAllowedShutdownOptions(), IsSuspendAllowed(), and ShutdownOnFriendlyInit().
BOOLEAN WINAPI ReadGlobalPwrPolicy | ( | PGLOBAL_POWER_POLICY | pGlobalPowerPolicy | ) |
Definition at line 521 of file powrprof.c.
Referenced by Adv_InitDialog(), Ala_InitData(), CreateEnergyList(), GetCurrentPowerPolicies(), and test_ReadGlobalPwrPolicy().
BOOLEAN WINAPI ReadProcessorPwrScheme | ( | UINT | uiID, |
PMACHINE_PROCESSOR_POWER_POLICY | pMachineProcessorPowerPolicy | ||
) |
Definition at line 584 of file powrprof.c.
Referenced by ReadProcessorPwrScheme(), and test_ReadProcessorPwrScheme().
BOOLEAN WINAPI ReadPwrScheme | ( | UINT | uiID, |
PPOWER_POLICY | pPowerPolicy | ||
) |
Definition at line 610 of file powrprof.c.
Referenced by CreateEnergyList(), GetCurrentPowerPolicies(), SetActivePwrScheme(), and test_ReadPwrScheme().
BOOLEAN WINAPI SetActivePwrScheme | ( | UINT | uiID, |
PGLOBAL_POWER_POLICY | lpGlobalPowerPolicy, | ||
PPOWER_POLICY | lpPowerPolicy | ||
) |
Definition at line 642 of file powrprof.c.
Referenced by Pos_SaveData(), ShowPowerSchemesPopupMenu(), test_GetCurrentPowerPolicies(), and test_GetSetActivePwrScheme().
BOOLEAN WINAPI SetSuspendState | ( | BOOLEAN | Hibernate, |
BOOLEAN | ForceCritical, | ||
BOOLEAN | DisableWakeEvent | ||
) |
Definition at line 681 of file powrprof.c.
Referenced by ExitWindowsDialog(), ShutdownDialogProc(), and wmain().
BOOLEAN WINAPI ValidatePowerPolicies | ( | PGLOBAL_POWER_POLICY | pGPP, |
PPOWER_POLICY | pPP | ||
) |
Definition at line 1017 of file powrprof.c.
Referenced by CreateEnergyList(), EnumPowerSchemeCallback(), SetActivePwrScheme(), test_ValidatePowerPolicies(), test_ValidatePowerPolicies_Next(), and test_ValidatePowerPolicies_Old().
BOOLEAN WINAPI WriteGlobalPwrPolicy | ( | PGLOBAL_POWER_POLICY | pGlobalPowerPolicy | ) |
Definition at line 690 of file powrprof.c.
Referenced by Adv_SaveData(), and SetActivePwrScheme().
BOOLEAN WINAPI WriteProcessorPwrScheme | ( | UINT | ID, |
PMACHINE_PROCESSOR_POWER_POLICY | pMachineProcessorPowerPolicy | ||
) |
Definition at line 732 of file powrprof.c.
BOOLEAN WINAPI WritePwrScheme | ( | PUINT | puiID, |
LPWSTR | lpszName, | ||
LPWSTR | lpszDescription, | ||
PPOWER_POLICY | pPowerPolicy | ||
) |
Definition at line 766 of file powrprof.c.
Referenced by SavePowerScheme(), and test_WritePwrScheme().