// wdm.h
typedef struct _IO_SESSION_CONNECT_INFO {
ULONG SessionId;
BOOLEAN LocalSession;
} IO_SESSION_CONNECT_INFO, *PIO_SESSION_CONNECT_INFO;
View the official Windows Driver Kit DDI referenceNo description available.
The IO_SESSION_CONNECT_INFO structure provides information about a user session.
SessionIdSession ID. This member contains the Terminal Services session identifier of the user session for which the driver is receiving this notification.
LocalSessionIndicates whether the user session is a local session or a remote session. If TRUE, the user is logged on locally. If FALSE, the user is logged on remotely.
If a driver is registered to receive notifications of events in a user session, and if this session enters the connected state, the I/O manager calls the driver's IO_SESSION_NOTIFICATION_FUNCTION function. For this call, the I/O manager sets the function's Event parameter to IoSessionEventConnected. Additionally, the I/O manager sets the function's NotificationPayload parameter to point to an IO_SESSION_CONNECT_INFO structure that contains information about the user session. For more information about IoSessionEventConnected, see IO_SESSION_EVENT.
IO_SESSION_NOTIFICATION_FUNCTION