MQeFieldsHndl hMsg; rc = mqeQueueManager_getMessage(hQMgr, &exceptBlock, &hMsg, hQMgrName, hQName, hFilter, NULL, confirmId); /* if unsuccessful, undo the operation */ if(MQERETURN_OK != rc) { rc = mqeQueueManager_undo(hQMgr, &exceptBlock, hQMgrName, hQName, confirmId); }