PowerImportPowerScheme function
Imports a power scheme from a file.
Syntax
DWORD WINAPI PowerImportPowerScheme( _In_ HKEY RootPowerKey, _In_ LPCWSTR ImportFileNamePath, _Inout_ GUID **DestinationSchemeGuid );
Parameters
- RootPowerKey [in]
-
This parameter is reserved for future use and must be set to NULL.
- ImportFileNamePath [in]
-
The path to a power scheme backup file created by PowerCfg.Exe /Export.
- DestinationSchemeGuid [in, out]
-
A pointer to a pointer to a GUID. If the pointer contains NULL, the function allocates memory for a new GUID and puts the address of this memory in the pointer. The caller can free this memory using LocalFree.
Return value
Returns ERROR_SUCCESS (zero) if the call was successful, and a nonzero value if the call failed.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also