System Reboot

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
 
R

Richard MacKinnon

There is a performance counter for System Up Time
Seconds since last reboot

Check out Win32_PerfRawData_PerfOS_System in WMI docs in MSDN
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top