Delphi 如何检测你的电脑日期或时间的变化


本文整理自网络,侵删。

 
 //the system time of you PC has changed.
 unit Unit1;
 
 interface
 
 uses
   Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
   Dialogs, StdCtrls;
 
 type
   TForm1 = class(TForm)
     Button1: TButton;
     procedure Button1Click(Sender: TObject);
   private
   procedure WMTIMECHANGE(var message: TWMTIMECHANGE);
         message WM_TIMECHANGE;
 
     { Private declarations }
   public
     { Public declarations }
   end;
 
 var
   Form1: TForm1;
 
 implementation
 
 {$R *.dfm}
 
 procedure TForm1.Button1Click(Sender: TObject);
 begin
 close;
 end;
 
 procedure TForm1.WMTIMECHANGE(var message: TWMTIMECHANGE);
 begin
 ShowMessage('Time changed');
 end;
 
 end.

相关阅读 >>

Delphi webbrowser getelementbyid().innerhtml与getelementbyid().value的区别

Delphi idhttp中设置非标准头信息和读写cookie

Delphi 如何解决在dll的入口函数中创建或结束线程时卡死

Delphi+mysql:tadoquery使用插入中文乱码解决方法

Delphi 判断尾串是否匹配,不分大小写

Delphi olevariant excel保存文件

Delphi 递归搜索文件夹子目录

Delphi 进程保护

delhi 获取进程图片

Delphi10.3构造一个json数据的第三种方法,并格式化输出

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...