HyperDbg Debugger
Loading...
Searching...
No Matches
PlatformMem.h
Go to the documentation of this file.
1
14#pragma once
15
16#if defined(__linux__)
17// # include "../../general/header/GeneralTypes.h"
19#endif // defined(__linux__)
20
22// Functions //
24
25INT
26PlatformSprintf(char * Buffer, SIZE_T BufferSize, const char * Format, ...);
27
28VOID
30
31VOID
32PlatformWriteMemory(PVOID Address, PVOID Buffer, SIZE_T Size);
33
34VOID
35PlatformSetMemory(PVOID Destination, int Value, SIZE_T Size);
36
37VOID
38PlatformZeroMemory(PVOID Destination, SIZE_T Size);
39
40VOID
42
44PlatformAllocateMemory(SIZE_T Size);
45
48
51
54
57
59PlatformMemFreePool(PVOID BufferAddress);
60
63
66
69
72
74PlatformMemFreePool(PVOID BufferAddress);
POOL_TYPE SIZE_T NumberOfBytes
Definition Hooks.h:88
VOID PlatformFreeMemory(PVOID Memory)
Frees a previously allocated memory block.
Definition PlatformMem.c:93
VOID PlatformSetMemory(PVOID Destination, int Value, SIZE_T Size)
Sets a memory block to a specific value.
Definition PlatformMem.c:134
VOID PlatformZeroMemory(PVOID Destination, SIZE_T Size)
Zeros a memory block.
Definition PlatformMem.c:155
PVOID PlatformAllocateMemory(SIZE_T Size)
... New Unified API ...
Definition PlatformMem.c:58
PVOID PlatformMemAllocateContiguousZeroedMemory(SIZE_T NumberOfBytes)
... Backward Compatibility / Specific APIs ...
Definition PlatformMem.c:184
INT PlatformSprintf(char *Buffer, SIZE_T BufferSize, const char *Format,...)
Platform independent wrapper for sprintf_s / snprintf.
Definition PlatformMem.c:29
PVOID PlatformMemAllocateNonPagedPool(SIZE_T NumberOfBytes)
Allocates non-paged pool memory.
Definition PlatformMem.c:208
PVOID PlatformMemAllocateZeroedNonPagedPool(SIZE_T NumberOfBytes)
Allocates zeroed non-paged pool memory.
Definition PlatformMem.c:248
PVOID PlatformMemFreePool(PVOID BufferAddress)
Frees a memory pool.
Definition PlatformMem.c:269
VOID PlatformWriteMemory(PVOID Address, PVOID Buffer, SIZE_T Size)
Writes data from a buffer to a memory address.
Definition PlatformMem.c:115
PVOID PlatformMemAllocateNonPagedPoolWithQuota(SIZE_T NumberOfBytes)
Allocates non-paged pool memory with quota charging.
Definition PlatformMem.c:227
void * PVOID
Definition BasicTypes.h:56
int INT
Definition BasicTypes.h:43
RequestedActionOfThePacket Value(0x1) 00000000