PowrProfPowerImportPowerScheme Method
Imports a power scheme from a file.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("PowrProf.dll", CharSet = CharSet.Unicode)]
public static Win32ErrorCode PowerImportPowerScheme(
IntPtr rootPowerKey,
string filepath,
ref Guid refDstSchemeGuid
)
<DllImportAttribute("PowrProf.dll", CharSet := CharSet.Unicode>]
Public Shared Function PowerImportPowerScheme (
rootPowerKey As IntPtr,
filepath As String,
ByRef refDstSchemeGuid As Guid
) As Win32ErrorCode
Dim rootPowerKey As IntPtr
Dim filepath As String
Dim refDstSchemeGuid As Guid
Dim returnValue As Win32ErrorCode
returnValue = PowrProf.PowerImportPowerScheme(rootPowerKey,
filepath, refDstSchemeGuid)
public:
[DllImportAttribute(L"PowrProf.dll", CharSet = CharSet::Unicode)]
static Win32ErrorCode PowerImportPowerScheme(
IntPtr rootPowerKey,
String^ filepath,
Guid% refDstSchemeGuid
)
[<DllImportAttribute("PowrProf.dll", CharSet = CharSet.Unicode)>]
static member PowerImportPowerScheme :
rootPowerKey : IntPtr *
filepath : string *
refDstSchemeGuid : Guid byref -> Win32ErrorCode
No code example is currently available or this language may not be supported.
- rootPowerKey IntPtr
-
Reserved for future use, this must be set to Zero.
- filepath String
-
The path to a power scheme backup file created by PowerCfg.Exe /Export.
- refDstSchemeGuid Guid
-
Returns a Guid referring to the power scheme.
Win32ErrorCode
Returns
ERROR_SUCCESS (zero) if the call was successful,
and a nonzero value if the call failed.