ReactOS  0.4.14-dev-98-gb0d4763
CcPinMappedData_user.c File Reference
#include <kmt_test.h>
Include dependency graph for CcPinMappedData_user.c:

Go to the source code of this file.

Macros

#define IOCTL_START_TEST   1
 
#define IOCTL_FINISH_TEST   2
 

Functions

 START_TEST (CcPinMappedData)
 

Macro Definition Documentation

◆ IOCTL_FINISH_TEST

#define IOCTL_FINISH_TEST   2

Definition at line 11 of file CcPinMappedData_user.c.

◆ IOCTL_START_TEST

#define IOCTL_START_TEST   1

Definition at line 10 of file CcPinMappedData_user.c.

Function Documentation

◆ START_TEST()

START_TEST ( CcPinMappedData  )

Definition at line 13 of file CcPinMappedData_user.c.

14 {
15  DWORD Ret;
16  ULONG TestId;
17 
18  KmtLoadDriver(L"CcPinMappedData", FALSE);
19  KmtOpenDriver();
20 
21  /* 1 basic test */
22  for (TestId = 0; TestId < 5; ++TestId)
23  {
25  ok(Ret == ERROR_SUCCESS, "KmtSendUlongToDriver failed: %lx\n", Ret);
27  ok(Ret == ERROR_SUCCESS, "KmtSendUlongToDriver failed: %lx\n", Ret);
28  }
29 
32 }
#define ERROR_SUCCESS
Definition: deptool.c:10
VOID KmtCloseDriver(VOID)
Definition: support.c:200
unsigned long DWORD
Definition: ntddk_ex.h:95
static const WCHAR L[]
Definition: oid.c:1250
VOID KmtUnloadDriver(VOID)
Definition: support.c:155
#define ok(value,...)
Definition: atltest.h:57
#define IOCTL_FINISH_TEST
unsigned int ULONG
Definition: retypes.h:1
VOID KmtLoadDriver(IN PCWSTR ServiceName, IN BOOLEAN RestartIfRunning)
Definition: support.c:127
VOID KmtOpenDriver(VOID)
Definition: support.c:174
DWORD KmtSendUlongToDriver(IN DWORD ControlCode, IN DWORD Value)
Definition: support.c:298
#define IOCTL_START_TEST