ReactOS 0.4.16-dev-747-gbc52d5f
|
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <winreg.h>
#include <ndk/pofuncs.h>
#include <ndk/rtlfuncs.h>
#include <ndk/setypes.h>
#include <powrprof.h>
#include <wine/debug.h>
#include <wine/unicode.h>
Go to the source code of this file.
Macros | |
#define | WIN32_NO_STATUS |
#define | NTOS_MODE_USER |
Variables | |
static const WCHAR | szPowerCfgSubKey [] |
static const WCHAR | szUserPowerConfigSubKey [] |
static const WCHAR | szCurrentPowerPolicies [] |
static const WCHAR | szPolicies [] = L"Policies" |
static const WCHAR | szName [] = L"Name" |
static const WCHAR | szDescription [] = L"Description" |
static const WCHAR | szSemaphoreName [] = L"PowerProfileRegistrySemaphore" |
static const WCHAR | szDiskMax [] = L"DiskSpindownMax" |
static const WCHAR | szDiskMin [] = L"DiskSpindownMin" |
static const WCHAR | szLastID [] = L"LastID" |
UINT | g_LastID = (UINT)-1 |
HANDLE | PPRegSemaphore = NULL |
#define NTOS_MODE_USER |
Definition at line 27 of file powrprof.c.
#define WIN32_NO_STATUS |
Definition at line 23 of file powrprof.c.
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().
|
static |
Definition at line 904 of file powrprof.c.
Referenced by ValidatePowerPolicies().
|
static |
Creates a security descriptor for the power management registry semaphore.
[out] | PowrProfSd | A pointer to an allocated security descriptor for the semaphore. |
Definition at line 959 of file powrprof.c.
Referenced by DllMain().
Definition at line 99 of file powrprof.c.
Referenced by DelScheme(), and test_DeletePwrScheme().
Definition at line 1370 of file powrprof.c.
BOOLEAN WINAPI EnumPwrSchemes | ( | PWRSCHEMESENUMPROC | lpfnPwrSchemesEnumProc, |
LPARAM | lParam | ||
) |
Definition at line 219 of file powrprof.c.
Referenced by BuildSchemesList(), ShowPowerSchemesPopupMenu(), and test_EnumPwrSchemes().
|
static |
Definition at line 1107 of file powrprof.c.
Referenced by ValidatePowerPolicies().
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().
POWER_PLATFORM_ROLE WINAPI PowerDeterminePlatformRole | ( | void | ) |
Definition at line 534 of file powrprof.c.
POWER_PLATFORM_ROLE WINAPI PowerDeterminePlatformRoleEx | ( | ULONG | version | ) |
Definition at line 540 of file powrprof.c.
DWORD WINAPI PowerEnumerate | ( | HKEY | key, |
const GUID * | scheme, | ||
const GUID * | subgroup, | ||
POWER_DATA_ACCESSOR | flags, | ||
ULONG | index, | ||
UCHAR * | buffer, | ||
DWORD * | buffer_size | ||
) |
Definition at line 546 of file powrprof.c.
Definition at line 507 of file powrprof.c.
DWORD WINAPI PowerReadDCValue | ( | HKEY | RootPowerKey, |
const GUID * | Scheme, | ||
const GUID * | SubGroup, | ||
const GUID * | PowerSettings, | ||
PULONG | Type, | ||
PUCHAR | Buffer, | ||
DWORD * | BufferSize | ||
) |
Definition at line 520 of file powrprof.c.
DWORD WINAPI PowerReadFriendlyName | ( | HKEY | RootPowerKey, |
const GUID * | Scheme, | ||
const GUID * | SubGroup, | ||
const GUID * | PowerSettings, | ||
UCHAR * | Buffer, | ||
DWORD * | BufferSize | ||
) |
Definition at line 526 of file powrprof.c.
DWORD WINAPI PowerRegisterSuspendResumeNotification | ( | DWORD | flags, |
HANDLE | recipient, | ||
PHPOWERNOTIFY | handle | ||
) |
Definition at line 554 of file powrprof.c.
Definition at line 513 of file powrprof.c.
DWORD WINAPI PowerSettingRegisterNotification | ( | const GUID * | setting, |
DWORD | flags, | ||
HANDLE | recipient, | ||
PHPOWERNOTIFY | handle | ||
) |
Definition at line 567 of file powrprof.c.
DWORD WINAPI PowerSettingUnregisterNotification | ( | HPOWERNOTIFY | handle | ) |
Definition at line 574 of file powrprof.c.
DWORD WINAPI PowerUnregisterSuspendResumeNotification | ( | HPOWERNOTIFY | handle | ) |
Definition at line 561 of file powrprof.c.
DWORD WINAPI PowerWriteACValueIndex | ( | HKEY | key, |
const GUID * | scheme, | ||
const GUID * | subgroup, | ||
const GUID * | setting, | ||
DWORD | index | ||
) |
Definition at line 580 of file powrprof.c.
|
static |
Definition at line 185 of file powrprof.c.
Referenced by EnumPwrSchemes(), and ReadPwrScheme().
|
static |
Definition at line 128 of file powrprof.c.
Referenced by EnumPwrSchemes(), and ReadPwrScheme().
BOOLEAN WINAPI ReadGlobalPwrPolicy | ( | PGLOBAL_POWER_POLICY | pGlobalPowerPolicy | ) |
Definition at line 632 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 695 of file powrprof.c.
Referenced by ReadProcessorPwrScheme(), and test_ReadProcessorPwrScheme().
BOOLEAN WINAPI ReadPwrScheme | ( | UINT | uiID, |
PPOWER_POLICY | pPowerPolicy | ||
) |
Definition at line 721 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 753 of file powrprof.c.
Referenced by Pos_SaveData(), ShowPowerSchemesPopupMenu(), test_GetCurrentPowerPolicies(), and test_GetSetActivePwrScheme().
Definition at line 860 of file powrprof.c.
Referenced by WritePwrScheme().
BOOLEAN WINAPI SetSuspendState | ( | BOOLEAN | Hibernate, |
BOOLEAN | ForceCritical, | ||
BOOLEAN | DisableWakeEvent | ||
) |
Definition at line 792 of file powrprof.c.
Referenced by ExitWindowsDialog(), ShutdownDialogProc(), and wmain().
BOOLEAN WINAPI ValidatePowerPolicies | ( | PGLOBAL_POWER_POLICY | pGPP, |
PPOWER_POLICY | pPP | ||
) |
Definition at line 1128 of file powrprof.c.
Referenced by CreateEnergyList(), EnumPowerSchemeCallback(), SetActivePwrScheme(), test_ValidatePowerPolicies(), test_ValidatePowerPolicies_Next(), and test_ValidatePowerPolicies_Old().
WINE_DEFAULT_DEBUG_CHANNEL | ( | powrprof | ) |
BOOLEAN WINAPI WriteGlobalPwrPolicy | ( | PGLOBAL_POWER_POLICY | pGlobalPowerPolicy | ) |
Definition at line 801 of file powrprof.c.
Referenced by Adv_SaveData(), and SetActivePwrScheme().
BOOLEAN WINAPI WriteProcessorPwrScheme | ( | UINT | ID, |
PMACHINE_PROCESSOR_POWER_POLICY | pMachineProcessorPowerPolicy | ||
) |
Definition at line 843 of file powrprof.c.
BOOLEAN WINAPI WritePwrPolicy | ( | PUINT | puiID, |
PPOWER_POLICY | pPowerPolicy | ||
) |
Definition at line 1345 of file powrprof.c.
Referenced by SetActivePwrScheme(), and WritePwrScheme().
BOOLEAN WINAPI WritePwrScheme | ( | PUINT | puiID, |
LPWSTR | lpszName, | ||
LPWSTR | lpszDescription, | ||
PPOWER_POLICY | pPowerPolicy | ||
) |
Definition at line 877 of file powrprof.c.
Referenced by SavePowerScheme(), and test_WritePwrScheme().
Definition at line 52 of file powrprof.c.
Referenced by DllMain(), SetLastID(), and WritePwrScheme().
Definition at line 56 of file powrprof.c.
Referenced by DllMain(), EnumPwrSchemes(), GetPwrDiskSpindownRange(), ReadGlobalPwrPolicy(), and ReadPwrScheme().
Definition at line 42 of file powrprof.c.
Referenced by SetActivePwrScheme().
Definition at line 46 of file powrprof.c.
Referenced by WritePwrScheme().
Definition at line 48 of file powrprof.c.
Referenced by GetPwrDiskSpindownRange().
Definition at line 49 of file powrprof.c.
Referenced by GetPwrDiskSpindownRange().
Definition at line 50 of file powrprof.c.
Referenced by DllMain(), and SetLastID().
Definition at line 45 of file powrprof.c.
Referenced by _cicRegKey_RecurseDeleteKey(), _loaddll(), AddItemToListView(), AddNewEventSource(), AddTrayIcon(), ApplyOrCancelChanges(), BrFolder_InsertItem(), BrFolder_Treeview_Changed(), BuildLeftPopupMenu(), CliSaveImeHotKey(), Control_LoadApplet(), CreateNotificationObject(), CreateShortcutsFromSection(), DirPrintOldList(), DllRegisterServer(), DMORegister(), DoConvertNameForFileSystem(), DoLoadItems(), EditStreamSetNameA(), EditStreamSetNameW(), ElfCreateEventLogHandle(), EnumClientServiceProtocol(), CNetConnectionManager::EnumerateINetConnections(), EnumerateNetworkAdapter(), EnumerateNetworkComponent(), EnumerateServiceProviders(), EnumerateSoundProfiles(), EnumPickIconResourceProc(), EnumPwrSchemes(), EnumThemes(), FileTypesDlg_Refresh(), fill_file_description(), fill_filter_container(), FilterMapper3_RegisterFilter(), FilterMapper_RegisterFilter(), FilterMapper_RegisterFilterInstance(), FilterMapper_RegisterPin(), FilterMapper_RegisterPinType(), FindApp(), FindLabel(), FindProvTypesRegVals(), FindSoundProfile(), FM2_WriteFriendlyName(), GetEventUserName(), GetHKLSubstitute(), GetLayoutName(), GetProfiles(), CNetConnection::GetProperties(), GetServiceInstanceList(), GetSpecialKLID(), HCR_GetClassNameA(), HCR_GetClassNameW(), HCR_GetIconA(), HCR_GetIconW(), HCR_RegGetIconA(), HCR_RegGetIconW(), helper_createpackage(), IDirectXFileDataImpl_AddBinaryObject(), IDirectXFileEnumObjectImpl_GetDataObjectByName(), IDirectXFileSaveObjectImpl_CreateDataObject(), ImportAppProfile(), ImportSoundProfiles(), INetCfgComponent_fnGetDisplayName(), INetCfgComponent_fnSetDisplayName(), InitializeRecycleBinDlg(), InitIconOverlays(), InitUniqueString(), InsertItem(), InsertTabCtrlItem(), invoke(), IPersistStreamImpl_Load(), ITypeComp_fnBind(), ITypeComp_fnBindType(), ITypeLibComp_fnBind(), ITypeLibComp_fnBindType(), JapaneseEra_IsFirstYearGannen(), JapaneseEra_Load(), KLIDFromSpecialHKL(), RegistrySettings::Load(), LoadBootSettings(), LoadEventLabels(), LoadFreeldrSettings(), CDowloadingAppsListView::LoadList(), LoadRecoveryOptions(), LoadTcpFilterSettingsFromRegistry(), CACLCustomMRU::LoadTypedURLs(), LoadUsernameHint(), LocaleList_Create(), MainWnd_OnUpdateRegistry(), ATL::CAtlFileMappingBase::MapSharedMem(), MB_GetString(), MD_OnUnknown(), MetaDataDispenser_FindAssembly(), MetaDataDispenser_FindAssemblyModule(), mixer_test_deviceA(), mixer_test_deviceW(), MMixerSetGetMuxControlDetails(), msi_get_property(), MsiSetPropertyA(), MsiSetPropertyW(), MSSTYLES_LookupPartState(), NLS_GetLanguageGroupName(), OnInitDialog(), ATL::CAtlFileMappingBase::OpenMapping(), pdump_impl(), PHBindHost_CreateMoniker(), Pos_InitPage(), POWRPROF_GetUserPowerPolicy(), PrintAdapterDescription(), printMixerLine(), CDirectoryWatcher::ProcessNotification(), ProcessUnattendSection(), PROGRAM_ModifyProgram(), CIniPropertyBag::Read(), ReadClipboardFile(), ReadFreeldrSection(), register_keys(), RegisterTypeLibraries(), CNetConnection::Rename(), SampInitializeSAM(), Session_FeatureCurrentState(), Session_FeatureRequestStateGet(), Session_FeatureRequestStatePut(), Session_PropertyGet(), Session_PropertyPut(), CDrivesFolder::SetNameOf(), CRegFolder::SetNameOf(), SHBrowseForFolderA(), SHCopyKeyW(), Shell_MergeMenus(), SHELL_ReadSingleUnreadMailCount(), SHELL_TryAppPathW(), SHGlobalCounterCreate(), SHLoadMenuPopup(), SHMessageBoxCheckExA(), ShowAppList(), SndMixerQueryControls(), START_TEST(), RegistrySettings::Store(), test_CreateDispTypeInfo(), test_null_provider(), TEST_SHGetComputerDisplayNameW(), test_xmldoc(), test_xmlelem_collection(), TF_IsCtfmonRunning(), TranslateName(), unregister_keys(), UpdateTrayIcon(), VerifyDNSSuffix(), WelcomeDlgProc(), WinMain(), CIniPropertyBag::Write(), WriteClipboardFile(), and WritePwrScheme().
Definition at line 44 of file powrprof.c.
Referenced by ReadProcessorPwrScheme(), WriteGlobalPwrPolicy(), WriteProcessorPwrScheme(), and WritePwrPolicy().
Definition at line 38 of file powrprof.c.
Referenced by CanUserWritePwrScheme(), DllMain(), GetPwrDiskSpindownRange(), and SetLastID().
Definition at line 47 of file powrprof.c.
Referenced by DllMain().
Definition at line 40 of file powrprof.c.
Referenced by SetActivePwrScheme().