I posted this response in the Setup Factory 7.0's forum. It can be useful here in the AMS forums too. I had created a .exe to check for which mode a computer is in (normal, safe, safe with networking mode(s)). But, I took a couple minutes just now and realized the following code (or it seems, try it out and let us know) does the trick without an external .exe or .dll! (it uses the User32.dll windows has innate to itself).
Code:dll_SystemMode = DLL.CallFunction("C:\\WINDOWS\\system32\\user32.dll", "GetSystemMetrics", "67", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL) Dialog.Message("", dll_SystemMode)

