ReactOS  0.4.15-dev-494-g1d8c567
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 }
smooth NULL
Definition: ftsmooth.c:416
Definition: bufpool.h:45
#define GetProcessHeap()
Definition: compat.h:404
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
#define FIELD_OFFSET(t, f)
Definition: typedefs.h:254
unsigned int ULONG
Definition: retypes.h:1
IN BOOLEAN OUT PSTR Buffer
Definition: progress.h:34

Referenced by RunTest().

◆ KmtFreeResultBuffer()

static VOID KmtFreeResultBuffer ( PKMT_RESULTBUFFER  Buffer)
static

Definition at line 30 of file kmt_test_user.h.

31 {
33 }
Definition: bufpool.h:45
#define GetProcessHeap()
Definition: compat.h:404
#define HeapFree(x, y, z)
Definition: compat.h:403

Referenced by main().