Results 1 to 3 of 3

Thread: Message Queue

  1. #1

    Thread Starter
    Addicted Member bataeu's Avatar
    Join Date
    Nov 2000
    Location
    Walla Walla, Washington
    Posts
    144

    Message Queue

    Is there anyway to peek at the message queue and see all the messages contained therin even if they are not sent to your window? Just an idea because i am trying to figure out what messages are being sent to my windows ect... I thought it would be kinda nice to have a Message Queue Sniffer. Anyways let me know if there is a way to see the messages in the queue.

    Thanks In Advance,
    Josh Powers
    C, C++ and none of that MCF crap either!

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    I think you'd have to subclass all the windows to see the messages in their queue... You have to put the stuff in a DLL in order to let it receive all windows.

    I think there's also a hook for it, WH_JournalProc or something like that..

    Take a look at MSDN @ SetWindowsHookEx and find out what hooks you can use.

    Good luck!
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    WindowProcHook I think it is. Subclassing every window is kinda hopeless as there are more hidden windows than you would think.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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