home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_01 / MIDICOM.LZH / MC_UTILS / MC_START / MC_START.C next >
C/C++ Source or Header  |  1993-10-11  |  650b  |  36 lines

  1. #include <portab.h>             /* Standard-Definitionen */
  2. #include <string.h>      /* String-Library */
  3. #include <stddef.h>         /* Standard-Definitionen */
  4. #include <stdlib.h>          /* Standard-Definitionen */
  5. #include "..\mc_lib\mc_lib.h"
  6.  
  7. #define _RESTART      6025
  8.  
  9. void wait_loop(void)
  10. {    
  11.     syspar        sys;
  12.     all_proc    allprocs;
  13.     msg_typ     mc_msg;
  14.     
  15.        if (get_mc_sys(&sys,&allprocs))
  16.        {
  17.            mc_msg.what= _RESTART;
  18.       if (mc_message(&mc_msg))
  19.       {
  20.           Cconws("MIDI_COM STOP \r\n");
  21.       }
  22.     }
  23.     else
  24.     {
  25.         Cconws("NO MIDI_COM installed!!\r\n");
  26.     };
  27. }
  28.  
  29.  
  30. int main( void )
  31. {
  32.     wait_loop();
  33.     return 0;
  34. }
  35.  
  36.