DosCreateQueue

DosCreateQueue

#define INCL_DOSQUEUES

USHORT  rc = DosCreateQueue(RWHandle, QueuePrty, QueueName);

PHQUEUE          RWHandle;      /* Address to put queue handle (returned) */
USHORT           QueuePrty;     /* Ordering to use for elements */
PSZ              QueueName;     /* Pointer to queue name string */

USHORT           rc;            /* return code */

Example

This example creates a queue named special.que.

#define INCL_DOSQUEUES

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

HQUEUE QueueHandle;
USHORT rc;

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


[Back: DosCreateCSAlias]
[Next: DosCreateSem]