IntControl 66

Syntax:

IntControl (66, 0, p2, 0, 0)

 

Logs the user out of the current session.

p2 Meaning

0 default. Normal shutdown. User is prompted for open files.

1 Force. Forces the restart of Windows by not giving notice to any running applications about the restart. This doesn't allow the applications to save information or to display shut down messages.

 

Returns 0.

Be very careful using IntControl(66,0,1,0,0). This can cause the loss of data.

Note: This function is not supported when run as a service.