This call determines the number of elements in a queue.
DosQueryQueue
QueueHandle (HQUEUE) - input
rc (USHORT) - return
Any thread of a process that has access to the queue (because of a DosCreateQueue or a DosOpenQueue request) may issue DosQueryQueue to determine the number of elements currently in the queue.
If the process that created the queue closes it before this request is issued, ERROR_QUE_INVALID_HANDLE is returned.