HyperDbg Debugger
Toggle main menu visibility
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"
18
# include "
../../../../include/SDK/HyperDbgSdk.h
"
19
#endif
// defined(__linux__)
20
22
// Functions //
24
25
INT
26
PlatformSprintf
(
char
* Buffer, SIZE_T BufferSize,
const
char
* Format, ...);
27
28
VOID
29
PlatformFreeMemory
(
PVOID
Memory);
30
31
VOID
32
PlatformWriteMemory
(
PVOID
Address,
PVOID
Buffer, SIZE_T Size);
33
34
VOID
35
PlatformSetMemory
(
PVOID
Destination,
int
Value
, SIZE_T Size);
36
37
VOID
38
PlatformZeroMemory
(
PVOID
Destination, SIZE_T Size);
39
40
VOID
41
PlatformFreeMemory
(
PVOID
Memory);
42
43
PVOID
44
PlatformAllocateMemory
(SIZE_T Size);
45
46
PVOID
47
PlatformMemAllocateContiguousZeroedMemory
(SIZE_T
NumberOfBytes
);
48
49
PVOID
50
PlatformMemAllocateNonPagedPool
(SIZE_T
NumberOfBytes
);
51
52
PVOID
53
PlatformMemAllocateNonPagedPoolWithQuota
(SIZE_T
NumberOfBytes
);
54
55
PVOID
56
PlatformMemAllocateZeroedNonPagedPool
(SIZE_T
NumberOfBytes
);
57
58
PVOID
59
PlatformMemFreePool
(
PVOID
BufferAddress);
60
61
PVOID
62
PlatformMemAllocateContiguousZeroedMemory
(SIZE_T
NumberOfBytes
);
63
64
PVOID
65
PlatformMemAllocateNonPagedPool
(SIZE_T
NumberOfBytes
);
66
67
PVOID
68
PlatformMemAllocateNonPagedPoolWithQuota
(SIZE_T
NumberOfBytes
);
69
70
PVOID
71
PlatformMemAllocateZeroedNonPagedPool
(SIZE_T
NumberOfBytes
);
72
73
PVOID
74
PlatformMemFreePool
(
PVOID
BufferAddress);
NumberOfBytes
POOL_TYPE SIZE_T NumberOfBytes
Definition
Hooks.h:88
PlatformFreeMemory
VOID PlatformFreeMemory(PVOID Memory)
Frees a previously allocated memory block.
Definition
PlatformMem.c:93
PlatformSetMemory
VOID PlatformSetMemory(PVOID Destination, int Value, SIZE_T Size)
Sets a memory block to a specific value.
Definition
PlatformMem.c:134
PlatformZeroMemory
VOID PlatformZeroMemory(PVOID Destination, SIZE_T Size)
Zeros a memory block.
Definition
PlatformMem.c:155
PlatformAllocateMemory
PVOID PlatformAllocateMemory(SIZE_T Size)
... New Unified API ...
Definition
PlatformMem.c:58
PlatformMemAllocateContiguousZeroedMemory
PVOID PlatformMemAllocateContiguousZeroedMemory(SIZE_T NumberOfBytes)
... Backward Compatibility / Specific APIs ...
Definition
PlatformMem.c:184
PlatformSprintf
INT PlatformSprintf(char *Buffer, SIZE_T BufferSize, const char *Format,...)
Platform independent wrapper for sprintf_s / snprintf.
Definition
PlatformMem.c:29
PlatformMemAllocateNonPagedPool
PVOID PlatformMemAllocateNonPagedPool(SIZE_T NumberOfBytes)
Allocates non-paged pool memory.
Definition
PlatformMem.c:208
PlatformMemAllocateZeroedNonPagedPool
PVOID PlatformMemAllocateZeroedNonPagedPool(SIZE_T NumberOfBytes)
Allocates zeroed non-paged pool memory.
Definition
PlatformMem.c:248
PlatformMemFreePool
PVOID PlatformMemFreePool(PVOID BufferAddress)
Frees a memory pool.
Definition
PlatformMem.c:269
PlatformWriteMemory
VOID PlatformWriteMemory(PVOID Address, PVOID Buffer, SIZE_T Size)
Writes data from a buffer to a memory address.
Definition
PlatformMem.c:115
PlatformMemAllocateNonPagedPoolWithQuota
PVOID PlatformMemAllocateNonPagedPoolWithQuota(SIZE_T NumberOfBytes)
Allocates non-paged pool memory with quota charging.
Definition
PlatformMem.c:227
PVOID
void * PVOID
Definition
BasicTypes.h:56
INT
int INT
Definition
BasicTypes.h:43
HyperDbgSdk.h
Value
RequestedActionOfThePacket Value(0x1) 00000000
hyperdbg
include
platform
kernel
header
PlatformMem.h
Generated by
1.17.0