IO_SESSION_EVENT enumeration (wdm.h)

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

Syntax

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

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.

Requirements

Requirement Value
Minimum supported client Supported in Windows 7 and later versions of the Windows operating system.
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h, Fltkernel.h)

See also

IO_SESSION_NOTIFICATION_FUNCTION

IO_SESSION_STATE