title: Is Windows Power Management User Specific?
body: <p>I'm working with windows power management APIs (<code>PowrProf.dll</code> P/Invokes) in C# to get and set power management settings of the system, but I'm not sure if the power management settings are user-specific or machine-specific :(</p>
  
  <p>The flow for Windows XP is to get active power scheme (using <code>GetActivePwrScheme()</code>), read global power settings (using <code>ReadGlobalPwrPolicy()</code>), read scheme-specific settings (using <code>ReadPwrScheme()</code>) and if necessary, write the modified data back to system (using <code>SetActivePwrScheme()</code>).</p>
  
  <p>The flow for windows vista and 7 is to get active power scheme (using <code>PowerGetActiveScheme()</code>), read individual power settings (using <code>PowerReadACValueIndex()</code> and <code>PowerReadDCValueIndex()</code>) and if necessary, write the modified data back to system (using <code>PowerWriteACValueIndex()</code> or <code>PowerWriteDCValueIndex()</code>).</p>
  
  <p>The thing is I prefer to run these codes in a windows service and am afraid that if I run these I'll be getting and setting power management settings for the SYSTEM account. I'm a little bit confused, please help.</p>
  
  <p>Thanks in advance.</p>