Einzelnen Beitrag anzeigen

shmia

Registriert seit: 2. Mär 2004
5.508 Beiträge
 
Delphi 5 Professional
 
#12

Re: Programm in Remote-Desktop-Session

  Alt 16. Jan 2007, 16:22
So kann man feststellen, ob man man unter einem Terminal Server läuft:
Delphi-Quellcode:
const
  {$EXTERNALSYM SM_REMOTESESSION}
  SM_REMOTESESSION = $1000; // in Windows.pas nicht enthalten

function IsRemoteTerminalServerSession:Boolean;
begin
   result := GetSystemMetrics( SM_REMOTESESSION ) <> 0;
end;
Andreas
  Mit Zitat antworten Zitat