> ## Content Index
> Fetch the complete content index at: https://suitmyself.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Windows Safemode 판단하기
- URL: https://suitmyself.com/windows-safemode-pandanhagi/
- Published: 2023-05-05T15:43:17.000Z
- Updated: 2026-09-16T03:30:24.000Z
- Author: Benjamin Kim
- Tags: Programming, #Import 2026-09-15 05:58

윈도우즈의 세이프모드 상황을 어떻게 감지합니까?

Windows API GetSystemMetrics 의 SM\_CLEANBOOT 값을 사용

[How to know if your application is running in SafeMode](https://delphi.xcjc.net/viewthread.php?tid=47279&ref=suitmyself.com)

```pascaligo
program Project1;

uses
Forms,
Windows,
Dialogs,
Unit1 in 'Unit1.pas' {Form1};

{$R *.RES}

begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);

case GetSystemMetrics(SM_CLEANBOOT) of
1: begin
ShowMessage('안전모드에서 실행중입니다.');
Application.Terminate;
end;
2: begin
ShowMessage('네트워크 안전모드에서 실행중입니다.');
Application.Terminate;
end;
end;

Application.Run;
end.

```

[https://support.corel.com/hc/en-us/articles/216416497-How-to-perform-an-installation-in-Safe-Mode](https://support.corel.com/hc/en-us/articles/216416497-How-to-perform-an-installation-in-Safe-Mode?ref=suitmyself.com)