DosOpenQueue

Gives a client process access to a queue.

Syntax
DosOpenQueue(ppid, phq, pszName)

Parameters

 * ppid (PPID) - output : A pointer to the process identification of the queue's server process.
 * phq (PHQUEUE) - output : A pointer to the write handle of the queue to be opened.
 * pszName (PSZ) - input : A pointer to the ASCIIZ name of the queue to be opened.
 * This is the name that was specified by the server process when it created the queue with DosCreateQueue. The name string must include \QUEUES\ as the first element of the path.

Return Code

 * ulrc (APIRET) - returns:DosOpenQueue returns one of the following values:
 * 0 NO_ERROR
 * 334 ERROR_QUE_NO_MEMORY
 * 341 ERROR_QUE_PROC_NO_ACCESS
 * 343 ERROR_QUE_NAME_NOT_EXIST

Remarks
DosOpenQueue opens a queue for a client process.

If the queue was created by a call to the 16-bit DosCreateQueue function, the queue is not accessible to 32-bit DosOpenQueue requests, and ERROR_QUE_PROC_NO_ACCESS is returned.

Related Functions

 * DosCloseQueue
 * DosCreateQueue
 * DosPeekQueue
 * DosPurgeQueue
 * DosQueryQueue
 * DosReadQueue
 * DosWriteQueue