For questions about how to use Windows Terminal Services (WTS) API functions (named WTS*), declared in wtsapi32.
I have some code, with which I'm trying to get the current session user token: #include <Wtsapi32.h> …
winapi wtsapi32I've written a program which should query the Terminal Services API and print out some state information about the sessions …
c++ terminal-services wtsapi32