Hook

  • Thread starter Thread starter Omar
  • Start date Start date
write standard hook with the help of Win32 API & then use obtained DLL
through a C# wrapper that will work with unmanaged DLL thorough P/Invoke
 
Hi Vadym!!
write standard hook with the help of Win32 API & then use obtained DLL
through a C# wrapper that will work with unmanaged DLL thorough P/Invoke

Exactly how can i do this?? i think you talk about programming in c++...i´m
novice in this...
 
Hi Vadym!!


Exactly how can i do this?? i think you talk about programming in c++...i´m
novice in this...

That's exactly what he is saying. You can't write a global hook in C#.
The hook proc has to reside in a standard dll - which .NET is not
capable of creating. You will need to use a language that does support
this to write the actuall hook, and then you can wrap the dll in C#
using P/Invoke.
 

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

Similar Threads

hooking keyboard input twice 0
Trap WM_Messages 1
How to develop a HOOK application? 2
local keyboard hook 2
Window Hooks 1
C# Global Hook Samples? 0
Change Desktop Max Window Size 4
Global WM_CREATE hook... 2

Back
Top