[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])
Written and compiled by Réal Gagnon ©1998-2012
[ home ]