If the function succeeds the return value will be the ItemsCount parameter value.
Description:
Use QueSetItemsCount to get an overall quantity of queue elements, or to set it before you call
QueAllocItems function to allocate memory for the queue.
QueSetItemsCount is used with MaxPacketSize to define the
main characteristics of the queue. After you have defined these characteristics use
QueAllocItems function.