code: public static void dispatchSCMEvent(int eventID)
      {
          switch(eventID)
          {
            case SERVICE_CONTROL_STOP:
            case SERVICE_CONTROL_PAUSE:
                stopAll();
                break;
                
            case SERVICE_CONTROL_CONTINUE :
                startAll();
                break;
                
            case SERVICE_CONTROL_SHUTDOWN:
                destroyAll();
                break;
                
            case SERVICE_CONTROL_PARAMCHANGE:
                stopAll();
                destroyAll();
                createAll();
                startAll();
                break;
  
            default:
                break;
          }
      }
docs: /* ------------------------------------------------------------