priority (ULONG) - input

      The priority value of the element that is being added to the queue.

      This parameter is valid only for queues that were created as priority-based queues, as specified in the priority parameter of DosCreateQueue. priority is a numerical value in the range of 0 to 15, with 15 being the highest priority.

      • If the priority value is 15, the element is added to the top of the queue.

      • If the priority value is 0, the element is added as the last element in the queue.

      • Elements with the same priority value are grouped together in FIFO (first in, first out) order.
      If you assign a value greater than 15 to priority, the system sets priority to 15. No error code is returned for this condition.


    [Back] [Next]