Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 585 of file powrprof.c.
Referenced by ReadProcessorPwrScheme().
{ HKEY hKey; WCHAR szPath[MAX_PATH]; DWORD dwSize = sizeof(MACHINE_PROCESSOR_POWER_POLICY); swprintf(szPath, L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Controls Folder\\PowerCfg\\ProcessorPolicies\\%i", uiID); if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, szPath, 0, KEY_READ, &hKey) != ERROR_SUCCESS) return FALSE; if (RegQueryValueExW(hKey, szPolicies, NULL, 0, (LPBYTE)pMachineProcessorPowerPolicy, &dwSize) == ERROR_SUCCESS) { RegCloseKey(hKey); return TRUE; } RegCloseKey(hKey); if (uiID != 0) return ReadProcessorPwrScheme(0, pMachineProcessorPowerPolicy); return FALSE; }