How To Detect Safe Mode Startup with Visual Basic (291664)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
This article was previously published under Q291664 SUMMARY
For some applications, it may be useful to detect if the local system was started in Safe Mode in order to run appropriately in this mode or to avoid running in Safe Mode. This article describes how to use a Win32 application programming interface (API) to determine the startup mode of the local system.
REFERENCESFor additional information using the API from Visual Basic, click the article number below
to view the article in the Microsoft Knowledge Base:
190000 How To Get Started Programming with the Windows API (LONG)
The MSDN Platform SDK Help for GetSystemMetrics
The Visual Basic Programmer's Guide
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbAPI kbhowto KB291664 |
---|
|