By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,931 Members | 1,514 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,931 IT Pros & Developers. It's quick & easy.

Reverse P/Invoke in a DLL for global hooks?

P: n/a
Is using Reverse P/Invoke in a .NET DLL for installing global hooks
supported?

Jul 10 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Jul 10, 8:45 am, yuhongbao_...@hotmail.com wrote:
Is using Reverse P/Invoke in a .NET DLL for installing global hooks
supported?
eg.
SetWindowsHookEx(WH_WHATEVER, <delegate to hook procedure in .net
dll>, <module handle of .net dll>, 0)

Notice that the .NET DLL's handle is passed to SetWindowsHookEx.

Jul 10 '07 #2

P: n/a
Hello yu***********@hotmail.com,

There is a sample http://pinvoke.net/default.aspx/user...owsHookEx.html

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
Is using Reverse P/Invoke in a .NET DLL for installing global hooks
supported?

Jul 10 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.