I\'ve written a program which should query the Terminal Services API and print out some state information about the sessions running on a terminal services box.I\'m using the WTSQuerySessionInformatio
Let\'s say we have the \"EntityCollection products\". Then the following doesn\'t work: foreach (var product in products)
I\'ve seen this question, but I was hoping to avoid using CreateProcessAsUser. I can enumerate windows by calling EnumDesktopWindows, and I can get the desktops by calling EnumDesktops. Unfortunately,