#include <hmq.h> MQEHSESS MQeInitialize( MQECHAR * SessionName, MQEINT32 * pCompCode, MQEINT32 * pReason)
The SessionName must be:
If the returned *pCompCode equals MQECC_ERROR, *pReason may have any of the following values:
#include <hmq.h> MQEHSESS hSess; MQEINT32 compcode; MQEINT32 reason; hSess = MQeInitialize("MyAppsName", &compcode, &reason); if (hSess!=MQEHANDLE_NULL) { MQeTerminate(hSess, &compcode, &reason, ); }