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

Draw hook is not possible #1

Open
BigMuscle85 opened this issue Jan 14, 2013 · 2 comments
Open

Draw hook is not possible #1

BigMuscle85 opened this issue Jan 14, 2013 · 2 comments

Comments

@BigMuscle85
Copy link

Hello,
I am checking the source code of your work and got stuck with weird thing. If I hook Draw function, it becomes restored to original function in a moment. Therefore, I need to hook it periodically in background thread which is not the good solution.

Or is there any magic I have missed?

@steeve
Copy link
Owner

steeve commented Jan 15, 2013

I've seen people reporting this for Windows 8. Maybe there are ways to disable this? I don't really know...

@BigMuscle85
Copy link
Author

Unfortunately, this happens on Windows 7 to. I looked into the problem more deeply and found out that DWM switches between two different Draw functions. The pointer in vtable is periodically switched to the second one periodically. Maybe it hooks this function too :)

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