Skip to content

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

@ccy

Description

@ccy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions