hq (HQUEUE) - input
pRequest (PREQUESTDATA) - output
pcbData (PULONG) - output
This field is the same as the pcbData that was furnished by DosWriteQueue when the element was added to the queue.
ppbuf (PPVOID) - output
This field may or may not be the same as the ppbuf that was returned by DosWriteQueue when the element was added to the queue. If QUE_CONVERT_ADDRESS was specified when the queue was created, then the addresses of any elements that are written to the queue by the 16-bit DosWriteQueue function are converted to 32-bit addresses.
element (PULONG) - in/out
Possible values are described in the following list:
Any Other Value
nowait (BOOL32) - input
Possible values are shown in the following list:
ppriority (PBYTE) - output
This is the value that was specified for ppriority when DosWriteQueue added the element to the queue. ppriority is a numeric value in the range of 0 to 15, with 15 being the highest priority.
hsem (HEV) - input
The semaphore may be either private or shared, depending on whether the queue is shared across processes.
hsem is ignored if nowait is set to 0.
Note: The first time an event-semaphore handle is supplied in a DosPeekQueue or DosReadQueue request for which nowait is set to 1, the handle is saved by the system. The same handle must be supplied in all subsequent DosPeekQueue and DosReadQueue requests that are issued for that queue.
ulrc (APIRET) - returns
DosPeekQueue returns one of the following values: