System Reboot

  • Thread starter Thread starter Reddy
  • Start date Start date
R

Reddy

Hello,
I have one service which will be running under administrator account.
How can a service will find whether the system is rebooted or not?. I can do
the same
based on the lost logged-in time, it will create problems incase user
changes the time.

Please let me know your answers.

Thanks in advance,
Reddy
 
There is a performance counter for System Up Time
Seconds since last reboot

Check out Win32_PerfRawData_PerfOS_System in WMI docs in MSDN
 
Back
Top