ReactOS 0.4.15-dev-7953-g1f49173
CcPinRead_user.c File Reference
#include <kmt_test.h>
Include dependency graph for CcPinRead_user.c:

Go to the source code of this file.

Macros

#define IOCTL_START_TEST   1
 
#define IOCTL_FINISH_TEST   2
 

Functions

 START_TEST (CcPinRead)
 

Macro Definition Documentation

◆ IOCTL_FINISH_TEST

#define IOCTL_FINISH_TEST   2

Definition at line 11 of file CcPinRead_user.c.

◆ IOCTL_START_TEST

#define IOCTL_START_TEST   1

Definition at line 10 of file CcPinRead_user.c.

Function Documentation

◆ START_TEST()

START_TEST ( CcPinRead  )

Definition at line 13 of file CcPinRead_user.c.

14{
15 DWORD Ret;
16 ULONG TestId;
17
18 Ret = KmtLoadAndOpenDriver(L"CcPinRead", FALSE);
20 if (Ret)
21 return;
22
23 /* 3 tests for offset
24 * 1 test for BCB
25 * 1 test for pinning access
26 * 1 test for length/offset
27 * 1 test for read/write size
28 */
29 for (TestId = 0; TestId < 7; ++TestId)
30 {
32 ok(Ret == ERROR_SUCCESS, "KmtSendUlongToDriver failed: %lx\n", Ret);
34 ok(Ret == ERROR_SUCCESS, "KmtSendUlongToDriver failed: %lx\n", Ret);
35 }
36
39}
#define IOCTL_FINISH_TEST
#define IOCTL_START_TEST
#define ok_eq_int(value, expected)
Definition: apitest.h:60
#define ok(value,...)
Definition: atltest.h:57
#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 KmtLoadAndOpenDriver(IN PCWSTR ServiceName, IN BOOLEAN RestartIfRunning)
Definition: support.c:213
VOID KmtCloseDriver(VOID)
Definition: support.c:236
DWORD KmtSendUlongToDriver(IN DWORD ControlCode, IN DWORD Value)
Definition: support.c:333
VOID KmtUnloadDriver(VOID)
Definition: support.c:167
uint32_t ULONG
Definition: typedefs.h:59