设为首页 加入收藏 网站搜索 繁體中文 中国建站网 — 站长资源平台

用Delphi制作中国式报表

来源网络收集 作者:佚名 时间:2007-4-26 4:11:51 该文得分0
Use Windows API GetSystemMetrics with SM_CLEANBOOT parameter, this specifies how the system was started, in your project´s code use:

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('Running in Safe Mode: Fail-Safe Boot');
         Application.Terminate;
       end;
    2: begin
         ShowMessage('Running in Safe Mode: Fail-safe with network boot');
         Application.Terminate;
       end;
  end;

   Application.Run;
end.

相关文章
广告赞助
网友评论

共有 0 位网友发表了评论,平均得分: 0 查看完整内容

用户名:

分 值:100分 85分 70分 55分 40分 25分 10分 0分

内 容:

(注“”为必填内容。) 验证码: 验证码,看不清楚?请点击刷新验证码