From abfab35f93311e53dde9bcbe4c16dd03cad2a893 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Fri, 5 Jun 2020 11:23:39 -0700 Subject: [PATCH] Added ReadProcessMemory --- BeefLibs/corlib/src/Windows.bf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BeefLibs/corlib/src/Windows.bf b/BeefLibs/corlib/src/Windows.bf index 3102b72d..d01280fb 100644 --- a/BeefLibs/corlib/src/Windows.bf +++ b/BeefLibs/corlib/src/Windows.bf @@ -1257,6 +1257,9 @@ namespace System [CLink, CallingConvention(.Stdcall)] public static extern Handle CreateRemoteThread(ProcessHandle process, SecurityAttributes* threadAttributes, int stackSize, void* startAddress, void* parameter, int32 creationFlags, int32* threadId); + [CLink, CallingConvention(.Stdcall)] + public static extern IntBool ReadProcessMemory(ProcessHandle process, void* baseAddress, void* buffer, int size, int* numberOfBytesRead); + [CLink, CallingConvention(.Stdcall)] public static extern IntBool WriteProcessMemory(ProcessHandle process, void* baseAddress, void* buffer, int size, int* numberOfBytesWritten);