I am working on a automated utility for students which works with their calendar. I have implemented the option by which they can set a time at which the PC will shut down. I was wondering if there is any library or dll or anything out there that might also allow me to power up the PC programatically.

I found this in MSDN but it is noted to apply on XP, 2000 and Tablet only. Can you confirm that these might still work on Vista and/or 7?


Still, thanks for both the posts, they are a lot like what i was looking for :D

The System.Runtime.InteropServices Name Space on MSDN said that all the classes work on Windows 7 and Windows Vista I develope my application on windows XP so you can try any Example on Windows vista and if it's not running please tell me.