model_server/project_file/src/projcm_nt.cxx
///////////////////////////////////////////////////////////////////////
// The interface to process ConfigShell on NT
//
// cmd: is the config-command
// tag: defined options
// arg1-5: data needed for config-command
The interface to process ConfigShell on NT
cmd: is the config-command
tag: defined options
arg1-5: data needed for config-command
The interface to process ConfigShell on NT cmd : is the config - command tag : defined options arg1 - 5 : data needed for config - command
int shell_configurator_send_internal ( const char* cmd,  const char *tag,  const char* arg1, const char * arg2,
                         const char* arg3, const char* arg4, const char* arg5)
{
  if (!strcmp(cmd,"exit") || !g_ConfigShell.Init() )
  {
    g_ConfigShell.Destroy();
    return 0;
  }
  char*	cfg_cmd = ProjCM_GetCfgCmd( cmd, tag, arg1, arg2, arg3, arg4, arg5);
  if ( !cfg_cmd || !g_ConfigShell.Run(cfg_cmd) )
  {
    ProjCM_StoreResult("%% CM configurator was aborted");
    g_ConfigShell.Destroy();
    return 0;
  }
  return 1;
}
int shell_configurator_send_internal ( const char * cmd , const char * tag , const char * arg1 , const char * arg2 , const char * arg3 , const char * arg4 , const char * arg5 ) { if ( ! strcmp ( cmd , " " ) || ! g_ConfigShell . Init ( ) ) { g_ConfigShell . Destroy ( ) ; return 0 ; } char * cfg_cmd = ProjCM_GetCfgCmd ( cmd , tag , arg1 , arg2 , arg3 , arg4 , arg5 ) ; if ( ! cfg_cmd || ! g_ConfigShell . Run ( cfg_cmd ) ) { ProjCM_StoreResult ( " " ) ; g_ConfigShell . Destroy ( ) ; return 0 ; } return 1 ; }
The interface to process ConfigShell on NT
cmd: is the config-command
tag: defined options
arg1-5: data needed for config-command
The interface to process ConfigShell on NT cmd : is the config - command tag : defined options arg1 - 5 : data needed for config - command
// We get the 'exit' command from aset_driver_cleanup()