ReactOS 0.4.15-dev-7907-g95bf896
IoCreateFile_user.c File Reference
#include <kmt_test.h>
#include "IoCreateFile.h"
Include dependency graph for IoCreateFile_user.c:

Go to the source code of this file.

Functions

 START_TEST (IoCreateFile)
 

Variables

static CHAR MountedPointFileName [] = "\\Device\\Kmtest-IoCreateFile\\MountedPoint"
 
static CHAR SymlinkedFileName [] = "\\Device\\Kmtest-IoCreateFile\\Symlinked"
 
static CHAR NonSymlinkedFileName [] = "\\Device\\Kmtest-IoCreateFile\\NonSymlinked"
 

Function Documentation

◆ START_TEST()

START_TEST ( IoCreateFile  )

Definition at line 15 of file IoCreateFile_user.c.

16{
18
19 KmtRunKernelTest("IoCreateFile");
20
21 Error = KmtLoadAndOpenDriver(L"IoCreateFile", FALSE);
23 if (Error)
24 return;
25
27 ok(Error == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %lx\n", Error);
29 ok(Error == ERROR_CANT_ACCESS_FILE, "Expected ERROR_CANT_ACCESS_FILE, got %lx\n", Error); /* FIXME */
31 ok(Error == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %lx\n", Error);
32
34 ok(Error == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %lx\n", Error);
35
37 ok(Error == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %lx\n", Error);
39 ok(Error == ERROR_MR_MID_NOT_FOUND, "Expected ERROR_MR_MID_NOT_FOUND, got %lx\n", Error);
41 ok(Error == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %lx\n", Error);
42
45}
#define IOCTL_DISABLE_SYMLINK
Definition: IoCreateFile.h:12
#define IOCTL_CALL_CREATE
Definition: IoCreateFile.h:11
static CHAR SymlinkedFileName[]
static CHAR NonSymlinkedFileName[]
static CHAR MountedPointFileName[]
#define ok_eq_int(value, expected)
Definition: apitest.h:60
#define ok(value,...)
Definition: atltest.h:57
BOOL Error
Definition: chkdsk.c:66
#define ERROR_SUCCESS
Definition: deptool.c:10
#define FALSE
Definition: types.h:117
unsigned long DWORD
Definition: ntddk_ex.h:95
#define L(x)
Definition: ntvdm.h:50
DWORD KmtRunKernelTest(IN PCSTR TestName)
Definition: support.c:95
DWORD KmtLoadAndOpenDriver(IN PCWSTR ServiceName, IN BOOLEAN RestartIfRunning)
Definition: support.c:213
VOID KmtCloseDriver(VOID)
Definition: support.c:236
DWORD KmtSendStringToDriver(IN DWORD ControlCode, IN PCSTR String)
Definition: support.c:283
DWORD KmtSendToDriver(IN DWORD ControlCode)
Definition: support.c:259
VOID KmtUnloadDriver(VOID)
Definition: support.c:167
#define ERROR_CANT_ACCESS_FILE
Definition: winerror.h:1162
#define ERROR_MR_MID_NOT_FOUND
Definition: winerror.h:321

Variable Documentation

◆ MountedPointFileName

CHAR MountedPointFileName[] = "\\Device\\Kmtest-IoCreateFile\\MountedPoint"
static

Definition at line 11 of file IoCreateFile_user.c.

Referenced by START_TEST().

◆ NonSymlinkedFileName

CHAR NonSymlinkedFileName[] = "\\Device\\Kmtest-IoCreateFile\\NonSymlinked"
static

Definition at line 13 of file IoCreateFile_user.c.

Referenced by START_TEST().

◆ SymlinkedFileName

CHAR SymlinkedFileName[] = "\\Device\\Kmtest-IoCreateFile\\Symlinked"
static

Definition at line 12 of file IoCreateFile_user.c.

Referenced by START_TEST().