Skip to content

C ABI Wrapper to load native DLLs to Windhawk.

License

Notifications You must be signed in to change notification settings

diewellenlaenge/wh-cdecl-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Cdecl Wrapper

This is a proof of concept to load any C ABI compatible native DLL with Windhawk.

Settings

You can specify the path to a x64 and x86 version of the DLL. It is recommended to place the wrapped DLL inside the default mods folder on C:\ProgramData\Windhawk\Engine\Mods\{32,64} so it's properly protected by elevated permissions in that folder to not be replace by something malicious.

The paths to the DLL can be changed while the mod is loaded. It will handle this properly and will issue the needed callbacks manually if it is happening at runtime.

Example Wrapped DLL

To show that this works, a friend of mine prepared a native DLL in Zig. You can find the source code for the repo in his GitHub repository windhawk-zig.

Processes

For testing/POC reasons, this currently injects only to Notepad (x64) and vsls-agent (x86) in lack of a proper other 32bit process for testing.

About

C ABI Wrapper to load native DLLs to Windhawk.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages