Hi All
I'm writing an new shell for windows98 (a launcher for a computer cafe), does anyone know how I can detect if windows started in safemode using C/C++.
The GetSystemMetrics API Should provide this information. This is VB code, but translating to C/C++ should be straightforward
Public Declare Function GetSystemMetrics Lib "user32" _
(ByVal nIndex As Long) As Long
Public Const SM_CLEANBOOT = 67
Select Case GetSystemMetrics(SM_CLEANBOOT)
Case 0 - Normal Boot
Case 1 - Fail-safe boot
Case 2 - Fail-safe with network boot
End Select
Good Luck
-------------- As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.