1#ifndef _APITEST_GUARD_H
2#define _APITEST_GUARD_H
36 StartOfBuffer = VirtualMemory;
37 StartOfBuffer +=
Size - SizeRequested;
static VOID MakeReadOnly(PVOID Pointer, SIZE_T SizeRequested)
static VOID FreeGuarded(_In_ PVOID Pointer)
static PVOID AllocateGuarded(_In_ SIZE_T SizeRequested)
#define NT_SUCCESS(StatCode)
#define PAGE_ROUND_DOWN(x)
#define NtCurrentProcess()
NTSTATUS NTAPI NtFreeVirtualMemory(IN HANDLE ProcessHandle, IN PVOID *UBaseAddress, IN PSIZE_T URegionSize, IN ULONG FreeType)
NTSTATUS NTAPI NtAllocateVirtualMemory(IN HANDLE ProcessHandle, IN OUT PVOID *UBaseAddress, IN ULONG_PTR ZeroBits, IN OUT PSIZE_T URegionSize, IN ULONG AllocationType, IN ULONG Protect)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size