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.
 
Back
Top