ReactOS  0.4.15-dev-5146-g069b08d
CcSetFileSizes_user.c File Reference
#include <kmt_test.h>
Include dependency graph for CcSetFileSizes_user.c:

Go to the source code of this file.

Macros

#define IOCTL_START_TEST   1
 
#define IOCTL_FINISH_TEST   2
 

Functions

 START_TEST (CcSetFileSizes)
 

Macro Definition Documentation

◆ IOCTL_FINISH_TEST

#define IOCTL_FINISH_TEST   2

Definition at line 11 of file CcSetFileSizes_user.c.

◆ IOCTL_START_TEST

#define IOCTL_START_TEST   1

Definition at line 10 of file CcSetFileSizes_user.c.

Function Documentation

◆ START_TEST()

START_TEST ( CcSetFileSizes  )

Definition at line 13 of file CcSetFileSizes_user.c.

14 {
15  DWORD Ret;
16  ULONG TestId;
17 
18  KmtLoadDriver(L"CcSetFileSizes", FALSE);
19  KmtOpenDriver();
20 
21  /* 0: mapped data - only FS
22  * 1: copy read - only FS
23  * 2: mapped data - FS & AS
24  * 3: copy read - FS & AS
25  * 4: dirty VACB - only FS
26  * 5: dirty VACB - FS & AS
27  * 6: CcSetFileSizes with mapped data at tail of file
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 ERROR_SUCCESS
Definition: deptool.c:10
#define L(x)
Definition: ntvdm.h:50
#define FALSE
Definition: types.h:117
#define IOCTL_START_TEST
#define IOCTL_FINISH_TEST
VOID KmtCloseDriver(VOID)
Definition: support.c:207
unsigned long DWORD
Definition: ntddk_ex.h:95
VOID KmtUnloadDriver(VOID)
Definition: support.c:156
#define ok(value,...)
Definition: atltest.h:57
unsigned int ULONG
Definition: retypes.h:1
VOID KmtLoadDriver(IN PCWSTR ServiceName, IN BOOLEAN RestartIfRunning)
Definition: support.c:128
VOID KmtOpenDriver(VOID)
Definition: support.c:181
DWORD KmtSendUlongToDriver(IN DWORD ControlCode, IN DWORD Value)
Definition: support.c:305