but i've read from jefferey richer book that a hook is a thread resource,but what is it exactly?
it's like subclassing events of thread queue hooking a hook at the thread?
Or what else?
another thing... but process enviroment variables are in the process address space or kept in an area in the operating system?
Thanks guy!
Posted on 2004-04-25 15:47:23 by ABitLazy
A hook in programming terminology refers to an interception of some sort of event.
Subclassing a window or intercepting thread messages can be considered hooking. You can hook interrupts, API calls, mouse and keyboard events, and so forth. Sometimes you have to provide your own means of hooking but other times the operating system or third-party entity will provide a means of hooking for you.

As for environment variables, I'm fairly certain that they are kept in system memory. But I'm not 100% positive about that.
Posted on 2004-04-25 17:46:29 by iblis
Maybe this help

Tutorial 24: Windows Hooks

Posted on 2004-04-26 07:14:29 by Opcode