You can't subclass a window belonging to another application because the
other application is in another address space. In other words, your
application does not have access to most of the other application's memory
and it does not have access to most of your application's memory. Using a
system-wide hook will allow you to get a DLL to execute in the other
application's address space but system-wide hooks require advanced knowledge
of Windows.
Quote:
> Hi,
> Can someone tell me how dangerous it is to subclass a window belonging to
> another application.
> For example, I have an EXE from which I do a FindWindow and get another
> application's main window and Subclass it.
> What are the precautions and is this advisable?
> Can someone throw some light on the above?
> Regards,
> Sundari.