Is running in terminal server

Submitted by:Jhon Brain

Date added:28 March, 2013

Category:Delphi

Delphi code - Is running in terminal server

Tags: terminal server

Code Snippet:

    function IsRemoteSession: boolean;
const
sm_RemoteSession = $1000;
begin
result := GetSystemMetrics(sm_RemoteSession) <> 0;
end;
 
 

Comments