Delphi中HookAPI进行进程保护(不允许进程结束的方法).docxVIP

  • 68
  • 0
  • 约2.06千字
  • 约 7页
  • 2021-03-28 发布于天津
  • 举报

Delphi中HookAPI进行进程保护(不允许进程结束的方法).docx

Delphi 中 Hook API 进行进程保护 (不允许进程结束的方法 ) Delphi 中 Hook API 进行进程保护 (不允许进程结束的方 法) 减小字体 增大字体 const PRG_NAME = HA.exe; var TerminateProcessNext : function (processHandle, exitCode: dword) : bool; stdcall; NtTerminateProcessNext : function (processHandle, exitCode: dword) : dword; stdcall; {$R *.res} function ThisIsOurProcess(processHandle: dword): boolean; var pid: dword; arrCh: array [0 .. MAX_PATH] of char; begin pid := ProcessHandleToId(processHandle); result := (pid lt;gt; 0) and ProcessIdToFileName(pid, arrCh) and (PosText(PRG_NAME, arrCh) gt; 0); end; function TerminateProcessCallback(processH

文档评论(0)

1亿VIP精品文档

相关文档