/*
# clearcase: Tau4.2
*/
/* ========================================================== */
/* === DO NOT EDIT THIS FILE - File was generated by mcod === */
/* === Generated at : Tue Oct 17 08:22:33 2000             == */
/* ========================================================== */

#ifndef __mcodlib_cpp_
#define __mcodlib_cpp_

#include <malloc.h>
#ifdef HOSTSIM
  #define SDTGATE
#endif
#ifndef SDTGATE
  #include "mt_ll.h"
#endif
#include "mcod.h"
#include "mcodlib.hpp"
#include "mcodfnc.hpp"


/*
** Messages with common receiver accessible for all tools.
*/
#define COMMON

static char tmp_buf [256];

/* Currently 99 mesages defined */
int MCODEncode (int msg_id, xmk_U_MsgParams *p, char* buffer, int buffersize )
{
  ClassHostMessage HostMessage;


  HostMessage.StartEncode (buffer, buffersize);


  switch (msg_id)
  {

    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIMessageBoxOKRes :
    {
         MCOD_TRACE("UIMessageBoxOKRes")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIMessageBoxCancelRes :
    {
         MCOD_TRACE("UIMessageBoxCancelRes")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UICmdReq :
    {
         MCOD_TRACE("UICmdReq")
         if (HostMessage.Encode_CSTRING (p->v_UICmdReq.String) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UICmdCancelReq :
    {
         MCOD_TRACE("UICmdCancelReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIPopUpRes :
    {
         MCOD_TRACE("UIPopUpRes")
         if (HostMessage.Encode_CSTRING (p->v_UIPopUpRes.Value) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIPopUpIntegerRes :
    {
         MCOD_TRACE("UIPopUpIntegerRes")
         if (HostMessage.Encode_CSTRING (p->v_UIPopUpIntegerRes.Value) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIPopUpListRes :
    {
         MCOD_TRACE("UIPopUpListRes")
         if (HostMessage.Encode_CSTRING (p->v_UIPopUpListRes.Selection) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIExitReq :
    {
         MCOD_TRACE("UIExitReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UISelectorBoxRes :
    {
         MCOD_TRACE("UISelectorBoxRes")
         if (HostMessage.Encode_CSTRING (p->v_UISelectorBoxRes.File) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIPopupBitMaskRes :
    {
         MCOD_TRACE("UIPopupBitMaskRes")
         if (HostMessage.Encode_CLIST   (p->v_UIPopupBitMaskRes.SelectedOnes) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UISetBoxRes :
    {
         MCOD_TRACE("UISetBoxRes")
         if (HostMessage.Encode_CSTRING (p->v_UISetBoxRes.Directory) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIFatalErrorRes :
    {
         MCOD_TRACE("UIFatalErrorRes")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIGetAllSymbolNamesReq :
    {
         MCOD_TRACE("UIGetAllSymbolNamesReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIPopupSigParRes :
    {
         MCOD_TRACE("UIPopupSigParRes")
         if (HostMessage.Encode_CSTRING (p->v_UIPopupSigParRes.Values) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIStringInd :
    {
         MCOD_TRACE("UIStringInd")
         if (HostMessage.Encode_CSTRING (p->v_UIStringInd.String) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIMessageBoxInd :
    {
         MCOD_TRACE("UIMessageBoxInd")
         if (HostMessage.Encode_CSTRING (p->v_UIMessageBoxInd.WindowTitle) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_UIMessageBoxInd.WindowText) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UICmdCnf :
    {
         MCOD_TRACE("UICmdCnf")
         if (HostMessage.Encode_CSTRING (p->v_UICmdCnf.LastCmdLine) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIPopUpInd :
    {
         MCOD_TRACE("UIPopUpInd")
         if (HostMessage.Encode_CSTRING (p->v_UIPopUpInd.WindowTitle) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_UIPopUpInd.WindowText) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIPopUpIntegerInd :
    {
         MCOD_TRACE("UIPopUpIntegerInd")
         if (HostMessage.Encode_CSTRING (p->v_UIPopUpIntegerInd.WindowTitle) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_UIPopUpIntegerInd.WindowText) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIPopUpListInd :
    {
         MCOD_TRACE("UIPopUpListInd")
         if (HostMessage.Encode_CSTRING (p->v_UIPopUpListInd.WindowTitle) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_UIPopUpListInd.WindowText) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_UIPopUpListInd.More) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CLIST   (p->v_UIPopUpListInd.ListBoxEntries) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIExitInd :
    {
         MCOD_TRACE("UIExitInd")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIExitCnf :
    {
         MCOD_TRACE("UIExitCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UICaptionInd :
    {
         MCOD_TRACE("UICaptionInd")
         if (HostMessage.Encode_CSTRING (p->v_UICaptionInd.Titel) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UISelectorBoxInd :
    {
         MCOD_TRACE("UISelectorBoxInd")
         if (HostMessage.Encode_CSTRING (p->v_UISelectorBoxInd.SelectorBoxTitel) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_UISelectorBoxInd.SelectorBoxPath) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_UISelectorBoxInd.SelectorBoxFilter) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_UISelectorBoxInd.SelectorBoxFilterDescription) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIPopupBitMaskInd :
    {
         MCOD_TRACE("UIPopupBitMaskInd")
         if (HostMessage.Encode_CSTRING (p->v_UIPopupBitMaskInd.WindowTitle) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_UIPopupBitMaskInd.WindowText) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CLIST   (p->v_UIPopupBitMaskInd.ListBoxEntries) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UISetBoxInd :
    {
         MCOD_TRACE("UISetBoxInd")
         if (HostMessage.Encode_CSTRING (p->v_UISetBoxInd.SetBoxTitel) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_UISetBoxInd.SetBoxPath) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIButtonPathAndVersionInd :
    {
         MCOD_TRACE("UIButtonPathAndVersionInd")
         if (HostMessage.Encode_CSTRING (p->v_UIButtonPathAndVersionInd.Path) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_UIButtonPathAndVersionInd.Version) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIFatalErrorInd :
    {
         MCOD_TRACE("UIFatalErrorInd")
         if (HostMessage.Encode_CSTRING (p->v_UIFatalErrorInd.ErrorTitle) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_UIFatalErrorInd.ErrorText) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIDisableTraceInd :
    {
         MCOD_TRACE("UIDisableTraceInd")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIEnableTraceInd :
    {
         MCOD_TRACE("UIEnableTraceInd")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case SdtmtMessageInd :
    {
         MCOD_TRACE("SdtmtMessageInd")
         if (HostMessage.Encode_CSTRING (p->v_SdtmtMessageInd.caption) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_SdtmtMessageInd.text) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIGetAllSymbolNamesCnf :
    {
         MCOD_TRACE("UIGetAllSymbolNamesCnf")
         if (HostMessage.Encode_CINT    (p->v_UIGetAllSymbolNamesCnf.More) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_UIGetAllSymbolNamesCnf.TypeOfList) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CLIST   (p->v_UIGetAllSymbolNamesCnf.ListOfType) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIPopupSigParInd :
    {
         MCOD_TRACE("UIPopupSigParInd")
         if (HostMessage.Encode_CSTRING (p->v_UIPopupSigParInd.WindowTitle) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_UIPopupSigParInd.WindowText) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_UIPopupSigParInd.More) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CLIST   (p->v_UIPopupSigParInd.ListOfType) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIPopUpIntegerLimitInd :
    {
         MCOD_TRACE("UIPopUpIntegerLimitInd")
         if (HostMessage.Encode_CSTRING (p->v_UIPopUpIntegerLimitInd.WindowTitle) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_UIPopUpIntegerLimitInd.WindowText) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_UIPopUpIntegerLimitInd.LowerLimit) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_UIPopUpIntegerLimitInd.UpperLimit) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case EXTOutputToEnvInd :
    {
         MCOD_TRACE("EXTOutputToEnvInd")
         if (HostMessage.Encode_CSTRING (p->v_EXTOutputToEnvInd.output) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(EXTERNAL) || defined(MCOD_DEBUG)
    case EXTOutputFromEnvReq :
    {
         MCOD_TRACE("EXTOutputFromEnvReq")
         if (HostMessage.Encode_CSTRING (p->v_EXTOutputFromEnvReq.output) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateForkParReq :
    {
         MCOD_TRACE("GateForkParReq")
         if (HostMessage.Encode_CSTRING (p->v_GateForkParReq.CharParam_1) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_GateForkParReq.CharParam_2) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_GateForkParReq.CharParam_3) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_GateForkParReq.IntegerParam_1) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_GateForkParReq.IntegerParam_2) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_GateForkParReq.IntegerParam_3) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_GateForkParReq.CharacterLength) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_GateForkParReq.CharacterPosition) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateDataReq :
    {
         MCOD_TRACE("GateDataReq")
         if (HostMessage.Encode_CRAWBUFFER (p->v_GateDataReq.len, p->v_GateDataReq.RawBuffer) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateLineStatusReq :
    {
         MCOD_TRACE("GateLineStatusReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateExitReq :
    {
         MCOD_TRACE("GateExitReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateExitRes :
    {
         MCOD_TRACE("GateExitRes")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateStartReq :
    {
         MCOD_TRACE("GateStartReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateStopReq :
    {
         MCOD_TRACE("GateStopReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateT32CommandReq :
    {
         MCOD_TRACE("GateT32CommandReq")
         if (HostMessage.Encode_CSTRING (p->v_GateT32CommandReq.command) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateForkParCnf :
    {
         MCOD_TRACE("GateForkParCnf")
         if (HostMessage.Encode_CINT    (p->v_GateForkParCnf.VersionHigh) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_GateForkParCnf.VersionLow) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_GateForkParCnf.who_am_i) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateDataInd :
    {
         MCOD_TRACE("GateDataInd")
         if (HostMessage.Encode_CRAWBUFFER (p->v_GateDataInd.len, p->v_GateDataInd.RawBuffer) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateErrorInd :
    {
         MCOD_TRACE("GateErrorInd")
         if (HostMessage.Encode_CSTRING (p->v_GateErrorInd.ErrorText) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateLineStatusCnf :
    {
         MCOD_TRACE("GateLineStatusCnf")
         if (HostMessage.Encode_CINT    (p->v_GateLineStatusCnf.XON_received) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_GateLineStatusCnf.XOFF_received) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_GateLineStatusCnf.chars_received) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_GateLineStatusCnf.received_frames_not_OK) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_GateLineStatusCnf.received_frames_OK) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_GateLineStatusCnf.receiver_fatal_error) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_GateLineStatusCnf.XON_sent) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_GateLineStatusCnf.XOFF_sent) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_GateLineStatusCnf.ESC_sent) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_GateLineStatusCnf.chars_sent) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_GateLineStatusCnf.try_to_send_frames) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_GateLineStatusCnf.transmitter_fatal_error) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_GateLineStatusCnf.is_changed) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateExitInd :
    {
         MCOD_TRACE("GateExitInd")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateStartCnf :
    {
         MCOD_TRACE("GateStartCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateStopCnf :
    {
         MCOD_TRACE("GateStopCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateT32CommandCnf :
    {
         MCOD_TRACE("GateT32CommandCnf")
         if (HostMessage.Encode_CSTRING (p->v_GateT32CommandCnf.response) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateStringInd :
    {
         MCOD_TRACE("GateStringInd")
         if (HostMessage.Encode_CSTRING (p->v_GateStringInd.String) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case MPMConnectReq :
    {
         MCOD_TRACE("MPMConnectReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case MPMDisconnectReq :
    {
         MCOD_TRACE("MPMDisconnectReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case MPMDisconnectRes :
    {
         MCOD_TRACE("MPMDisconnectRes")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIConnectionReq :
    {
         MCOD_TRACE("UIConnectionReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case SdtmtConnectionReq :
    {
         MCOD_TRACE("SdtmtConnectionReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateConnectionReq :
    {
         MCOD_TRACE("GateConnectionReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case LinkConnectionReq :
    {
         MCOD_TRACE("LinkConnectionReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(EXTERNAL) || defined(MCOD_DEBUG)
    case ExternalConnectionReq :
    {
         MCOD_TRACE("ExternalConnectionReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case MPMGateStartupReq :
    {
         MCOD_TRACE("MPMGateStartupReq")
         if (HostMessage.Encode_CSTRING (p->v_MPMGateStartupReq.fullpath) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case MPMGateStartupCnf :
    {
         MCOD_TRACE("MPMGateStartupCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case MPMConnectCnf :
    {
         MCOD_TRACE("MPMConnectCnf")
         if (HostMessage.Encode_CINT    (p->v_MPMConnectCnf.toolid) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_MPMConnectCnf.sdtmt_connected) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_MPMConnectCnf.sdtgate_connected) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_MPMConnectCnf.sdtmtui_connected) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_MPMConnectCnf.MPMVersion) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case MPMDisconnectCnf :
    {
         MCOD_TRACE("MPMDisconnectCnf")
         if (HostMessage.Encode_CINT    (p->v_MPMDisconnectCnf.toolid) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_MPMDisconnectCnf.sdtmt_connected) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_MPMDisconnectCnf.sdtgate_connected) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_MPMDisconnectCnf.sdtmtui_connected) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case UIConnectionCnf :
    {
         MCOD_TRACE("UIConnectionCnf")
         if (HostMessage.Encode_CINT    (p->v_UIConnectionCnf.sdtmt_connected) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_UIConnectionCnf.sdtgate_connected) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_UIConnectionCnf.Version) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case UIConnectionDeny :
    {
         MCOD_TRACE("UIConnectionDeny")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case SdtmtConnectionCnf :
    {
         MCOD_TRACE("SdtmtConnectionCnf")
         if (HostMessage.Encode_CINT    (p->v_SdtmtConnectionCnf.sdtmtui_connected) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_SdtmtConnectionCnf.sdtgate_connected) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case SdtmtConnectionDeny :
    {
         MCOD_TRACE("SdtmtConnectionDeny")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case GateConnectionCnf :
    {
         MCOD_TRACE("GateConnectionCnf")
         if (HostMessage.Encode_CINT    (p->v_GateConnectionCnf.sdtmt_connected) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_GateConnectionCnf.sdtmtui_connected) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case GateConnectionDeny :
    {
         MCOD_TRACE("GateConnectionDeny")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case LinkConnectionCnf :
    {
         MCOD_TRACE("LinkConnectionCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case LinkConnectionDeny :
    {
         MCOD_TRACE("LinkConnectionDeny")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case ExternalConnectionDeny :
    {
         MCOD_TRACE("ExternalConnectionDeny")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case ExternalConnectionCnf :
    {
         MCOD_TRACE("ExternalConnectionCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case SdtmtStartupNotification :
    {
         MCOD_TRACE("SdtmtStartupNotification")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case UIStartupNotification :
    {
         MCOD_TRACE("UIStartupNotification")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case GateStartupNotification :
    {
         MCOD_TRACE("GateStartupNotification")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case LinkStartupNotification :
    {
         MCOD_TRACE("LinkStartupNotification")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case MSCStartReq :
    {
         MCOD_TRACE("MSCStartReq")
         if (HostMessage.Encode_CSTRING (p->v_MSCStartReq.CharParam_1) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case MSCDataReq :
    {
         MCOD_TRACE("MSCDataReq")
         if (HostMessage.Encode_CSTRING (p->v_MSCDataReq.CharParam_1) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case LicInitCheckReq :
    {
         MCOD_TRACE("LicInitCheckReq")
         if (HostMessage.Encode_CSTRING (p->v_LicInitCheckReq.version) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case LicCheckReq :
    {
         MCOD_TRACE("LicCheckReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case HelpCmdReq :
    {
         MCOD_TRACE("HelpCmdReq")
         if (HostMessage.Encode_CSTRING (p->v_HelpCmdReq.HelpIndex) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case SDLEStartReq :
    {
         MCOD_TRACE("SDLEStartReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case SDLEDataReq :
    {
         MCOD_TRACE("SDLEDataReq")
         if (HostMessage.Encode_CSTRING (p->v_SDLEDataReq.GR_Reference) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case LinkShowOrganizerReq :
    {
         MCOD_TRACE("LinkShowOrganizerReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case SDTPMStartReq :
    {
         MCOD_TRACE("SDTPMStartReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case LicInitCheckCnf :
    {
         MCOD_TRACE("LicInitCheckCnf")
         if (HostMessage.Encode_CINT    (p->v_LicInitCheckCnf.status) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_LicInitCheckCnf.CharParam_1) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case LicCheckCnf :
    {
         MCOD_TRACE("LicCheckCnf")
         if (HostMessage.Encode_CINT    (p->v_LicCheckCnf.status) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_LicCheckCnf.CharParam_1) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case LinkNoPMInd :
    {
         MCOD_TRACE("LinkNoPMInd")
         if (HostMessage.Encode_CSTRING (p->v_LinkNoPMInd.CharParam_1) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case MSCStartUpCnf :
    {
         MCOD_TRACE("MSCStartUpCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case LinkVersionInd :
    {
         MCOD_TRACE("LinkVersionInd")
         if (HostMessage.Encode_CSTRING (p->v_LinkVersionInd.Version) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case LinkExitInd :
    {
         MCOD_TRACE("LinkExitInd")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case LinkMessageInd :
    {
         MCOD_TRACE("LinkMessageInd")
         if (HostMessage.Encode_CSTRING (p->v_LinkMessageInd.caption) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CSTRING (p->v_LinkMessageInd.text) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case ExitNotification :
    {
         MCOD_TRACE("ExitNotification")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case AlertExit :
    {
         MCOD_TRACE("AlertExit")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case MPMDisconnectInd :
    {
         MCOD_TRACE("MPMDisconnectInd")
         if (HostMessage.Encode_CINT    (p->v_MPMDisconnectInd.toolid) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_MPMDisconnectInd.sdtmt_connected) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_MPMDisconnectInd.sdtgate_connected) != ENC_OKAY)
           return (ENC_ERROR);

         if (HostMessage.Encode_CINT    (p->v_MPMDisconnectInd.sdtmtui_connected) != ENC_OKAY)
           return (ENC_ERROR);

    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case MPMErrorInd :
    {
         MCOD_TRACE("MPMErrorInd")
         /*No parameters in message*/
    }
    break;
    #endif


    default:

      break;

  }


  return( HostMessage.EncodedLength() );

}


int MCODDecode (int msg_id, char* buffer, int buffersize, xmk_U_MsgParams *p)
{
  ClassHostMessage HostMessage;
  int              result;


  HostMessage.StartDecode (buffer, buffersize);


  switch (msg_id)
  {

    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIMessageBoxOKRes :
    {
         MCOD_TRACE("UIMessageBoxOKRes")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIMessageBoxCancelRes :
    {
         MCOD_TRACE("UIMessageBoxCancelRes")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UICmdReq :
    {
         MCOD_TRACE("UICmdReq")
         result = HostMessage.Decode_CSTRING    (&p->v_UICmdReq.String);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UICmdCancelReq :
    {
         MCOD_TRACE("UICmdCancelReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIPopUpRes :
    {
         MCOD_TRACE("UIPopUpRes")
         result = HostMessage.Decode_CSTRING    (&p->v_UIPopUpRes.Value);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIPopUpIntegerRes :
    {
         MCOD_TRACE("UIPopUpIntegerRes")
         result = HostMessage.Decode_CSTRING    (&p->v_UIPopUpIntegerRes.Value);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIPopUpListRes :
    {
         MCOD_TRACE("UIPopUpListRes")
         result = HostMessage.Decode_CSTRING    (&p->v_UIPopUpListRes.Selection);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIExitReq :
    {
         MCOD_TRACE("UIExitReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UISelectorBoxRes :
    {
         MCOD_TRACE("UISelectorBoxRes")
         result = HostMessage.Decode_CSTRING    (&p->v_UISelectorBoxRes.File);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIPopupBitMaskRes :
    {
         MCOD_TRACE("UIPopupBitMaskRes")
         result = HostMessage.Decode_CLIST      (&p->v_UIPopupBitMaskRes.SelectedOnes);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UISetBoxRes :
    {
         MCOD_TRACE("UISetBoxRes")
         result = HostMessage.Decode_CSTRING    (&p->v_UISetBoxRes.Directory);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIFatalErrorRes :
    {
         MCOD_TRACE("UIFatalErrorRes")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIGetAllSymbolNamesReq :
    {
         MCOD_TRACE("UIGetAllSymbolNamesReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIPopupSigParRes :
    {
         MCOD_TRACE("UIPopupSigParRes")
         result = HostMessage.Decode_CSTRING    (&p->v_UIPopupSigParRes.Values);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIStringInd :
    {
         MCOD_TRACE("UIStringInd")
         result = HostMessage.Decode_CSTRING    (&p->v_UIStringInd.String);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIMessageBoxInd :
    {
         MCOD_TRACE("UIMessageBoxInd")
         result = HostMessage.Decode_CSTRING    (&p->v_UIMessageBoxInd.WindowTitle);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_UIMessageBoxInd.WindowText);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UICmdCnf :
    {
         MCOD_TRACE("UICmdCnf")
         result = HostMessage.Decode_CSTRING    (&p->v_UICmdCnf.LastCmdLine);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIPopUpInd :
    {
         MCOD_TRACE("UIPopUpInd")
         result = HostMessage.Decode_CSTRING    (&p->v_UIPopUpInd.WindowTitle);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_UIPopUpInd.WindowText);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIPopUpIntegerInd :
    {
         MCOD_TRACE("UIPopUpIntegerInd")
         result = HostMessage.Decode_CSTRING    (&p->v_UIPopUpIntegerInd.WindowTitle);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_UIPopUpIntegerInd.WindowText);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIPopUpListInd :
    {
         MCOD_TRACE("UIPopUpListInd")
         result = HostMessage.Decode_CSTRING    (&p->v_UIPopUpListInd.WindowTitle);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_UIPopUpListInd.WindowText);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_UIPopUpListInd.More);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CLIST      (&p->v_UIPopUpListInd.ListBoxEntries);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIExitInd :
    {
         MCOD_TRACE("UIExitInd")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIExitCnf :
    {
         MCOD_TRACE("UIExitCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UICaptionInd :
    {
         MCOD_TRACE("UICaptionInd")
         result = HostMessage.Decode_CSTRING    (&p->v_UICaptionInd.Titel);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UISelectorBoxInd :
    {
         MCOD_TRACE("UISelectorBoxInd")
         result = HostMessage.Decode_CSTRING    (&p->v_UISelectorBoxInd.SelectorBoxTitel);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_UISelectorBoxInd.SelectorBoxPath);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_UISelectorBoxInd.SelectorBoxFilter);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_UISelectorBoxInd.SelectorBoxFilterDescription);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIPopupBitMaskInd :
    {
         MCOD_TRACE("UIPopupBitMaskInd")
         result = HostMessage.Decode_CSTRING    (&p->v_UIPopupBitMaskInd.WindowTitle);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_UIPopupBitMaskInd.WindowText);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CLIST      (&p->v_UIPopupBitMaskInd.ListBoxEntries);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UISetBoxInd :
    {
         MCOD_TRACE("UISetBoxInd")
         result = HostMessage.Decode_CSTRING    (&p->v_UISetBoxInd.SetBoxTitel);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_UISetBoxInd.SetBoxPath);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIButtonPathAndVersionInd :
    {
         MCOD_TRACE("UIButtonPathAndVersionInd")
         result = HostMessage.Decode_CSTRING    (&p->v_UIButtonPathAndVersionInd.Path);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_UIButtonPathAndVersionInd.Version);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIFatalErrorInd :
    {
         MCOD_TRACE("UIFatalErrorInd")
         result = HostMessage.Decode_CSTRING    (&p->v_UIFatalErrorInd.ErrorTitle);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_UIFatalErrorInd.ErrorText);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIDisableTraceInd :
    {
         MCOD_TRACE("UIDisableTraceInd")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIEnableTraceInd :
    {
         MCOD_TRACE("UIEnableTraceInd")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case SdtmtMessageInd :
    {
         MCOD_TRACE("SdtmtMessageInd")
         result = HostMessage.Decode_CSTRING    (&p->v_SdtmtMessageInd.caption);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_SdtmtMessageInd.text);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIGetAllSymbolNamesCnf :
    {
         MCOD_TRACE("UIGetAllSymbolNamesCnf")
         result = HostMessage.Decode_CINT       (&p->v_UIGetAllSymbolNamesCnf.More);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_UIGetAllSymbolNamesCnf.TypeOfList);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CLIST      (&p->v_UIGetAllSymbolNamesCnf.ListOfType);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIPopupSigParInd :
    {
         MCOD_TRACE("UIPopupSigParInd")
         result = HostMessage.Decode_CSTRING    (&p->v_UIPopupSigParInd.WindowTitle);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_UIPopupSigParInd.WindowText);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_UIPopupSigParInd.More);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CLIST      (&p->v_UIPopupSigParInd.ListOfType);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIPopUpIntegerLimitInd :
    {
         MCOD_TRACE("UIPopUpIntegerLimitInd")
         result = HostMessage.Decode_CSTRING    (&p->v_UIPopUpIntegerLimitInd.WindowTitle);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_UIPopUpIntegerLimitInd.WindowText);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_UIPopUpIntegerLimitInd.LowerLimit);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_UIPopUpIntegerLimitInd.UpperLimit);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(EXTERNAL) || defined(MCOD_DEBUG)
    case EXTOutputToEnvInd :
    {
         MCOD_TRACE("EXTOutputToEnvInd")
         result = HostMessage.Decode_CSTRING    (&p->v_EXTOutputToEnvInd.output);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case EXTOutputFromEnvReq :
    {
         MCOD_TRACE("EXTOutputFromEnvReq")
         result = HostMessage.Decode_CSTRING    (&p->v_EXTOutputFromEnvReq.output);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateForkParReq :
    {
         MCOD_TRACE("GateForkParReq")
         result = HostMessage.Decode_CSTRING    (&p->v_GateForkParReq.CharParam_1);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_GateForkParReq.CharParam_2);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_GateForkParReq.CharParam_3);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_GateForkParReq.IntegerParam_1);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_GateForkParReq.IntegerParam_2);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_GateForkParReq.IntegerParam_3);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_GateForkParReq.CharacterLength);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_GateForkParReq.CharacterPosition);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateDataReq :
    {
         MCOD_TRACE("GateDataReq")
         result = HostMessage.Decode_CRAWBUFFER (&p->v_GateDataReq.len, &p->v_GateDataReq.RawBuffer);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateLineStatusReq :
    {
         MCOD_TRACE("GateLineStatusReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateExitReq :
    {
         MCOD_TRACE("GateExitReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateExitRes :
    {
         MCOD_TRACE("GateExitRes")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateStartReq :
    {
         MCOD_TRACE("GateStartReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateStopReq :
    {
         MCOD_TRACE("GateStopReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateT32CommandReq :
    {
         MCOD_TRACE("GateT32CommandReq")
         result = HostMessage.Decode_CSTRING    (&p->v_GateT32CommandReq.command);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateForkParCnf :
    {
         MCOD_TRACE("GateForkParCnf")
         result = HostMessage.Decode_CINT       (&p->v_GateForkParCnf.VersionHigh);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_GateForkParCnf.VersionLow);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_GateForkParCnf.who_am_i);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateDataInd :
    {
         MCOD_TRACE("GateDataInd")
         result = HostMessage.Decode_CRAWBUFFER (&p->v_GateDataInd.len, &p->v_GateDataInd.RawBuffer);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateErrorInd :
    {
         MCOD_TRACE("GateErrorInd")
         result = HostMessage.Decode_CSTRING    (&p->v_GateErrorInd.ErrorText);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateLineStatusCnf :
    {
         MCOD_TRACE("GateLineStatusCnf")
         result = HostMessage.Decode_CINT       (&p->v_GateLineStatusCnf.XON_received);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_GateLineStatusCnf.XOFF_received);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_GateLineStatusCnf.chars_received);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_GateLineStatusCnf.received_frames_not_OK);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_GateLineStatusCnf.received_frames_OK);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_GateLineStatusCnf.receiver_fatal_error);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_GateLineStatusCnf.XON_sent);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_GateLineStatusCnf.XOFF_sent);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_GateLineStatusCnf.ESC_sent);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_GateLineStatusCnf.chars_sent);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_GateLineStatusCnf.try_to_send_frames);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_GateLineStatusCnf.transmitter_fatal_error);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_GateLineStatusCnf.is_changed);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateExitInd :
    {
         MCOD_TRACE("GateExitInd")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateStartCnf :
    {
         MCOD_TRACE("GateStartCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateStopCnf :
    {
         MCOD_TRACE("GateStopCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateT32CommandCnf :
    {
         MCOD_TRACE("GateT32CommandCnf")
         result = HostMessage.Decode_CSTRING    (&p->v_GateT32CommandCnf.response);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateStringInd :
    {
         MCOD_TRACE("GateStringInd")
         result = HostMessage.Decode_CSTRING    (&p->v_GateStringInd.String);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case MPMConnectReq :
    {
         MCOD_TRACE("MPMConnectReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case MPMDisconnectReq :
    {
         MCOD_TRACE("MPMDisconnectReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case MPMDisconnectRes :
    {
         MCOD_TRACE("MPMDisconnectRes")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case UIConnectionReq :
    {
         MCOD_TRACE("UIConnectionReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case SdtmtConnectionReq :
    {
         MCOD_TRACE("SdtmtConnectionReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case GateConnectionReq :
    {
         MCOD_TRACE("GateConnectionReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case LinkConnectionReq :
    {
         MCOD_TRACE("LinkConnectionReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case ExternalConnectionReq :
    {
         MCOD_TRACE("ExternalConnectionReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case MPMGateStartupReq :
    {
         MCOD_TRACE("MPMGateStartupReq")
         result = HostMessage.Decode_CSTRING    (&p->v_MPMGateStartupReq.fullpath);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case MPMGateStartupCnf :
    {
         MCOD_TRACE("MPMGateStartupCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case MPMConnectCnf :
    {
         MCOD_TRACE("MPMConnectCnf")
         result = HostMessage.Decode_CINT       (&p->v_MPMConnectCnf.toolid);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_MPMConnectCnf.sdtmt_connected);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_MPMConnectCnf.sdtgate_connected);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_MPMConnectCnf.sdtmtui_connected);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_MPMConnectCnf.MPMVersion);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case MPMDisconnectCnf :
    {
         MCOD_TRACE("MPMDisconnectCnf")
         result = HostMessage.Decode_CINT       (&p->v_MPMDisconnectCnf.toolid);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_MPMDisconnectCnf.sdtmt_connected);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_MPMDisconnectCnf.sdtgate_connected);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_MPMDisconnectCnf.sdtmtui_connected);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIConnectionCnf :
    {
         MCOD_TRACE("UIConnectionCnf")
         result = HostMessage.Decode_CINT       (&p->v_UIConnectionCnf.sdtmt_connected);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_UIConnectionCnf.sdtgate_connected);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_UIConnectionCnf.Version);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIConnectionDeny :
    {
         MCOD_TRACE("UIConnectionDeny")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case SdtmtConnectionCnf :
    {
         MCOD_TRACE("SdtmtConnectionCnf")
         result = HostMessage.Decode_CINT       (&p->v_SdtmtConnectionCnf.sdtmtui_connected);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_SdtmtConnectionCnf.sdtgate_connected);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case SdtmtConnectionDeny :
    {
         MCOD_TRACE("SdtmtConnectionDeny")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateConnectionCnf :
    {
         MCOD_TRACE("GateConnectionCnf")
         result = HostMessage.Decode_CINT       (&p->v_GateConnectionCnf.sdtmt_connected);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_GateConnectionCnf.sdtmtui_connected);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateConnectionDeny :
    {
         MCOD_TRACE("GateConnectionDeny")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case LinkConnectionCnf :
    {
         MCOD_TRACE("LinkConnectionCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case LinkConnectionDeny :
    {
         MCOD_TRACE("LinkConnectionDeny")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case ExternalConnectionDeny :
    {
         MCOD_TRACE("ExternalConnectionDeny")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case ExternalConnectionCnf :
    {
         MCOD_TRACE("ExternalConnectionCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case SdtmtStartupNotification :
    {
         MCOD_TRACE("SdtmtStartupNotification")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case UIStartupNotification :
    {
         MCOD_TRACE("UIStartupNotification")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case GateStartupNotification :
    {
         MCOD_TRACE("GateStartupNotification")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case LinkStartupNotification :
    {
         MCOD_TRACE("LinkStartupNotification")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case MSCStartReq :
    {
         MCOD_TRACE("MSCStartReq")
         result = HostMessage.Decode_CSTRING    (&p->v_MSCStartReq.CharParam_1);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case MSCDataReq :
    {
         MCOD_TRACE("MSCDataReq")
         result = HostMessage.Decode_CSTRING    (&p->v_MSCDataReq.CharParam_1);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case LicInitCheckReq :
    {
         MCOD_TRACE("LicInitCheckReq")
         result = HostMessage.Decode_CSTRING    (&p->v_LicInitCheckReq.version);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case LicCheckReq :
    {
         MCOD_TRACE("LicCheckReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case HelpCmdReq :
    {
         MCOD_TRACE("HelpCmdReq")
         result = HostMessage.Decode_CSTRING    (&p->v_HelpCmdReq.HelpIndex);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case SDLEStartReq :
    {
         MCOD_TRACE("SDLEStartReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case SDLEDataReq :
    {
         MCOD_TRACE("SDLEDataReq")
         result = HostMessage.Decode_CSTRING    (&p->v_SDLEDataReq.GR_Reference);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case LinkShowOrganizerReq :
    {
         MCOD_TRACE("LinkShowOrganizerReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case SDTPMStartReq :
    {
         MCOD_TRACE("SDTPMStartReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case LicInitCheckCnf :
    {
         MCOD_TRACE("LicInitCheckCnf")
         result = HostMessage.Decode_CINT       (&p->v_LicInitCheckCnf.status);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_LicInitCheckCnf.CharParam_1);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case LicCheckCnf :
    {
         MCOD_TRACE("LicCheckCnf")
         result = HostMessage.Decode_CINT       (&p->v_LicCheckCnf.status);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_LicCheckCnf.CharParam_1);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case LinkNoPMInd :
    {
         MCOD_TRACE("LinkNoPMInd")
         result = HostMessage.Decode_CSTRING    (&p->v_LinkNoPMInd.CharParam_1);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case MSCStartUpCnf :
    {
         MCOD_TRACE("MSCStartUpCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case LinkVersionInd :
    {
         MCOD_TRACE("LinkVersionInd")
         result = HostMessage.Decode_CSTRING    (&p->v_LinkVersionInd.Version);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case LinkExitInd :
    {
         MCOD_TRACE("LinkExitInd")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case LinkMessageInd :
    {
         MCOD_TRACE("LinkMessageInd")
         result = HostMessage.Decode_CSTRING    (&p->v_LinkMessageInd.caption);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CSTRING    (&p->v_LinkMessageInd.text);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case ExitNotification :
    {
         MCOD_TRACE("ExitNotification")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case AlertExit :
    {
         MCOD_TRACE("AlertExit")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case MPMDisconnectInd :
    {
         MCOD_TRACE("MPMDisconnectInd")
         result = HostMessage.Decode_CINT       (&p->v_MPMDisconnectInd.toolid);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_MPMDisconnectInd.sdtmt_connected);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_MPMDisconnectInd.sdtgate_connected);
         if( result != DEC_OKAY )  return (result);

         result = HostMessage.Decode_CINT       (&p->v_MPMDisconnectInd.sdtmtui_connected);
         if( result != DEC_OKAY )  return (result);

    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case MPMErrorInd :
    {
         MCOD_TRACE("MPMErrorInd")
         /*No parameters in message*/
    }
    break;
    #endif


    default:

      break;

  }


  return( HostMessage.EndDecode() );

}


int MCODEndDecode (int msg_id, xmk_U_MsgParams *p)
{
  ClassHostMessage HostMessage;


  switch (msg_id)
  {

    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIMessageBoxOKRes :
    {
         MCOD_TRACE("UIMessageBoxOKRes")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIMessageBoxCancelRes :
    {
         MCOD_TRACE("UIMessageBoxCancelRes")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UICmdReq :
    {
         MCOD_TRACE("UICmdReq")
         MCOD_FREE(p->v_UICmdReq.String);
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UICmdCancelReq :
    {
         MCOD_TRACE("UICmdCancelReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIPopUpRes :
    {
         MCOD_TRACE("UIPopUpRes")
         MCOD_FREE(p->v_UIPopUpRes.Value);
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIPopUpIntegerRes :
    {
         MCOD_TRACE("UIPopUpIntegerRes")
         MCOD_FREE(p->v_UIPopUpIntegerRes.Value);
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIPopUpListRes :
    {
         MCOD_TRACE("UIPopUpListRes")
         MCOD_FREE(p->v_UIPopUpListRes.Selection);
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIExitReq :
    {
         MCOD_TRACE("UIExitReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UISelectorBoxRes :
    {
         MCOD_TRACE("UISelectorBoxRes")
         MCOD_FREE(p->v_UISelectorBoxRes.File);
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIPopupBitMaskRes :
    {
         MCOD_TRACE("UIPopupBitMaskRes")
         p->v_UIPopupBitMaskRes.SelectedOnes = HostMessage.FreeCList (p->v_UIPopupBitMaskRes.SelectedOnes);
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UISetBoxRes :
    {
         MCOD_TRACE("UISetBoxRes")
         MCOD_FREE(p->v_UISetBoxRes.Directory);
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIFatalErrorRes :
    {
         MCOD_TRACE("UIFatalErrorRes")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIGetAllSymbolNamesReq :
    {
         MCOD_TRACE("UIGetAllSymbolNamesReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case UIPopupSigParRes :
    {
         MCOD_TRACE("UIPopupSigParRes")
         MCOD_FREE(p->v_UIPopupSigParRes.Values);
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIStringInd :
    {
         MCOD_TRACE("UIStringInd")
         MCOD_FREE(p->v_UIStringInd.String);
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIMessageBoxInd :
    {
         MCOD_TRACE("UIMessageBoxInd")
         MCOD_FREE(p->v_UIMessageBoxInd.WindowTitle);
         MCOD_FREE(p->v_UIMessageBoxInd.WindowText);
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UICmdCnf :
    {
         MCOD_TRACE("UICmdCnf")
         MCOD_FREE(p->v_UICmdCnf.LastCmdLine);
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIPopUpInd :
    {
         MCOD_TRACE("UIPopUpInd")
         MCOD_FREE(p->v_UIPopUpInd.WindowTitle);
         MCOD_FREE(p->v_UIPopUpInd.WindowText);
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIPopUpIntegerInd :
    {
         MCOD_TRACE("UIPopUpIntegerInd")
         MCOD_FREE(p->v_UIPopUpIntegerInd.WindowTitle);
         MCOD_FREE(p->v_UIPopUpIntegerInd.WindowText);
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIPopUpListInd :
    {
         MCOD_TRACE("UIPopUpListInd")
         MCOD_FREE(p->v_UIPopUpListInd.WindowTitle);
         MCOD_FREE(p->v_UIPopUpListInd.WindowText);
         /* No free for CINT parameter (p->v_UIPopUpListInd.More) */
         p->v_UIPopUpListInd.ListBoxEntries = HostMessage.FreeCList (p->v_UIPopUpListInd.ListBoxEntries);
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIExitInd :
    {
         MCOD_TRACE("UIExitInd")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIExitCnf :
    {
         MCOD_TRACE("UIExitCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UICaptionInd :
    {
         MCOD_TRACE("UICaptionInd")
         MCOD_FREE(p->v_UICaptionInd.Titel);
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UISelectorBoxInd :
    {
         MCOD_TRACE("UISelectorBoxInd")
         MCOD_FREE(p->v_UISelectorBoxInd.SelectorBoxTitel);
         MCOD_FREE(p->v_UISelectorBoxInd.SelectorBoxPath);
         MCOD_FREE(p->v_UISelectorBoxInd.SelectorBoxFilter);
         MCOD_FREE(p->v_UISelectorBoxInd.SelectorBoxFilterDescription);
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIPopupBitMaskInd :
    {
         MCOD_TRACE("UIPopupBitMaskInd")
         MCOD_FREE(p->v_UIPopupBitMaskInd.WindowTitle);
         MCOD_FREE(p->v_UIPopupBitMaskInd.WindowText);
         p->v_UIPopupBitMaskInd.ListBoxEntries = HostMessage.FreeCList (p->v_UIPopupBitMaskInd.ListBoxEntries);
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UISetBoxInd :
    {
         MCOD_TRACE("UISetBoxInd")
         MCOD_FREE(p->v_UISetBoxInd.SetBoxTitel);
         MCOD_FREE(p->v_UISetBoxInd.SetBoxPath);
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIButtonPathAndVersionInd :
    {
         MCOD_TRACE("UIButtonPathAndVersionInd")
         MCOD_FREE(p->v_UIButtonPathAndVersionInd.Path);
         MCOD_FREE(p->v_UIButtonPathAndVersionInd.Version);
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIFatalErrorInd :
    {
         MCOD_TRACE("UIFatalErrorInd")
         MCOD_FREE(p->v_UIFatalErrorInd.ErrorTitle);
         MCOD_FREE(p->v_UIFatalErrorInd.ErrorText);
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIDisableTraceInd :
    {
         MCOD_TRACE("UIDisableTraceInd")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIEnableTraceInd :
    {
         MCOD_TRACE("UIEnableTraceInd")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case SdtmtMessageInd :
    {
         MCOD_TRACE("SdtmtMessageInd")
         MCOD_FREE(p->v_SdtmtMessageInd.caption);
         MCOD_FREE(p->v_SdtmtMessageInd.text);
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIGetAllSymbolNamesCnf :
    {
         MCOD_TRACE("UIGetAllSymbolNamesCnf")
         /* No free for CINT parameter (p->v_UIGetAllSymbolNamesCnf.More) */
         /* No free for CINT parameter (p->v_UIGetAllSymbolNamesCnf.TypeOfList) */
         p->v_UIGetAllSymbolNamesCnf.ListOfType = HostMessage.FreeCList (p->v_UIGetAllSymbolNamesCnf.ListOfType);
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIPopupSigParInd :
    {
         MCOD_TRACE("UIPopupSigParInd")
         MCOD_FREE(p->v_UIPopupSigParInd.WindowTitle);
         MCOD_FREE(p->v_UIPopupSigParInd.WindowText);
         /* No free for CINT parameter (p->v_UIPopupSigParInd.More) */
         p->v_UIPopupSigParInd.ListOfType = HostMessage.FreeCList (p->v_UIPopupSigParInd.ListOfType);
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIPopUpIntegerLimitInd :
    {
         MCOD_TRACE("UIPopUpIntegerLimitInd")
         MCOD_FREE(p->v_UIPopUpIntegerLimitInd.WindowTitle);
         MCOD_FREE(p->v_UIPopUpIntegerLimitInd.WindowText);
         /* No free for CINT parameter (p->v_UIPopUpIntegerLimitInd.LowerLimit) */
         /* No free for CINT parameter (p->v_UIPopUpIntegerLimitInd.UpperLimit) */
    }
    break;
    #endif


    #if defined(EXTERNAL) || defined(MCOD_DEBUG)
    case EXTOutputToEnvInd :
    {
         MCOD_TRACE("EXTOutputToEnvInd")
         MCOD_FREE(p->v_EXTOutputToEnvInd.output);
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case EXTOutputFromEnvReq :
    {
         MCOD_TRACE("EXTOutputFromEnvReq")
         MCOD_FREE(p->v_EXTOutputFromEnvReq.output);
    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateForkParReq :
    {
         MCOD_TRACE("GateForkParReq")
         MCOD_FREE(p->v_GateForkParReq.CharParam_1);
         MCOD_FREE(p->v_GateForkParReq.CharParam_2);
         MCOD_FREE(p->v_GateForkParReq.CharParam_3);
         /* No free for CINT parameter (p->v_GateForkParReq.IntegerParam_1) */
         /* No free for CINT parameter (p->v_GateForkParReq.IntegerParam_2) */
         /* No free for CINT parameter (p->v_GateForkParReq.IntegerParam_3) */
         /* No free for CINT parameter (p->v_GateForkParReq.CharacterLength) */
         /* No free for CINT parameter (p->v_GateForkParReq.CharacterPosition) */
    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateDataReq :
    {
         MCOD_TRACE("GateDataReq")
         p->v_GateDataReq.RawBuffer = HostMessage.FreeCRAWBuffer (p->v_GateDataReq.RawBuffer);
    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateLineStatusReq :
    {
         MCOD_TRACE("GateLineStatusReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateExitReq :
    {
         MCOD_TRACE("GateExitReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateExitRes :
    {
         MCOD_TRACE("GateExitRes")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateStartReq :
    {
         MCOD_TRACE("GateStartReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateStopReq :
    {
         MCOD_TRACE("GateStopReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateT32CommandReq :
    {
         MCOD_TRACE("GateT32CommandReq")
         MCOD_FREE(p->v_GateT32CommandReq.command);
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateForkParCnf :
    {
         MCOD_TRACE("GateForkParCnf")
         /* No free for CINT parameter (p->v_GateForkParCnf.VersionHigh) */
         /* No free for CINT parameter (p->v_GateForkParCnf.VersionLow) */
         MCOD_FREE(p->v_GateForkParCnf.who_am_i);
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateDataInd :
    {
         MCOD_TRACE("GateDataInd")
         p->v_GateDataInd.RawBuffer = HostMessage.FreeCRAWBuffer (p->v_GateDataInd.RawBuffer);
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateErrorInd :
    {
         MCOD_TRACE("GateErrorInd")
         MCOD_FREE(p->v_GateErrorInd.ErrorText);
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateLineStatusCnf :
    {
         MCOD_TRACE("GateLineStatusCnf")
         /* No free for CINT parameter (p->v_GateLineStatusCnf.XON_received) */
         /* No free for CINT parameter (p->v_GateLineStatusCnf.XOFF_received) */
         /* No free for CINT parameter (p->v_GateLineStatusCnf.chars_received) */
         /* No free for CINT parameter (p->v_GateLineStatusCnf.received_frames_not_OK) */
         /* No free for CINT parameter (p->v_GateLineStatusCnf.received_frames_OK) */
         /* No free for CINT parameter (p->v_GateLineStatusCnf.receiver_fatal_error) */
         /* No free for CINT parameter (p->v_GateLineStatusCnf.XON_sent) */
         /* No free for CINT parameter (p->v_GateLineStatusCnf.XOFF_sent) */
         /* No free for CINT parameter (p->v_GateLineStatusCnf.ESC_sent) */
         /* No free for CINT parameter (p->v_GateLineStatusCnf.chars_sent) */
         /* No free for CINT parameter (p->v_GateLineStatusCnf.try_to_send_frames) */
         /* No free for CINT parameter (p->v_GateLineStatusCnf.transmitter_fatal_error) */
         /* No free for CINT parameter (p->v_GateLineStatusCnf.is_changed) */
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateExitInd :
    {
         MCOD_TRACE("GateExitInd")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateStartCnf :
    {
         MCOD_TRACE("GateStartCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateStopCnf :
    {
         MCOD_TRACE("GateStopCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateT32CommandCnf :
    {
         MCOD_TRACE("GateT32CommandCnf")
         MCOD_FREE(p->v_GateT32CommandCnf.response);
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case GateStringInd :
    {
         MCOD_TRACE("GateStringInd")
         MCOD_FREE(p->v_GateStringInd.String);
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case MPMConnectReq :
    {
         MCOD_TRACE("MPMConnectReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case MPMDisconnectReq :
    {
         MCOD_TRACE("MPMDisconnectReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case MPMDisconnectRes :
    {
         MCOD_TRACE("MPMDisconnectRes")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case UIConnectionReq :
    {
         MCOD_TRACE("UIConnectionReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case SdtmtConnectionReq :
    {
         MCOD_TRACE("SdtmtConnectionReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case GateConnectionReq :
    {
         MCOD_TRACE("GateConnectionReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case LinkConnectionReq :
    {
         MCOD_TRACE("LinkConnectionReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case ExternalConnectionReq :
    {
         MCOD_TRACE("ExternalConnectionReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case MPMGateStartupReq :
    {
         MCOD_TRACE("MPMGateStartupReq")
         MCOD_FREE(p->v_MPMGateStartupReq.fullpath);
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case MPMGateStartupCnf :
    {
         MCOD_TRACE("MPMGateStartupCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case MPMConnectCnf :
    {
         MCOD_TRACE("MPMConnectCnf")
         /* No free for CINT parameter (p->v_MPMConnectCnf.toolid) */
         /* No free for CINT parameter (p->v_MPMConnectCnf.sdtmt_connected) */
         /* No free for CINT parameter (p->v_MPMConnectCnf.sdtgate_connected) */
         /* No free for CINT parameter (p->v_MPMConnectCnf.sdtmtui_connected) */
         MCOD_FREE(p->v_MPMConnectCnf.MPMVersion);
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case MPMDisconnectCnf :
    {
         MCOD_TRACE("MPMDisconnectCnf")
         /* No free for CINT parameter (p->v_MPMDisconnectCnf.toolid) */
         /* No free for CINT parameter (p->v_MPMDisconnectCnf.sdtmt_connected) */
         /* No free for CINT parameter (p->v_MPMDisconnectCnf.sdtgate_connected) */
         /* No free for CINT parameter (p->v_MPMDisconnectCnf.sdtmtui_connected) */
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIConnectionCnf :
    {
         MCOD_TRACE("UIConnectionCnf")
         /* No free for CINT parameter (p->v_UIConnectionCnf.sdtmt_connected) */
         /* No free for CINT parameter (p->v_UIConnectionCnf.sdtgate_connected) */
         MCOD_FREE(p->v_UIConnectionCnf.Version);
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case UIConnectionDeny :
    {
         MCOD_TRACE("UIConnectionDeny")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case SdtmtConnectionCnf :
    {
         MCOD_TRACE("SdtmtConnectionCnf")
         /* No free for CINT parameter (p->v_SdtmtConnectionCnf.sdtmtui_connected) */
         /* No free for CINT parameter (p->v_SdtmtConnectionCnf.sdtgate_connected) */
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case SdtmtConnectionDeny :
    {
         MCOD_TRACE("SdtmtConnectionDeny")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateConnectionCnf :
    {
         MCOD_TRACE("GateConnectionCnf")
         /* No free for CINT parameter (p->v_GateConnectionCnf.sdtmt_connected) */
         /* No free for CINT parameter (p->v_GateConnectionCnf.sdtmtui_connected) */
    }
    break;
    #endif


    #if defined(SDTGATE) || defined(MCOD_DEBUG)
    case GateConnectionDeny :
    {
         MCOD_TRACE("GateConnectionDeny")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case LinkConnectionCnf :
    {
         MCOD_TRACE("LinkConnectionCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case LinkConnectionDeny :
    {
         MCOD_TRACE("LinkConnectionDeny")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case ExternalConnectionDeny :
    {
         MCOD_TRACE("ExternalConnectionDeny")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case ExternalConnectionCnf :
    {
         MCOD_TRACE("ExternalConnectionCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case SdtmtStartupNotification :
    {
         MCOD_TRACE("SdtmtStartupNotification")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case UIStartupNotification :
    {
         MCOD_TRACE("UIStartupNotification")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case GateStartupNotification :
    {
         MCOD_TRACE("GateStartupNotification")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case LinkStartupNotification :
    {
         MCOD_TRACE("LinkStartupNotification")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case MSCStartReq :
    {
         MCOD_TRACE("MSCStartReq")
         MCOD_FREE(p->v_MSCStartReq.CharParam_1);
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case MSCDataReq :
    {
         MCOD_TRACE("MSCDataReq")
         MCOD_FREE(p->v_MSCDataReq.CharParam_1);
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case LicInitCheckReq :
    {
         MCOD_TRACE("LicInitCheckReq")
         MCOD_FREE(p->v_LicInitCheckReq.version);
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case LicCheckReq :
    {
         MCOD_TRACE("LicCheckReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case HelpCmdReq :
    {
         MCOD_TRACE("HelpCmdReq")
         MCOD_FREE(p->v_HelpCmdReq.HelpIndex);
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case SDLEStartReq :
    {
         MCOD_TRACE("SDLEStartReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case SDLEDataReq :
    {
         MCOD_TRACE("SDLEDataReq")
         MCOD_FREE(p->v_SDLEDataReq.GR_Reference);
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case LinkShowOrganizerReq :
    {
         MCOD_TRACE("LinkShowOrganizerReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTLINK) || defined(MCOD_DEBUG)
    case SDTPMStartReq :
    {
         MCOD_TRACE("SDTPMStartReq")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case LicInitCheckCnf :
    {
         MCOD_TRACE("LicInitCheckCnf")
         /* No free for CINT parameter (p->v_LicInitCheckCnf.status) */
         MCOD_FREE(p->v_LicInitCheckCnf.CharParam_1);
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case LicCheckCnf :
    {
         MCOD_TRACE("LicCheckCnf")
         /* No free for CINT parameter (p->v_LicCheckCnf.status) */
         MCOD_FREE(p->v_LicCheckCnf.CharParam_1);
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case LinkNoPMInd :
    {
         MCOD_TRACE("LinkNoPMInd")
         MCOD_FREE(p->v_LinkNoPMInd.CharParam_1);
    }
    break;
    #endif


    #if defined(SDTMT) || defined(MCOD_DEBUG)
    case MSCStartUpCnf :
    {
         MCOD_TRACE("MSCStartUpCnf")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case LinkVersionInd :
    {
         MCOD_TRACE("LinkVersionInd")
         MCOD_FREE(p->v_LinkVersionInd.Version);
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case LinkExitInd :
    {
         MCOD_TRACE("LinkExitInd")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(SDTMTUI) || defined(MCOD_DEBUG)
    case LinkMessageInd :
    {
         MCOD_TRACE("LinkMessageInd")
         MCOD_FREE(p->v_LinkMessageInd.caption);
         MCOD_FREE(p->v_LinkMessageInd.text);
    }
    break;
    #endif


    #if defined(SDTMPM) || defined(MCOD_DEBUG)
    case ExitNotification :
    {
         MCOD_TRACE("ExitNotification")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case AlertExit :
    {
         MCOD_TRACE("AlertExit")
         /*No parameters in message*/
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case MPMDisconnectInd :
    {
         MCOD_TRACE("MPMDisconnectInd")
         /* No free for CINT parameter (p->v_MPMDisconnectInd.toolid) */
         /* No free for CINT parameter (p->v_MPMDisconnectInd.sdtmt_connected) */
         /* No free for CINT parameter (p->v_MPMDisconnectInd.sdtgate_connected) */
         /* No free for CINT parameter (p->v_MPMDisconnectInd.sdtmtui_connected) */
    }
    break;
    #endif


    #if defined(COMMON) || defined(MCOD_DEBUG)
    case MPMErrorInd :
    {
         MCOD_TRACE("MPMErrorInd")
         /*No parameters in message*/
    }
    break;
    #endif


    default:

      break;

  }

  return (DEC_OKAY);

}
#endif  /* __mcodlib_cpp_ */
