"
This function in the PB, why do you only read one character at a time, if it is in Chinese, also can't read.
How to solve, need
CodePudding user response:
The FUNCTION ulong OpenProcess (ulong dwDesiredAccess, ulong bInheritHandle, ulong dwProcessId) LIBRARY "kernel32. DLL"The FUNCTION ulong ReadProcessMemory (ulong hProcess, ulong lpBaseAddress, ref blob lpBuffer, ulong nSize, ref ulong lpNumberOfBytesWritten) LIBRARY "kernel32. DLL
"
Ulong hProcess, n, Address
Blob lpBuffer
LpBuffer=blob (string (space (4)))
Address=400000
HProcess=OpenProcess (16, 0, ProcessId)//that the process can be read
ReadProcessMemory (hProcess, Address, lpBuffer, 4, n)
CodePudding user response:
How to use OpenProcess in PB (), ReadProcessMemory () functionThe readprocessmemory function how to use