What is a hook and how does that help me in csharp?

  • Thread starter Thread starter jm
  • Start date Start date
J

jm

What is a "hook" and how does that help me in csharp?

I've seen a lot of talk about that from C++ people were were "worried"
about that in coming to C#.

I am still newer at c# and not that experienced with C++ and the Win
API. I have used a lot of VB.

Can you give me a starting point on my question? I know I am gonna
get it for saying this, but I am familiar with some C/C++ programming.
I have seen and understand messages, how to create a window, etc. I
used to know what a callback was, but I never used it. Thank you for
any guidance.
 
Well, there are many types of hooks in Windows. The "classic" hooks are
those provided by the SetWindowsHook[Ex] API, which gives you a whole bunch
of them. Shell hooks, keyboard hooks, CBT hooks, window hooks, mouse hooks,
etc.

Most of those have to reside in a standard library (DLL) with standard
exports - those you cannot do with a managed language. Maybe that's what
you're referring to.
 
Yes, that is what I mean, but what is it? So, what is a keyboard hook?
What is it for? (stupid maybe, but I don't know)

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Back
Top