June 2001
Intermediate to advanced
706 pages
24h 10m
English
The WH_MOUSE hook is called in a thread’s message loop, as Figure 13-2 shows. This hook is located inside the
GetMessage and PeekMessage
functions. Therefore, if the hook returns a 1, the message is
discarded inside the GetMessage or
PeekMessage function and the rest of the message
loop does not process it.

Figure 13-2. The location of the WH_MOUSE and WH_MOUSE_LL hooks
The WH_MOUSE_LL hook is located immediately before
a message is placed into the message queue of the thread that
installed the hook. Remember that all message queues are attached to
the message loop of this thread. Figure 13-2
illustrates the location of this hook.
Read now
Unlock full access