hier ein API aufruf um festellen zu können ob windows in Normales modus , Abgesicherter Modus, oder in Abgesicherter Modus mit Netwerk unterstützung gestartet wurde.
Code: Alles auswählen
; Value that specifies how the system was started:
;
; 0 Normal boot
; 1 Fail-safe boot
; 2 Fail-safe With network boot
; Fail-safe boot (also called SafeBoot, Safe Mode, Or Clean Boot) bypasses the user's startup files.
#SM_CLEANBOOT = 67
ret.l =GetSystemMetrics_(#SM_CLEANBOOT)
Debug ret
Select ret
Case 0: MessageRequester("Windows started:","in Normaly Mode.")
Case 1: MessageRequester("Windows started:","in Safe Mode.")
Case 2: MessageRequester("Windows started:","in Safe Mode with network support.")
EndSelect