ReactOS 0.4.15-dev-8241-g63935f8
SeLogonSession.c File Reference
#include <kmt_test.h>
#include <ntifs.h>
Include dependency graph for SeLogonSession.c:

Go to the source code of this file.

Macros

#define IMAGINARY_LOGON   {0x001, 0}
 

Functions

static VOID LogonMarkTermination (VOID)
 
 START_TEST (SeLogonSession)
 

Macro Definition Documentation

◆ IMAGINARY_LOGON

#define IMAGINARY_LOGON   {0x001, 0}

Definition at line 11 of file SeLogonSession.c.

Function Documentation

◆ LogonMarkTermination()

static VOID LogonMarkTermination ( VOID  )
static

Definition at line 15 of file SeLogonSession.c.

16{
18 LUID SystemLogonID = SYSTEM_LUID;
19 LUID NonExistentLogonID = IMAGINARY_LOGON;
20
21 /* Mark the system authentication logon for termination */
23 ok_irql(PASSIVE_LEVEL);
25
26 /* We give a non existent logon */
28 ok_irql(PASSIVE_LEVEL);
30}
#define IMAGINARY_LOGON
#define ok_eq_hex(value, expected)
Definition: apitest.h:77
LONG NTSTATUS
Definition: precomp.h:26
#define PASSIVE_LEVEL
Definition: env_spec_w32.h:693
Status
Definition: gdiplustypes.h:25
NTSTATUS NTAPI SeMarkLogonSessionForTerminationNotification(_In_ PLUID LogonId)
Marks a logon session for future termination, given its logon ID. This triggers a callout (the regist...
Definition: srm.c:1510
#define STATUS_SUCCESS
Definition: shellext.h:65
#define STATUS_NOT_FOUND
Definition: shellext.h:72
#define SYSTEM_LUID
Definition: setypes.h:700

Referenced by START_TEST().

◆ START_TEST()

START_TEST ( SeLogonSession  )

Definition at line 32 of file SeLogonSession.c.

33{
35}
static VOID LogonMarkTermination(VOID)