Is using Reverse P/Invoke in a .NET DLL for installing global hooks
supported?
yuhongbao_386@hotmail.com - 10 Jul 2007 01:52 GMT
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.
Michael Nemtsev - 10 Jul 2007 09:52 GMT
Hello yuhongbao_386@hotmail.com,
There is a sample http://pinvoke.net/default.aspx/user32/SetWindowsHookEx.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?