small fix in WriteProcessMemory definition

Now it actually passes a reference to the value, and WriteProcessMemory sets the amount of bytes written.
This commit is contained in:
Physics
2020-05-11 14:09:41 -03:00
committed by GitHub
parent efb5913b8b
commit 1a9e35e86f
+1 -1
View File
@@ -29,7 +29,7 @@ class Inject:
pass
[DllImport("kernel32.dll")]
def WriteProcessMemory(hProcess as int, lpBaseAddress as int, lpBuffer as (byte), nSize as int, lpNumberOfBytesWritten as int) as bool:
def WriteProcessMemory(hProcess as int, lpBaseAddress as int, lpBuffer as (byte), nSize as int, ref lpNumberOfBytesWritten as int) as bool:
pass
[DllImport("kernel32.dll")]