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

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -