procedure TForm1.Button1Click(Sender: TObject);
begin
if DllHandle <> 0 then
begin
EnabledKey := GetProcAddress(DllHandle, 'EnabledKey');
if @EnabledKey <> nil then
begin
if EnabledKey(DllFileName) then
messagebox(0,'成功屏蔽','友情提示',mb_ok);
end;
end;
end;
非要按下ShowMessage的OK键,
procedure TForm1.Button2Click(Sender: TObject);
begin
if DllHandle <> 0 then
begin
DisabledKey := GetProcAddress(DllHandle, 'DisabledKey');
if @DisabledKey <> nil then
begin
if DisabledKey(DllFileName) then
// ShowMessage('解除成功');
end;
end;