Detect if user is using Terminal ServerTag(s): WinAPI/Registry
[external function declaration] FUNCTION Integer GetSystemMetrics (Integer nIndex) LIBRARY "user32.dll" [powerscript] integer SM_REMOTESESSION = 4096 // remote session integer SM_REMOTECONTROL = 8193 // remote control IF GetSystemMetrics(SM_REMOTESESSION)> 0 THEN // on terminal server END IF
ContextKeyword lcxk_base string ls_Path string ls_values[] this.GetContextService("Keyword", lcxk_base) lcxk_base.GetContextKeywords("sessionname", ls_values) MessageBox("", ls_values[1])
mail_outline
Send comment, question or suggestion to howto@rgagnon.com
Send comment, question or suggestion to howto@rgagnon.com