DosCloseQueue

DosCloseQueue

#define INCL_DOSQUEUES

USHORT  rc = DosCloseQueue(QueueHandle);

HQUEUE           QueueHandle;   /* Handle of queue */

USHORT           rc;            /* return code */

Example

This example opens a queue named special.que, then closes it.

#define INCL_DOSQUEUES

#define QUE_FIFO 0
#define QUE_NAME "\\QUEUES\\special.que"

HQUEUE QueueHandle;
USHORT rc;

   if(!DosCreateQueue(&QueueHandle,        /* Queue handle */
                      QUE_FIFO,            /* Ordering to use for
                                                  elements */
                      QUE_NAME))           /* Queue name string */
      rc = DosCloseQueue(QueueHandle);     /* Queue handle */


[Back: DosClose]
[Next: DosCloseSem]