SeMarkLogonSessionForTerminationNotification routine

The SeMarkLogonSessionForTerminationNotification routine marks a logon session so that the caller's registered callback routine is called when the logon session terminates. A logon session terminates when the last token referencing the logon session is deleted.

Syntax


NTSTATUS SeMarkLogonSessionForTerminationNotification(
  _In_ PLUID LogonId
);

Parameters

LogonId [in]

Pointer to the logon ID of the logon session.

Return value

Return codeDescription
STATUS_SUCCESS

The logon session was successfully marked.

STATUS_NOT_FOUND

The logon session was not found.

 

Remarks

To register the callback routine, use SeRegisterLogonSessionTerminatedRoutine.

For more information about security and access control, see the documentation on these topics in the Microsoft Windows SDK.

Requirements

Target platform

Universal

Header

Ntifs.h (include Ntifs.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

PASSIVE_LEVEL

See also

LUID
SeRegisterLogonSessionTerminatedRoutine
SeUnregisterLogonSessionTerminatedRoutine

 

 

Send comments about this topic to Microsoft

Show: