PowrProfPowerDuplicateScheme Method
Duplicates an existing power scheme.
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")]
public static Win32ErrorCode PowerDuplicateScheme(
IntPtr rootPowerKey,
ref Guid refSrcSchemeGuid,
ref IntPtr refDstSchemeGuid
)
<DllImportAttribute("PowrProf.dll">]
Public Shared Function PowerDuplicateScheme (
rootPowerKey As IntPtr,
ByRef refSrcSchemeGuid As Guid,
ByRef refDstSchemeGuid As IntPtr
) As Win32ErrorCode
Dim rootPowerKey As IntPtr
Dim refSrcSchemeGuid As Guid
Dim refDstSchemeGuid As IntPtr
Dim returnValue As Win32ErrorCode
returnValue = PowrProf.PowerDuplicateScheme(rootPowerKey,
refSrcSchemeGuid, refDstSchemeGuid)
public:
[DllImportAttribute(L"PowrProf.dll")]
static Win32ErrorCode PowerDuplicateScheme(
IntPtr rootPowerKey,
Guid% refSrcSchemeGuid,
IntPtr% refDstSchemeGuid
)
[<DllImportAttribute("PowrProf.dll")>]
static member PowerDuplicateScheme :
rootPowerKey : IntPtr *
refSrcSchemeGuid : Guid byref *
refDstSchemeGuid : IntPtr 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.
- refSrcSchemeGuid Guid
-
The Guid referring to the power scheme that is to be duplicated.
- refDstSchemeGuid IntPtr
-
The emptyness Guid that will receive the duplicate.
Win32ErrorCode
Returns
ERROR_SUCCESS (zero) if the call was successful,
and a nonzero value if the call failed.