DesktopInfoProviderWin reuses Win32Interop.GetActiveSessions for getting determining logged-in users. However, that method filters out non-Active RDP sessions.
Move most of GetActiveSessions to a private implementation method that accepts a param of states to filter, then create a new public method for getting logged-in users (regardless of session state).
DesktopInfoProviderWinreusesWin32Interop.GetActiveSessionsfor getting determining logged-in users. However, that method filters out non-Active RDP sessions.Move most of GetActiveSessions to a private implementation method that accepts a param of states to filter, then create a new public method for getting logged-in users (regardless of session state).