The API takes the same parameter structure that the other APIs such as create take. To specify the elements that are of interest set the opFlags accordingly. To get, for example, the queue maximum depth, expiry, and description, set the opflags as follows:
Figure 35. Inquiring on a queue in C
MQeLocalQParms params = LOCAL_Q_INIT_VAL; params.opflags = QUEUE_MAX_Q_SIZE_OP | QUEUE_EXPIRY_OP | QUEUE_DESC_OP; rc = mqeAdministrator_LocalQueue_inquire(hAdministrator, &exceptBlk, hQueueName, hQueueMgrName, ¶ms); if (MQERETURN_OK == rc) { MQEINT64 queueExpiry = params.queueExpiry; MQEINT32 queueMaxSize = params.queueMaxQSize; MQeStringHndl queueDescription = params. hDescription; }