|
ReactOS 0.4.16-dev-1946-g52006dd
|
#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 | szDiskMax [] = L"DiskSpindownMax" |
| static const WCHAR | szDiskMin [] = L"DiskSpindownMin" |
| static const WCHAR | szLastID [] = L"LastID" |
| static UINT | g_LastID = (UINT)-1 |
| static 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.
Definition at line 272 of file powrprof.c.
Referenced by GetPwrDiskSpindownRange().
| NTSTATUS WINAPI CallNtPowerInformation | ( | POWER_INFORMATION_LEVEL | InformationLevel, |
| PVOID | lpInputBuffer, | ||
| ULONG | nInputBufferSize, | ||
| PVOID | lpOutputBuffer, | ||
| ULONG | nOutputBufferSize | ||
| ) |
Definition at line 283 of file powrprof.c.
Referenced by Hib_InitDialog(), Hib_SaveData(), IsBatteryUsed(), ProcessorDlgProc(), SetProcSpeed(), and test_CallNtPowerInformation().
Definition at line 303 of file powrprof.c.
Referenced by CreateEnergyList(), and test_CanUserWritePwrScheme().
|
static |
Definition at line 1129 of file powrprof.c.
Referenced by ValidatePowerPolicies().
Creates or opens a registry-synchronizing semaphore, with access for SYNCHRONIZE | READ_CONTROL | SEMAPHORE_MODIFY_STATE | SEMAPHORE_QUERY_STATE by everyone.
Definition at line 205 of file powrprof.c.
Referenced by AcquirePwrProfSemaphore().
|
static |
Creates a security descriptor for the registry semaphore.
| [out] | PowrProfSd | A pointer to an allocated security descriptor for the semaphore. |
Definition at line 70 of file powrprof.c.
Referenced by CreatePwrProfSemaphore().
Definition at line 323 of file powrprof.c.
Referenced by DelScheme(), and test_DeletePwrScheme().
Definition at line 1429 of file powrprof.c.
| BOOLEAN WINAPI EnumPwrSchemes | ( | PWRSCHEMESENUMPROC | lpfnPwrSchemesEnumProc, |
| LPARAM | lParam | ||
| ) |
Definition at line 443 of file powrprof.c.
Referenced by BuildSchemesList(), ShowPowerSchemesPopupMenu(), and test_EnumPwrSchemes().
|
static |
Definition at line 1166 of file powrprof.c.
Referenced by ValidatePowerPolicies().
Definition at line 509 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 545 of file powrprof.c.
Referenced by test_GetCurrentPowerPolicies(), test_ValidatePowerPolicies(), and test_ValidatePowerPolicies_Old().
| BOOLEAN WINAPI GetPwrCapabilities | ( | PSYSTEM_POWER_CAPABILITIES | lpSystemPowerCapabilities | ) |
Definition at line 582 of file powrprof.c.
Referenced by Adv_InitDialog(), Applet(), CreateEnergyList(), Hib_InitDialog(), Pos_InitData(), and test_GetPwrCapabilities().
Definition at line 605 of file powrprof.c.
Referenced by test_GetPwrDiskSpindownRange().
| BOOLEAN WINAPI IsAdminOverrideActive | ( | PADMINISTRATOR_POWER_POLICY | p | ) |
Definition at line 675 of file powrprof.c.
Referenced by ExitWindowsDialog(), and wmain().
Definition at line 694 of file powrprof.c.
Definition at line 713 of file powrprof.c.
Referenced by ExitWindowsDialog(), and IsSuspendAllowed().
| POWER_PLATFORM_ROLE WINAPI PowerDeterminePlatformRole | ( | void | ) |
Definition at line 761 of file powrprof.c.
| POWER_PLATFORM_ROLE WINAPI PowerDeterminePlatformRoleEx | ( | ULONG | version | ) |
Definition at line 767 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 773 of file powrprof.c.
Definition at line 734 of file powrprof.c.
| DWORD WINAPI PowerReadACValue | ( | HKEY | RootPowerKey, |
| const GUID * | Scheme, | ||
| const GUID * | SubGroup, | ||
| const GUID * | PowerSettings, | ||
| PULONG | Type, | ||
| PUCHAR | Buffer, | ||
| DWORD * | BufferSize | ||
| ) |
Definition at line 850 of file powrprof.c.
| DWORD WINAPI PowerReadACValueIndex | ( | HKEY | key, |
| const GUID * | scheme, | ||
| const GUID * | subgroup, | ||
| const GUID * | setting, | ||
| LPDWORD | AcValueIndex | ||
| ) |
Definition at line 825 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 747 of file powrprof.c.
| DWORD WINAPI PowerReadDCValueIndex | ( | HKEY | key, |
| const GUID * | scheme, | ||
| const GUID * | subgroup, | ||
| const GUID * | setting, | ||
| LPDWORD | DcValuetIndex | ||
| ) |
Definition at line 837 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 753 of file powrprof.c.
| DWORD WINAPI PowerRegisterSuspendResumeNotification | ( | DWORD | flags, |
| HANDLE | recipient, | ||
| PHPOWERNOTIFY | handle | ||
| ) |
Definition at line 781 of file powrprof.c.
Definition at line 740 of file powrprof.c.
| DWORD WINAPI PowerSettingRegisterNotification | ( | const GUID * | setting, |
| DWORD | flags, | ||
| HANDLE | recipient, | ||
| PHPOWERNOTIFY | handle | ||
| ) |
Definition at line 794 of file powrprof.c.
| DWORD WINAPI PowerSettingUnregisterNotification | ( | HPOWERNOTIFY | handle | ) |
Definition at line 801 of file powrprof.c.
| DWORD WINAPI PowerUnregisterSuspendResumeNotification | ( | HPOWERNOTIFY | handle | ) |
Definition at line 788 of file powrprof.c.
| DWORD WINAPI PowerWriteACValueIndex | ( | HKEY | key, |
| const GUID * | scheme, | ||
| const GUID * | subgroup, | ||
| const GUID * | setting, | ||
| DWORD | index | ||
| ) |
Definition at line 807 of file powrprof.c.
| DWORD WINAPI PowerWriteDCValueIndex | ( | HKEY | key, |
| const GUID * | scheme, | ||
| const GUID * | subgroup, | ||
| const GUID * | setting, | ||
| DWORD | index | ||
| ) |
Definition at line 813 of file powrprof.c.
|
static |
Definition at line 409 of file powrprof.c.
Referenced by EnumPwrSchemes(), and ReadPwrScheme().
|
static |
Definition at line 352 of file powrprof.c.
Referenced by EnumPwrSchemes(), and ReadPwrScheme().
| BOOLEAN WINAPI ReadGlobalPwrPolicy | ( | PGLOBAL_POWER_POLICY | pGlobalPowerPolicy | ) |
Definition at line 857 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 920 of file powrprof.c.
Referenced by ReadProcessorPwrScheme(), and test_ReadProcessorPwrScheme().
| BOOLEAN WINAPI ReadPwrScheme | ( | UINT | uiID, |
| PPOWER_POLICY | pPowerPolicy | ||
| ) |
Definition at line 946 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 978 of file powrprof.c.
Referenced by Pos_SaveData(), ShowPowerSchemesPopupMenu(), test_GetCurrentPowerPolicies(), and test_GetSetActivePwrScheme().
Definition at line 1085 of file powrprof.c.
Referenced by WritePwrScheme().
| BOOLEAN WINAPI SetSuspendState | ( | BOOLEAN | Hibernate, |
| BOOLEAN | ForceCritical, | ||
| BOOLEAN | DisableWakeEvent | ||
| ) |
Definition at line 1017 of file powrprof.c.
Referenced by ExitWindowsDialog(), and wmain().
| BOOLEAN WINAPI ValidatePowerPolicies | ( | PGLOBAL_POWER_POLICY | pGPP, |
| PPOWER_POLICY | pPP | ||
| ) |
Definition at line 1187 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 1026 of file powrprof.c.
Referenced by Adv_SaveData(), and SetActivePwrScheme().
| BOOLEAN WINAPI WriteProcessorPwrScheme | ( | UINT | ID, |
| PMACHINE_PROCESSOR_POWER_POLICY | pMachineProcessorPowerPolicy | ||
| ) |
Definition at line 1068 of file powrprof.c.
| BOOLEAN WINAPI WritePwrPolicy | ( | PUINT | puiID, |
| PPOWER_POLICY | pPowerPolicy | ||
| ) |
Definition at line 1404 of file powrprof.c.
Referenced by SetActivePwrScheme(), and WritePwrScheme().
| BOOLEAN WINAPI WritePwrScheme | ( | PUINT | puiID, |
| LPWSTR | lpszName, | ||
| LPWSTR | lpszDescription, | ||
| PPOWER_POLICY | pPowerPolicy | ||
| ) |
Definition at line 1102 of file powrprof.c.
Referenced by SavePowerScheme(), and test_WritePwrScheme().
Definition at line 51 of file powrprof.c.
Referenced by DllMain(), SetLastID(), and WritePwrScheme().
Definition at line 52 of file powrprof.c.
Referenced by AcquirePwrProfSemaphore(), CreatePwrProfSemaphore(), 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 47 of file powrprof.c.
Referenced by GetPwrDiskSpindownRange().
Definition at line 48 of file powrprof.c.
Referenced by GetPwrDiskSpindownRange().
Definition at line 49 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(), IntDeleteRegFontEntries(), 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(), CDefView::OnNotify(), 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(), 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(), 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 40 of file powrprof.c.
Referenced by SetActivePwrScheme().