Delphi_MemoryModule icon indicating copy to clipboard operation
Delphi_MemoryModule copied to clipboard

A call to an OS function failed in Win64 build using InstallHook

Open ccy opened this issue 5 years ago • 0 comments

I have a simple InstallHook that perform nothing:

function MyHook(lpLibFileName: PWideChar): Pointer;
begin
  Result := nil;
end;

initialization
  InstallHook(MyHook);
finalization
  UninstallHook;
end.

When launch the application build with Win64 platform, it raise A call to an OS function failed error.

The above code works on Win32 build.

ccy avatar Jul 01 '20 08:07 ccy