Is there an universal way (working on Windows XP/Vista/7) to determine the time of 'turn off/turn on' or 'hibernate/wake up' of the computer?
edit: I want to determine it programmatically.
feedback
|
This question came from our site for professional and enthusiast programmers.
|
You may need to access the BIOS if the system in question is using any Wake-On-LAN settings. You would use the Win32_BIOS class for that. | |||
|
feedback
|
|
If you are looking for a setting in Windows, check out the WMI classes in .Net (System.Management namespace). | |||
|
feedback
|
|
Initializes a new instance of the ManagementClass class. The class represents a Common Information Model (CIM) management class from WMI Classes.. Check example on the documentation page that may help you about usage of these. For more information, see "Win32 Classes" in the Windows Management Instrumentation documentation in the MSDN Library here If you use Windows Development Kit library then there are lots of library methods to get information either using WMI classes and scripting management catalogs. If you get it through windows development kit then check this. | |||
|
feedback
|