Ejemplo n.º 1
0
        public IList <ITerminalServicesSession> GetSessions()
        {
            var results      = new List <ITerminalServicesSession>();
            var sessionInfos = NativeMethodsHelper.GetSessionInfos(Handle);

            foreach (WTS_SESSION_INFO sessionInfo in sessionInfos)
            {
                results.Add(new TerminalServicesSession(this, sessionInfo));
            }
            return(results);
        }