IO_SESSION_EVENT - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTMISC_H

//
// Sessions
//

typedef enum _IO_SESSION_EVENT
{
    IoSessionEventIgnore,
    IoSessionEventCreated,
    IoSessionEventTerminated,
    IoSessionEventConnected,
    IoSessionEventDisconnected,
    IoSessionEventLogon,
    IoSessionEventLogoff,
    IoSessionEventMax
} IO_SESSION_EVENT;

#endif

View code on GitHub
// wdm.h

typedef enum _IO_SESSION_EVENT {
  IoSessionEventIgnore,
  IoSessionEventCreated,
  IoSessionEventTerminated,
  IoSessionEventConnected,
  IoSessionEventDisconnected,
  IoSessionEventLogon,
  IoSessionEventLogoff,
  IoSessionEventMax
} IO_SESSION_EVENT, *PIO_SESSION_EVENT;
View the official Windows Driver Kit DDI reference

NtDoc

This enumeration is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (ne-wdm-_io_session_event)

_IO_SESSION_EVENT enumeration

Description

The IO_SESSION_EVENT enumeration indicates the type of session event for which a driver is receiving notification.

Constants

IoSessionEventIgnore

IoSessionEventCreated

The user session was created.

IoSessionEventTerminated

The user session terminated.

IoSessionEventConnected

The user session was connected.

IoSessionEventDisconnected

The user session was disconnected.

IoSessionEventLogon

The user logged on to the session.

IoSessionEventLogoff

The user logged off of the session.

IoSessionEventMax

Specifies the maximum value in this enumeration type.

Remarks

When the I/O manager calls the driver's IO_SESSION_NOTIFICATION_FUNCTION function, it sets the Event parameter of this function to an IO_SESSION_EVENT enumeration constant (other than IoSessionEventMax).

A session event causes a transition from one session state to another. For more information about session state transitions, see IO_SESSION_STATE.

See also

IO_SESSION_NOTIFICATION_FUNCTION

IO_SESSION_STATE