«« Site Rescued »»

While the site is still going to move from its current host, a new site will now take its place. More Info.

The new site may have less content, but the core will now remain. And it will now play nicely with phones! Keep an eye on the DelphiDabbler Blog for news.

» Help

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;
Note
No "reason" code was passed to the second parameter of the ExitWindowsExfunction. This is not recommended by Microsoft – See the MSDN entry for ExitWindowsEx.
Author: Shlomo Abuisak
Contributor: Shlomo Abuisak
Added: 2009-11-05
Last updated: 2009-11-05

« Return to contents »