IO_SESSION_EVENT enumeration

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

Syntax


typedef enum _IO_SESSION_EVENT { 
  IoSessionEventCreated       = 1,
  IoSessionEventTerminated    = 2,
  IoSessionEventConnected     = 3,
  IoSessionEventDisconnected  = 4,
  IoSessionEventLogon         = 5,
  IoSessionEventLogoff        = 6,
  IoSessionEventMax           = 7
} IO_SESSION_EVENT, *PIO_SESSION_EVENT;

Constants

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

Version

Supported in Windows 7 and later versions of the Windows operating system.

Header

Wdm.h (include Wdm.h, Ntddk.h, Ntifs.h, or Fltkernel.h)

See also

IO_SESSION_NOTIFICATION_FUNCTION
IO_SESSION_STATE

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft