hab (HAB) - input

      Anchor-block handle of the caller.

    hmqSender (HMQ) - input

      Message-queue handle of the sender.

      NULL

        Search for the first message sent from any window on any queue to any window specified by hmqReceiver. This value is not valid if hmqReceiver also has the value NULL.
      OTHER
        Search for the first message sent from any window on this queue to any window specified by hmqReceiver.

      hmqReceiver (HMQ) - input

        Message-queue handle of the receiver.

        NULL

          Search for the first message sent to any window on any queue from any window specified by hmqSender. This value is not valid if hmqSender also has the value NULL.
        OTHER
          Search for the first message sent to any window on this queue from any window specified by hmqSender.

        pQmsg (PQMSG) - output

          Pointer to the message structure.

          Location to store the queried message.

        hmq (HMQ) - returns

          Queue handle of the sender.

          NULL

            Either no message was found that satisfies the search criteria, or an error occurred.
          OTHER
            Queue handle of the sending window.


          [Back: WinQuerySendMsg Return Value - hmq]
          [Next: WinQuerySendMsg - Remarks]