Hello, anyone knows a sample program with source code available which can be used to manage windows power plans? Else a tutorial which could guide me how to implement such a program?

I've seen a program on this link: Power Scheme Switcher, but am not too familiar with visual studio

T.I.A