Use this function to create an output message object. For every call to this function, you must include a matching call to cniDeleteMessage to return allocated resources when the processing on the output message has been completed.
CciMessage* cniCreateMessage(
int* returnCode,
CciMessageContext* messageContext);
If successful, the address of the message object is returned. Otherwise, a value of zero (CCI_NULL_ADDR) is returned, and the returnCode parameter indicates the reason for the error.
outMsg = cniCreateMessage(&rc, cniGetMessageContext(&rc, message));