Delphi:制作中国式报表
来源:优易学  2011-9-10 17:56:12   【优易学:中国教育考试门户网】   资料下载   IT书店
 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.

责任编辑:小草

文章搜索:
 相关文章
热点资讯
资讯快报
热门课程培训