DosQueryQueue

Queries the number of elements in a queue.

Syntax
DosQueryQueue(hq, pcbEntries)

Parameters

 * hq (HQUEUE) - input : The handle of the queue to be queried.
 * pcbEntries (PULONG) - output : A pointer to the number of elements in the queue.


 * ulrc (APIRET) - returns:Return Code.
 * DosQueryQueue returns one of the following values:
 * 0 NO_ERROR
 * 337 ERROR_QUE_INVALID_HANDLE

Remarks
DosQueryQueue returns the number of elements that are currently in a queue. This function can be used by the server process and its threads, as well as by any client processes that have gained access to the queue by issuing DosOpenQueue.

If the server process closes the queue before this request is made, ERROR_QUE_INVALID_HANDLE is returned.

Related Functions

 * DosCloseQueue
 * DosCreateQueue
 * DosOpenQueue
 * DosPeekQueue
 * DosPurgeQueue
 * DosReadQueue
 * DosWriteQueue