Results 1 to 3 of 3

Thread: Intercepting messages from an application I did not write

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2002
    Posts
    32

    Intercepting messages from an application I did not write

    We use WinInstall to distribute software. I would like to be able to intercept messages from WinInstall to the system and modify some messages and delete others. I'm not sure if this is possible without knowing and having access to the interworkings of WinInstall. Can I just use a Window Handle to intercept the messages or is it more involved? Any help would be appreciated.

    MJ
    Mike Jackson

  2. #2
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616
    You cannot subclass a window that belongs to another process.

    You could install a wh_getmessage hook which will get called whenever a message is removed from the message queue of the target application but, as far as I am aware, you cannot modify a message using such a hook.

    Alternatively you can attach to the process using a debugger, set a breakpoint on th eapplication's message handler and work from there.

    However, all of this is difficult at best.

    HTH,
    Duncan
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2002
    Posts
    32
    Well, I was afraid of that. WinInstall launches installations of software packages. Sometimes these packages have pre-requisites that get loaded if they are not present. The problem comes in when those pre-requisites are being installed. WinInstall just sits there like it's locked up. What we want to do is to display a dummy progress bar that goes away when the prerequisite is finished installing.

    If I could launch the prerequisite install in one process and my progress bar in another process so that they ran simultaneously then that would solve my problem. If I used the hook you referred to, would I be able to detect when the prerequisite finished?

    MJ
    Mike Jackson

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width