How to detect Safe-mode for early boot devices?

How to detect Safe-mode for early boot devices?

Post by Gabe » Sat, 07 Apr 2007 04:11:11


I was just wondering if there is a MS sanctioned way to detect whether
or not you are in safe mode? I've read msdn documentation
http://www.yqcomputer.com/
using InitSafeBootMode. However, when I use this exported variable,
it hasn't been initialized yet.

Is there another MS sanctioned way to check whether you are in safe
mode?
 
 
 

How to detect Safe-mode for early boot devices?

Post by Gabe » Sat, 07 Apr 2007 04:35:22


Sorry, I'm dumb.
I did
__declspec(dllimport) PULONG InitSafeBootMode;

instead of
__declspec(dllimport) ULONG InitSafeBootMode;