Re: Hooks



ok.

Which type hook I need to use for this?
--
WM_QUIT
RLN


"Gary Chanson" wrote:

No. That ID identifies the thread which created that window. That's
all. If additional threads create other windows, you need to get those IDs
separately.

--

- Gary Chanson (Windows SDK MVP)
- Abolish Public Schools



"RLN" <RLN@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:682A4063-4421-4A88-A8C8-DCFBEE818A22@xxxxxxxxxxxxxxxx
ok I agree.
But GetWindowThreadId returns one ThreadId
Is that thread id is possible for these concept (all child windows of
Internet Explorer)?

--
WM_QUIT
RLN


"Gary Chanson" wrote:


"RLN" <RLN@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:64F7CA66-A68C-4DCC-B1B1-8DEDE45890B9@xxxxxxxxxxxxxxxx
Consider In this Example targeted Window is Internet Explorer Window.

If I set Hook for Internet Explorer Window.

Shall I able to Catch all the message of the all child windows?

Is it possible to monitor messages of the Combo Box (which is child of
Internet Explorer )?

I need to monitor all the message related to the all child windows?

I told here only one child window
But it may be any number of child windows ?

Is it necessary to set hook for each seperate child window?

or
Targeted window is enough for hook ?

I need to log all the child windows data changes ( when message occurs
data
will change. so i need to log event and data)

Windows hooks are not window specific, they are thread specific.
When
you set a hook on Internet Explorer, you are probably setting a hook on
the
thread which created the main IE window. Your hook handler will
intercept
all messages (of the type for the specific hook) to that thread. If a
different thread creates a child window, your hook handler will not
intercept its messages.

--

- Gary Chanson (Windows SDK MVP)
- Abolish Public Schools








.



Relevant Pages

  • Re: Detect Application Launch
    ... > do it more elegantly via a hook if such a method were available. ... 'Register this form with Windows to receive the ShellHook message ... Private Declare Function RegisterShellHookWindow Lib "user32" (ByVal hwnd As ...
    (microsoft.public.vb.winapi)
  • Re: Hooks
    ... Gary Chanson (Windows SDK MVP) ... Which type hook I need to use for this? ... Shall I able to Catch all the message of the all child windows? ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Hooks
    ... Gary Chanson (Windows SDK MVP) ... Now I have set the hook I am getting those messages. ... Is that thread id is possible for these concept (all child ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Hooks
    ... Now I have set the hook I am getting those messages. ... Gary Chanson (Windows SDK MVP) ... Is that thread id is possible for these concept (all child windows ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Hooks
    ... Gary Chanson (Windows SDK MVP) ... Which type hook I need to use for this? ... Is that thread id is possible for these concept (all child windows ...
    (microsoft.public.win32.programmer.gdi)

Loading