ReactOS 0.4.15-dev-7942-gd23573b
kmt_test_user.h File Reference

Go to the source code of this file.

Macros

#define KmtVSNPrintF   vsnprintf
 

Functions

static PKMT_RESULTBUFFER KmtAllocateResultBuffer (SIZE_T ResultBufferSize)
 
static VOID KmtFreeResultBuffer (PKMT_RESULTBUFFER Buffer)
 

Macro Definition Documentation

◆ KmtVSNPrintF

#define KmtVSNPrintF   vsnprintf

Definition at line 35 of file kmt_test_user.h.

Function Documentation

◆ KmtAllocateResultBuffer()

static PKMT_RESULTBUFFER KmtAllocateResultBuffer ( SIZE_T  ResultBufferSize)
static

Definition at line 15 of file kmt_test_user.h.

16{
17 PKMT_RESULTBUFFER Buffer = HeapAlloc(GetProcessHeap(), 0, ResultBufferSize);
18 if (!Buffer)
19 return NULL;
20
21 Buffer->Successes = 0;
22 Buffer->Failures = 0;
23 Buffer->Skipped = 0;
24 Buffer->LogBufferLength = 0;
25 Buffer->LogBufferMaxLength = (ULONG)ResultBufferSize - FIELD_OFFSET(KMT_RESULTBUFFER, LogBuffer);
26
27 return Buffer;
28}
Definition: bufpool.h:45
#define NULL
Definition: types.h:112
#define GetProcessHeap()
Definition: compat.h:736
#define HeapAlloc
Definition: compat.h:733
#define FIELD_OFFSET(t, f)
Definition: typedefs.h:255
uint32_t ULONG
Definition: typedefs.h:59

Referenced by RunTest().

◆ KmtFreeResultBuffer()

static VOID KmtFreeResultBuffer ( PKMT_RESULTBUFFER  Buffer)
static

Definition at line 30 of file kmt_test_user.h.

31{
33}
#define HeapFree(x, y, z)
Definition: compat.h:735

Referenced by main().