Interprocess Communication Using Queues (Part 3)

case WMP_REQUESTCOMPLETE:
     rc = DosReadQueue(hReqQueue,               /* Read req queue        */
                  &Server,                      /* Control information   */
                  &ulBytes,                     /* Bytes read            */
                  &Reply,                       /* Data buffer pointer   */
                  0,                            /* Get first element     */
                  DCWW_WAIT,                    /* Wait synchronously    */
                  &Priority,                    /* Priority of element   */
                  0);                           /* No event semaphore    */

     < Process reply>

     DosFreeMem(Reply);
     break;

This example shows returned data being read from a queue by a "requester" process.


[Back: Interprocess Communication Using Queues (Part 2)]
[Next: Interprocess Communication Using Named Pipes (Part 1)]