HookLib
HookLib copied to clipboard
Problem with hooking windows api
So when I tried to hook an windows API function example
void* orginalSetCursor = nullptr;
hook(SetCursor, hkSetCursor, &orginalSetCursor);
this throws an access violation at 0x0000000000000000 lol
hooking other functions works just fine, just the Windows API does not work
More info: this issue one happened on the new version of hooklib old version without orignal function param worked fine
Which WinAPI function do you hook?
Which WinAPI function do you hook?
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setcursor