Description
Sets the maximum number of items in the queue.
Prototype
DCTQUE_SetMax...
D PR 10I 0
D@This * Value
D@MaxSize 10I 0 Value
Parameters
@This
Type | Pointer (*) |
Passing Mode | Value |
Description | The address of a queue instance. This pointer MUST be obtained through a call to CTQUE_Constructor. |
@MaxSize
Type | 10I 0 |
Passing Mode | Value |
Description | The maximum number of items that can be inserted in the queue. The maximum possible number of items is CTQUE_MAXSIZE (2147483646 items). |
Return Values
Symbolic Constant | Value | Description |
CS_SUCCESS | 0 | The queue's maximum number of items has been set successfully. |
CS_FAILURE | 1 | The @MaxSize value is invalid (possibly negative). |