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.

Recommended Answers

All 4 Replies

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?

http://msdn.microsoft.com/en-us/library/aa480679.aspx

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.