Export (0) Print
Expand All

IO_SESSION_STATE_XXX

The IO_SESSION_STATE_XXX constants are mask bits that indicate the session events for which a driver requests notifications.

Constant/valueDescription
IO_SESSION_STATE_ALL_EVENTS
0xffffffff

Send notifications of all session events.

IO_SESSION_STATE_CREATION_EVENT
0x00000001

Send a notification when the user session is created.

IO_SESSION_STATE_TERMINATION_EVENT
0x00000002

Send a notification when the user session ends.

IO_SESSION_STATE_CONNECT_EVENT
0x00000004

Send a notification when the user session is connected.

IO_SESSION_STATE_DISCONNECT_EVENT
0x00000008

Send a notification when the user session is disconnected.

IO_SESSION_STATE_LOGON_EVENT
0x00000010

Send a notification when the user logs on to the session.

IO_SESSION_STATE_LOGOFF_EVENT
0x00000020

Send a notification when the user logs off of the session.

IO_SESSION_STATE_VALID_EVENT_MASK
0x0000003f

Send a notification when any type of session event occurs.

Remarks

To register to receive notifications of session events, a kernel-mode driver calls the IoRegisterContainerNotification routine. This routine's NotificationInformation parameter points to an IO_SESSION_STATE_NOTIFICATION structure. To specify the session events for which the driver wants to receive notifications, the driver sets this structure's EventMask member to the bitwise OR of one or more IO_SESSION_STATE_XXX constants. To receive notifications of all session events, the driver sets this member to IO_SESSION_STATE_VALID_EVENT_MASK.

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

IoRegisterContainerNotification
IO_SESSION_STATE_NOTIFICATION

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft