private int GetProcesses(AppOptions options) { int result = 0; CmdGetProcessesRequest request = new CmdGetProcessesRequest(1); if (!client.SendCommand(request)) { result = 1; } else { waitAnswer.WaitOne(); } return(result); }