#ifndef _NTMISC_H
//
// Sessions
//
typedef enum _IO_SESSION_EVENT
{
IoSessionEventIgnore,
IoSessionEventCreated,
IoSessionEventTerminated,
IoSessionEventConnected,
IoSessionEventDisconnected,
IoSessionEventLogon,
IoSessionEventLogoff,
IoSessionEventMax
} IO_SESSION_EVENT;
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 referenceThis enumeration is documented in Windows Driver Kit.
The IO_SESSION_EVENT enumeration indicates the type of session event for which a driver is receiving notification.
IoSessionEventIgnoreIoSessionEventCreatedThe user session was created.
IoSessionEventTerminatedThe user session terminated.
IoSessionEventConnectedThe user session was connected.
IoSessionEventDisconnectedThe user session was disconnected.
IoSessionEventLogonThe user logged on to the session.
IoSessionEventLogoffThe user logged off of the session.
IoSessionEventMaxSpecifies the maximum value in this enumeration type.
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.
IO_SESSION_NOTIFICATION_FUNCTION