Solved

Is Windows running in Safe Mode?

Posted on 1997-12-21
8
173 Views
Last Modified: 2010-04-04
Is there a way to detect if Windows 95 is currently running in SAFE MODE from my Delphi 1.0 application?  If so, how?
0
Comment
Question by:Kapusta
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 5

Expert Comment

by:ronit051397
ID: 1354349
0
 
LVL 5

Expert Comment

by:ronit051397
ID: 1354350
Sorry, mistake. I intended to comment to another question.
0
 

Author Comment

by:Kapusta
ID: 1354351
Adjusted points to 100
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Kapusta
ID: 1354352
Adjusted points to 175
0
 
LVL 5

Expert Comment

by:ronit051397
ID: 1354353
I think you should use: GetSystemMetrics(SM_CLEANBOOT)
For more information See API's Help file.
0
 

Author Comment

by:Kapusta
ID: 1354354
>>I think you should use: GetSystemMetrics(SM_CLEANBOOT)
>>For more information See API's Help file.


Perhaps you are correct...however, my Delphi 1.0 API help file shows nothing on the SM_CLEANBOOT parameter.  The GetSystemMetrics API .HLP page knows nothing about SM_CLEANBOOT. I will try checking the search engines for SM_CLEANBOOT and see what I uncover.

Thanks.
0
 

Author Comment

by:Kapusta
ID: 1354355
It turns out that although SM_CLEANBOOT is NOT a predefined variable, its value (67) will return the necessary result value.

var
      SafeMode : Integer;
begin
      SafeMode := GetSystemMetrics(67 {SM_CLEANBOOT});
      case SafeMode of
            1, 2: begin
   {1 = Safe mode, 2 = Safe mode with network support}

I believe you deserve the 175 points since you pointed me in the right direction.  How do I make sure that you get credit for your response?


0
 
LVL 5

Accepted Solution

by:
ronit051397 earned 170 total points
ID: 1354356
I have just posted an answer...
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month8 days, 9 hours left to enroll

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question