MCPcopy Create free account
hub / github.com/HoShiMin/Kernel-Bridge / SecureMemory

Function SecureMemory

Kernel-Bridge/API/MemoryUtils.cpp:120–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118
119 _IRQL_requires_max_(APC_LEVEL)
120 BOOLEAN SecureMemory(
121 __in_data_source(USER_MODE) PVOID UserAddress,
122 SIZE_T Size,
123 ULONG ProtectRights,
124 OUT PHANDLE SecureHandle
125 ) {
126 if (!SecureHandle || !Size || AddressRange::IsKernelAddress(UserAddress))
127 return FALSE;
128 *SecureHandle = MmSecureVirtualMemory(UserAddress, Size, ProtectRights);
129 return *SecureHandle != NULL;
130 }
131
132 _IRQL_requires_max_(APC_LEVEL)
133 BOOLEAN SecureProcessMemory(

Callers 9

SecureProcessMemoryFunction · 0.85
OperateProcessMemoryFunction · 0.85
KbSecureVirtualMemoryFunction · 0.85
KbGetThreadContextFunction · 0.85
KbSetThreadContextFunction · 0.85
KbGetKernelProcAddressFunction · 0.85
KbCreateDriverFunction · 0.85
KbLoadModuleFunction · 0.85
KbGetModuleHandleFunction · 0.85

Calls 1

IsKernelAddressFunction · 0.70

Tested by

no test coverage detected