Home > database >  ReadProcessMemory function in the PB yes use problem
ReadProcessMemory function in the PB yes use problem

Time:10-01

The FUNCTION ulong ReadProcessMemory (ulong hProcess, ulong lpBaseAddress, ref any lpBuffer, ulong nSize, ref ulong lpNumberOfBytesWritten) LIBRARY "kernel32. DLL
"
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 () function

The readprocessmemory function how to use
  • Related