Programatically log users off
You may be thinking how can I use this procedure. Well I used it in a program where I could send commands to a remote machine.procedure LogOff; begin ExitWindowsEx(EWX_LOGOFF, 0); end;
procedure LogOff; begin ExitWindowsEx(EWX_LOGOFF, 0); end;