win32api and readprocessmemory problem.. sojo, james, tracer? HELP!

Blitz3D Forums/Blitz3D Programming/win32api and readprocessmemory problem.. sojo, james, tracer? HELP!

Oh.. i forgot :)

.lib "kernel32.dll"

CreateToolhelp32Snapshot% (flags, th32processid)
Process32First% (snapshot, entry*)
Process32Next% (snapshot, entry*)
CloseHandle% (object)
OpenProcess% (dwDesiredAccess%, bInheritHandle%, dwProcessId%) : "OpenProcess"
ReadProcessMemory% (hProcess%, lpBaseAddress%, lpBuffer*, nSize%, lpNumberOfBytesRead%)
WriteProcessMemory% (hProcess%, lpBaseAddress%, lpBuffer*, nSize%, lpNumberOfBytesWritten%)


Mike, the above is WHY your code didn't work! .. you had "lpBaseAddress" set as a pointer (with the *) .. it's NOT a pointer! Replace the ReadProcessMemory and WriteProcessMemory in your userlib with the ones above!

Tracer