Logoff 
Author Message
 Logoff

This is a quick and dirty utility that allows me to double-click on an icon
to log off my server.  You must have admin rights to run this.

#COMPILE EXE

DECLARE FUNCTION ExitWindowsEx LIB "USER32.DLL" ALIAS "ExitWindowsEx" (BYVAL
uFlags AS LONG, BYVAL dwReserved AS LONG) AS LONG

%EWX_LOGOFF                                  = 0
%EWX_FORCE                                   = 4
%NULL                                        = 0

FUNCTION PbMain()

  ExitWindowsEx %EWX_FORCE, %NULL

END FUNCTION



Sun, 01 Feb 2004 01:17:30 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. DMKnia361E LOGOFF/FORCE pending for user CACZ0200

2. How do you logoff within an awk program?

3. Automatic logoff

4. How do you logoff the user's session in Win2000 from Labview

5. Logoff in Winnt with command in labview

6. Orexx / Socket / NT Service & Logoff

7. Use Rexx code to logoff

8. Tcl/Tk doesn't trap the logoff/reboot/shutdown events on Windows

 

 
Powered by phpBB® Forum Software