prvFindQueueInList() function
Attempt to find the queue identified by pcName or xMqId in the queue list. Matches queues by pcName first; if pcName is NULL, matches by xMqId.
Arguments
ppxQueueListElement
Output parameter set when queue is found.
pcName
A queue name to match.
xMessageQueueDescriptor
A queue descriptor to match.
Return value
pdTRUE if the queue is found; pdFALSE otherwise.