Sunday, August 20, 2006

Check SafeMode

How do you check wether a system is in safe mode or not .
Check out the Api GetSytemMetrics(SM_CLEANBOOT)its return value of 0 means its in normal mode or else its in safe mode or in cleanboot.

NOTE:- This is needed because in safemode most of the services are stoped and maybe your app cant move forward without some services .
The services that are runing can be checked by typing msconfig in the run command .

No comments: