ctSysQueueClose
Closes an existing queue.
Short Name
ctSysQueueClose()
Type
ISAM function.
Declaration
NINT ctSysQueueClose(NINT qhandle)
Description
Closes an existing queue when the queue is no longer needed.
Parameter qhandle is a system queue handle returned by a call to the ctSysQueueOpen() function.
Return
Value |
Symbolic Constant |
Explanation |
---|---|---|
0 |
NO_ERROR |
Successful close of the queue. |
90 |
NQUE_ERR |
Could not create queue. |
454 |
NSUP_ERR |
Service not supported. |
514 |
CQUE_ERR |
Queue has already been closed. |
See FairCom DB Error Codes for a complete listing of valid FairCom DB error values.
Example
NINT qhandle = ctSysQueueOpen("myqueue", 0);
if (qhandle > 0)
ctSysQueueClose(qhandle);
Limitations
Client/Server mode only.
See also
ctSysQueueOpen