PowerWriteFriendlyName

[DllImport("powrprof.dll", SetLastError = true, CharSet = CharSet.Unicode)]
public static extern uint PowerWriteFriendlyName(
   IntPtr RootPowerKey,
   ref Guid SchemeGuid,
   ref Guid SubGroupOfPowerSetting,
   ref Guid PowerSetting,
   string Buffer
);

Microsoft documentation: Link

Last updated