public void SetServiceState(DumpServices service, bool state) { int sid = (int)service; dState[sid] = state; string srvName = dumpServices[sid].Substring(4); logger.Log("MITM" + srvName + " set to " + ((state) ? "Enabled" : "Disabled"), VLogger.LogLevel.service); }
public bool CheckServiceState(DumpServices service) { int sid = (int)service; bool state = dState[sid]; if (service == DumpServices.Undefined) { logger.Log("Invalid service name specified!", VLogger.LogLevel.error); } return(state); }
public string ServiceToString(DumpServices input) { int sid = (int)input; return(dumpServices[sid]); }