Solved

Is Windows running in Safe Mode?

Posted on 1997-12-21
8
168 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
  • 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
 

Author Comment

by:Kapusta
ID: 1354352
Adjusted points to 175
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

919 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now