IO_SESSION_CONNECT_INFO structure (wdm.h)

The IO_SESSION_CONNECT_INFO structure provides information about a user session.

Syntax

typedef struct _IO_SESSION_CONNECT_INFO {
  ULONG   SessionId;
  BOOLEAN LocalSession;
} IO_SESSION_CONNECT_INFO, *PIO_SESSION_CONNECT_INFO;

Members

SessionId

Session ID. This member contains the Terminal Services session identifier of the user session for which the driver is receiving this notification.

LocalSession

Indicates 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.

Remarks

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.

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_EVENT

IO_SESSION_NOTIFICATION_FUNCTION