Example #1
0
        public IList <ITerminalServicesProcess> GetProcesses()
        {
            var processes = new List <ITerminalServicesProcess>();

            NativeMethodsHelper.ForEachProcessInfo(Handle,
                                                   delegate(WTS_PROCESS_INFO processInfo) { processes.Add(new TerminalServicesProcess(this, processInfo)); });
            return(processes);
        }