Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I am using a free application virtualization app - Winflector.
When I use
GetSystemMetrics(SM_REMOTESESSION)
the function correctly detects that application is running in a remote session, however,
WTSQuerySessionInformationA()
fails to detect and thus cannot get
WTSClientInfo
. I want to know, what is difference in the functionalities of these APIs. Also, I am interested in knowing how can I
programmatically detect
client Side information when running through these kind of applications.
if (GetSystemMetrics(SM_REMOTESESSION)) //passes
printf("\n\n\tSM_REMOTESESSION says this application is running in a remote session \n");
if (WTSQuerySessionInformationA(WTS_CURRENT_SERVER_HANDLE, WTS_CURRENT_SESSION, WTSIsRemoteSession, &pData, &bytesReturned)){ //fails
Also wanted to know if there is a possibility that these kind of applications may employ virtual channels (or dynamic virtual channels) infrastructure of windows?
–
–
–
–
–
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.