Solved

Is Windows running in Safe Mode?

Posted on 1997-12-21
8
167 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
Comment Utility
0
 
LVL 5

Expert Comment

by:ronit051397
Comment Utility
Sorry, mistake. I intended to comment to another question.
0
 

Author Comment

by:Kapusta
Comment Utility
Adjusted points to 100
0
 

Author Comment

by:Kapusta
Comment Utility
Adjusted points to 175
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 5

Expert Comment

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

Author Comment

by:Kapusta
Comment Utility
>>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
Comment Utility
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
Comment Utility
I have just posted an answer...
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video discusses moving either the default database or any database to a new volume.

763 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

6 Experts available now in Live!

Get 1:1 Help Now