winapi - How to Know If I am in a Terminal Service (TS) Session? -


Is there a Windows API function to check whether I am in terminal service session?

  GetSystemMetrics (SM_REMOTECONTROL))  

To determine that

The calling session is being controlled remotely

  GetSystemMetrics (SM_REMOTESESSION))  


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -