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 code | Description |
|---|---|
|
The logon session was successfully marked. |
|
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 | |
|---|---|
|
Header |
|
|
Library |
|
|
DLL |
|
|
IRQL |
PASSIVE_LEVEL |
See also