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

Global hook possible? #28

Open
jamacoe opened this issue Jan 3, 2016 · 4 comments
Open

Global hook possible? #28

jamacoe opened this issue Jan 3, 2016 · 4 comments

Comments

@jamacoe
Copy link

jamacoe commented Jan 3, 2016

Using Embarcadero Delphi 10 I compiled the demo project DetoursDemo\win32api\Demo1. The local hook on the MessageBox API function works as expected. Can I use your library to make this interception global or to inject it into a foreign process? How?

@MahdiSafsafi
Copy link
Owner

Hi,
In order to make a global hook, you need to write your code in a DLL and then you inject this DLL in each or desired process.
So you just need to write the injector stuff ... There are a lot of TUT/Library/SampleCode to use out there.

@jamacoe
Copy link
Author

jamacoe commented Jan 3, 2016

Hi Mahdi, I have already found tons of stuff, but it is 100% about hooking keyboard and/or mouse, using SetWindowsHookEx with WH_KEYBOARD or WH_MOUSE. I thought you might have a working sample code using your library with MessageBox, DrawTextW or another user32.dll - call.

@MahdiSafsafi
Copy link
Owner

Just try to google using this keywords "inject dll delphi". Peek any code that make the injection. This code will be standard for all your future global hooks.
I'm really sorry, I can't write Demo right now, besides I give priority to fix bugs first and unfortunately, I don't even find the time for this stuff.

Thank you.

@dtamade
Copy link

dtamade commented Aug 17, 2017

good

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

3 participants