Commit Graph

10 Commits

Author SHA1 Message Date
Hay1tsme
fe9f78b016 removed prints, added phantom device 2023-02-13 03:07:36 -05:00
40ce4d1bb3 added setupapi hook to elisabeth 2023-02-13 03:07:36 -05:00
67c3865b9d hooklib/dll.c: Ensure LoadLibraryExW is always available 2021-08-15 23:08:18 +00:00
96782ba672 hooklib/dll.c: Add LoadLibraryEx hooks
- Initial D: Zero uses `LoadLibraryExW` to load `d3d11.dll` and `dxgi.dll`.
2021-08-15 23:08:18 +00:00
9bd0c96fab Remove leftover GetProcAddress definition 2021-06-17 01:39:52 +00:00
Tau
45e2416702 Simplify DLL hook mechanism
This change deletes the GetProcAddress hook and exports symbols
corresponding to the hooked functions from each hook DLL instead;
we stop at redirecting LoadLibrary/GetModuleHandle calls to the
hook DLL. This simplified approach has less hidden magic going on
behind the scenes and is more readily composable (i.e. a hook DLL
can export redirect symbols for more than one dynamically-loaded
DLL).
2021-06-13 11:27:00 -04:00
Tau
1d6b7591ef Fix DLL loader hook logic
Seems this was quite buggy in its original form.
2021-06-13 11:27:00 -04:00
Tau
46e5c6127d Fix function pointer calling convention syntax
Fixes MSVC build
2019-11-03 08:36:37 -05:00
Tau
05e4dda8e6 Add missing <assert.h> includes
Fixes non-PCH build.
2019-09-01 11:48:14 -04:00
Tau
96b1981e01 hooklib/dll.c: Add dynamic loader hook mechanism 2019-05-14 17:13:08 -04:00