24 skip(
"Unable to lock heap\n");
76 if (!pRtlpEnsureBufferSize)
78 skip(
"No RtlpEnsureBufferSize\n");
82 memset(StaticBuf, 0xba,
sizeof(StaticBuf));
83 RtlInitBuffer(&
Buffer, StaticBuf,
sizeof(StaticBuf));
141 skip(
"Unable to verify the heap used\n");
147 ok(!
memcmp(
Buffer.Buffer, StaticBuf,
sizeof(StaticBuf)),
"Expected First 4 bytes to be the same!\n");
156 ok(
memcmp(
Buffer.Buffer, StaticBuf,
sizeof(StaticBuf)),
"Expected First 4 bytes to be different!\n");
166 ok(
memcmp(
Buffer.Buffer, StaticBuf,
sizeof(StaticBuf)),
"Expected First 4 bytes to be different!\n");
std::map< E_MODULE, HMODULE > mod
static BOOL IsBlockFromHeap(HANDLE hHeap, PVOID ptr)
_Inout_ PRTL_BUFFER Buffer
_Inout_ PRTL_BUFFER _In_ SIZE_T RequiredSize
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
#define ok_ntstatus(status, expected)
#define ok_int(expression, result)
#define ok_ptr(expression, result)
PVOID NTAPI RtlAllocateHeap(IN PVOID HeapHandle, IN ULONG Flags, IN SIZE_T Size)
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
#define GetProcAddress(x, y)
#define INVALID_HANDLE_VALUE
HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName)
BOOL WINAPI HeapLock(HANDLE hHeap)
BOOL WINAPI HeapUnlock(HANDLE hHeap)
BOOL WINAPI HeapWalk(HANDLE hHeap, LPPROCESS_HEAP_ENTRY lpEntry)
NTSYSAPI NTSTATUS NTAPI RtlpEnsureBufferSize(_In_ ULONG Flags, _Inout_ PRTL_BUFFER Buffer, _In_ SIZE_T RequiredSize)
#define RTL_SKIP_BUFFER_COPY
#define UNICODE_STRING_MAX_BYTES
base of all file and directory entries
#define TH32CS_SNAPHEAPLIST
#define STATUS_INVALID_PARAMETER
#define PROCESS_HEAP_ENTRY_BUSY
DWORD WINAPI GetCurrentProcessId(void)
_Must_inspect_result_ _In_ ULONG Flags