Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with hooking windows api #24

Open
abhithedev200 opened this issue Feb 17, 2024 · 3 comments
Open

Problem with hooking windows api #24

abhithedev200 opened this issue Feb 17, 2024 · 3 comments

Comments

@abhithedev200
Copy link

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

@abhithedev200 abhithedev200 changed the title Problem with hooking widows api Problem with hooking windows api Feb 17, 2024
@abhithedev200
Copy link
Author

More info: this issue one happened on the new version of hooklib old version without orignal function param worked fine

@HoShiMin
Copy link
Owner

Which WinAPI function do you hook?

@abhithedev200
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants