hq (HQUEUE) - input
request (ULONG) - input
It is used by an application to code an event. The data is understood by the thread that is adding the element to the queue, as well as by the thread that receives the queue element. There is no special meaning to this data, and the operating system does not alter it.
This value is the same as the data in pRequest field of DosPeekQueue operation for examining a queue element.
cbData (ULONG) - input
pbData (PVOID) - input
priority (ULONG) - input
This parameter is valid only for queues that were created as priority-based queues, as specified in the priority parameter of DosCreateQueue. priority is a numerical value in the range of 0 to 15, with 15 being the highest priority.
ulrc (APIRET) - returns
DosWriteQueue returns one of the following values: