LogOffMode Enumeration

Specifies the mode to logoff an user session.

Definition

Namespace: DevCase.Core.IO.Devices.Power
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public enum LogOffMode

Members

Wait 0 Don't force the system to close the applications.
Force 4 This flag has no effect if terminal services is enabled. Otherwise, the system does not send the WM_QUERYENDSESSION message.

This can cause applications to lose data. Therefore, you should only use this flag in an emergency.

ForceIfHung 16 Forces processes to terminate if they do not respond to the WM_QUERYENDSESSION or WM_ENDSESSION message within the timeout interval.

See Also