win32api.ExitWindows

ExitWindows(reserved1, reserved2)

Logs off the current user

Parameters

reserved1=0 : int

reserved2=0 : int

Win32 API References

Search for AbortSystemShutdown at msdn, google or google groups.