Parameters

Bag (MQHBAG) - input
Bag handle.

The bag must be an administration bag; that is, it must have been created with the MQCBO_ADMIN_BAG option on the mqCreateBag call. If the bag was not created this way, MQRC_BAG_WRONG_TYPE results.

Selector (MQLONG) - input
Selector of the WebSphere MQ object attribute that is to be returned by the appropriate INQUIRE administration command.
CompCode (MQLONG) - output
Completion code.

Reason (MQLONG) - output
Reason code qualifying CompCode.

The following reason codes indicate error conditions that can be returned from the mqAddInquiry call:

MQRC_BAG_WRONG_TYPE
Wrong type of bag for intended use.
MQRC_HBAG_ERROR
Bag handle not valid.
MQRC_SELECTOR_OUT_OF_RANGE
Selector not within valid range for call.
MQRC_STORAGE_NOT_AVAILABLE
Insufficient storage available.
MQRC_SYSTEM_BAG_NOT_ALTERABLE
System bag cannot be altered or deleted.