Microsoft.Win32.SessionEndReasons
Defines identifiers that represent how the current logon session is ending.
namespace Microsoft.Win32
{
public enum SessionEndReasons
{
Logoff = 1,
SystemShutdown
}
}