Reverse P/Invoke in a DLL for global hooks?

  • Thread starter Thread starter yuhongbao_386
  • Start date Start date
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top