Hello all,
I'm working on a little Visual Basic .NET program that simply changes the power plan based upon the AC power status and battery percentage status (something that Windows 7 should
already do...

)
Anyway, it's coming along well enough, except that I need to have my program run the 'powercfg' command line utility to change plans. I have yet to find a way for my program to determine which plan is in use.
Is there a registry key that changes the current power plan or something similar, or do I need to play around with grabbing outputs from the command line?
Thanks in advance!