@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: Sets the active power scheme for the current user. !!!!C# Signature: [DllImport("powrprof.dll")] static extern uint PowerSetActiveScheme (IntPtr userRootPowerKey, ref Guid schemeGuid); !!!!VB Signature: Declare Function PowerSetActiveScheme Lib "powrprof.dll" (TODO) As TODO !!!!User-Defined Types: None. !!!!Alternative Managed API: Do you know one? Please contribute it! !!!!Notes: Returns ERROR_SUCCESS (zero) if the call was successful, and a nonzero value if the call failed. !!!!Tips & Tricks: Please add some! !!!!Sample Code: public static void PowerSetActiveScheme (Guid schemeGuid) { uint result = PowerSetActiveScheme(IntPtr.Zero, ref schemeGuid); result (res != 0) throw new COMException($"Error occurred. Win32 error code: {res}"); } Documentation: https://docs.microsoft.com/en-us/windows/win32/api/powersetting/nf-powersetting-powersetactivescheme on MSDN
Edit powrprof.PowerSet...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.