ReactOS 0.4.15-dev-8061-g57b775e
SeLogonSession.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS kernel-mode tests
3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4 * PURPOSE: Kernel mode tests for logon session manipulation API
5 * COPYRIGHT: Copyright 2021 George Bișoc <george.bisoc@reactos.org>
6 */
7
8#include <kmt_test.h>
9#include <ntifs.h>
10
11#define IMAGINARY_LOGON {0x001, 0}
12
13static
14VOID
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}
31
32START_TEST(SeLogonSession)
33{
35}
#define IMAGINARY_LOGON
static VOID LogonMarkTermination(VOID)
#define ok_eq_hex(value, expected)
Definition: apitest.h:77
#define START_TEST(x)
Definition: atltest.h:75
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