detecting clean shutdown

Can some help on how to detect whether the last OS shutdown is done is clean manner, I know windows system shutdown tracker helps but it is not enabled in all systems. I heard that windows maintain a file bootstat.dat , does windows updates this file always ?

regards,

Vijay

>maintain a file bootstat.dat , does windows updates this file always ?

Yes (pre-Vista at least).


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

Including Vista. Unless you mess with it (for example, delete it).