[in] Specifies the time-out interval, in milliseconds. The function returns if
the interval elapses, even if the object's state is nonsignaled (i.e., there are no any free objects
in the queue). If Milliseconds is zero, the function tests the object's state and returns immediately.
If Milliseconds is INFINITE(0xFFFFFFFF), the function's time-out interval never elapses.
[in] The size of the array of HNPacket (see hPackets parameter).
Means the maximal quantity of objects which hPackets parameter may contain.
Return values:
If this function succeeds, then the quantity of FreeHNPacket objects copied to
hPackets array will be returned. If returned value is equal to 0, then there are no free
elements, or the status of the thread awaiting for packet enqueueing was changed by the
QueUnblockWaitFree function.
Description:
Use QueGetFreeItems to get free elements from the queue. After this function is executed
FreeCount [Get] property is changed.