Before any administration can take place, an administrator handle must be created using the mqeAdministrator_new API call. The prototype for the call is:
MQERETURN mqeAdministrator_new(MQeExceptBlock* pExceptBlock, MQeAdministratorHndl* phAdmin, MQeQueueManagerHndl hQueueMgr)
The first parameter is a pointer to a valid exception block. The second parameter is a pointer to an administrator handle, which is filled in with a valid handle upon successful return from the function. The third parameter is an optional queue manager handle. If the queue manager to be administered already exists, it must be created using the mqeQueueManager_new function, and the queue manager handle returned must be passed to the mqeAdministrator_new call.
To create a queue manager, NULL must be passed as the third parameter to the mqeAdministrator_new call. If NULL is used, pass the mqeAdministrator_free or mqeAdministrator_QueueManager_create call. Once the mqeAdministrator_QueueManager_create call has been executed, the administrator handle can be used as normal.