ReactOS 0.4.15-dev-7942-gd23573b
IoDeviceObject_user.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 Test Suite Device Object test user-mode part
5 * COPYRIGHT: Copyright 2011-2023 Thomas Faber (thomas.faber@reactos.org)
6 * COPYRIGHT: Copyright 2022 Timo Kreuzer (timo.kreuzer@reactos.org)
7 */
8
9#include <kmt_test.h>
10
11START_TEST(IoDeviceObject)
12{
14
15 /* make sure IoHelper has an existing service key, but is not started */
16 Error = KmtLoadDriver(L"IoHelper", FALSE);
18 if (Error)
19 return;
20 /* Can't use the normal unload function here because we need the
21 * service to stick around. */
23
24 Error = KmtLoadAndOpenDriver(L"IoDeviceObject", TRUE);
26 if (Error)
27 return;
28
31}
#define ok_eq_int(value, expected)
Definition: apitest.h:60
#define START_TEST(x)
Definition: atltest.h:75
BOOL Error
Definition: chkdsk.c:66
#define ERROR_SUCCESS
Definition: deptool.c:10
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
unsigned long DWORD
Definition: ntddk_ex.h:95
#define L(x)
Definition: ntvdm.h:50
DWORD KmtLoadAndOpenDriver(IN PCWSTR ServiceName, IN BOOLEAN RestartIfRunning)
Definition: support.c:213
VOID KmtCloseDriver(VOID)
Definition: support.c:236
DWORD KmtLoadDriver(IN PCWSTR ServiceName, IN BOOLEAN RestartIfRunning)
Definition: support.c:128
VOID KmtUnloadDriverKeepService(VOID)
Definition: support.c:149
VOID KmtUnloadDriver(VOID)
Definition: support.c:167