Adds an element to a queue.

#define INCL_DOSQUEUES
#include <os2.h>

HQUEUE    hq;        /*  The handle of the queue to which an element is to be added. */
ULONG     request;   /*  A value to be passed with the queue element. */
ULONG     cbData;    /*  The length, in bytes, of the data that is being sent to the queue. */
PVOID     pbData;    /*  A pointer to the buffer that contains the data to be placed into the queue. */
ULONG     priority;  /*  The priority value of the element that is being added to the queue. */
APIRET    ulrc;      /*  Return Code. */

ulrc = DosWriteQueue(hq, request, cbData,
         pbData, priority);


[Back] [Next]