首页  编辑  

检测程序是否在远程桌面下运行

Tags: /超级猛料/OS.操作系统/Process.进程/   Date Created:

check if we are running in a terminal client session?

Author: P. Below  

function IsRemoteSession: Boolean;

const

 sm_RemoteSession = $1000; { from WinUser.h }

begin

 Result := GetSystemMetrics(sm_RemoteSession) <> 0;

end;