Solved

Is Windows running in Safe Mode?

Posted on 1997-12-21
8
171 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
Industry Leaders: 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

732 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