View Single Post
Old 5th December 2007, 20:54   #12
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
code:
!include LogicLib.nsh
#...
System::Call 'wtsapi32::WTSEnumerateSessions(i 0, i 0, i 1, *i .r0, *i .r1) i .r2'
${If} $2 != 0
${If} $1 != 1
MessageBox MB_OK "more than one user logged in"
${EndIf}
System::Call 'wtsapi32::WTSFreeMemory(i r0)'
${EndIf}


NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote