📄 regedit_pas.pas
字号:
unit regedit_pas;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ComCtrls,Db, DBTables, DBGrids, Grids, Registry,FileCtrl;
function sys_setup:integer;
implementation
function sys_setup:integer;
var
reg: TRegistry;
a:string;
begin
result:=0;
reg:=Tregistry.create;
try
reg.rootkey:=HKEY_CLASSES_ROOT;
if reg.keyexists('\Software\Microsoft\hdzdhxt') then
begin
reg.OpenKey('\Software\Microsoft\hdzdhxt',False);
a:=reg.ReadString('Value');
reg.closekey;
end
else
begin
Application.MessageBox('你現在使用的軟體是盜版軟體,請使用正版軟體','消息',MB_ICONINFORMATION);
Application.Terminate;
exit;
end;
finally
end;
if a ='hdzdhxt' then
result:=1
else
Application.MessageBox('你現在使用的軟體是盜版軟體,請使用正版軟體','消息',MB_ICONINFORMATION);
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -