Y yuhongbao_386 Jul 10, 2007 #1 Is using Reverse P/Invoke in a .NET DLL for installing global hooks supported?
Y yuhongbao_386 Jul 10, 2007 #2 Is using Reverse P/Invoke in a .NET DLL for installing global hooks supported? Click to expand... 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.
Is using Reverse P/Invoke in a .NET DLL for installing global hooks supported? Click to expand... 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.
M Michael Nemtsev Jul 10, 2007 #3 Hello (e-mail address removed), 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
Hello (e-mail address removed), 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