creating trainers and software enhancement programs in blitz

Blitz3D Forums/Blitz3D Programming/creating trainers and software enhancement programs in blitz

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

#PROCESS_ALL_ACCESS = #STANDARD_RIGHTS_REQUIRED | #SYNCHRONIZE | $FFF


; Get Process info
hWnd = FindWindow_(Null,"Secret Weapons Over Normandy")

GetWindowThreadProcessId_(hWnd, @pid.l)

app = OpenProcess_(#PROCESS_ALL_ACCESS,Null,pid)

; Buffer For storing stuff, in bytes
pip = AllocateMemory(1,3)

; To read from process
zap = ReadProcessMemory_(app,4987153,pip,3,Null)
tip = PeekL(pip)

; To write to process
zing = PokeL(pip,9474192)
zip = WriteProcessMemory_(app,4987153,pip,3,Null)


Basically a quick 'rip' out of my PureBasic trainer code.. make userlibs for the Win32 API commands used, and it should work much the same way in Blitz+.

If i have time later today, i'll see if can make a bit of B+ code for ya.

(As you can see James, it's pretty damned trivial of a job ;) )

Tracer