首页 > 编程 > Delphi > 正文

用Delphi制作中国式报表

2019-11-18 18:46:12
字体:
来源:转载
供稿:网友
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.

上一篇:怎样知道我的程序是否运行在DELPHI?

下一篇:Delphi数据压缩处理(2)

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
学习交流
热门图片

新闻热点

疑难解答

图片精选

网友关注