Code to Check the Mode in which Windows is Loaded (ie)Normal Mode,Safe Mode,Safe Mode With NetWorkS
Code to Check the Mode in which Windows is Loaded (ie)Normal Mode,Safe Mode,Safe Mode With NetWorkSupport
API Declarations
Private Declare Function GetSystemMetrics Lib "User32" (ByVal nIndex as Long) As Long
'Constant
Private Const SM_CLEANBOOT = 67
Dim lngRet as Long
Rate Code to Check the Mode in which Windows is Loaded (ie)Normal Mode,Safe Mode,Safe Mode With NetWorkS
(2(2 Vote))
' 0 - Normal Mode
' 1 - Safe Mode
' 2 - SafeMode With NetWork Support
' Done By : S.Raghunathan
' Mail Me At : [email protected]
lngRet = GetSystemMetrics(SM_CLEANBOOT)
If lngRet = 0 Then
MsgBox "Normal Mode"
ElseIf lngRet = 1 Then
MsgBox "Safe Mode"
Elseif lngret = 2 then
MsgBox "Safe Mode with Network Support"
Endif
Code to Check the Mode in which Windows is Loaded (ie)Normal Mode,Safe Mode,Safe Mode With NetWorkS Comments
No comments yet — be the first to post one!
Post a Comment