How to memory read/write in VB?

05/25/2014 18:11 SquadZLeader#1
I'm a newbie to VB
Just started VB not long ago (Only start VB like 1 or 2 days. I know C# so its kinda similar to it.)

Anyway, so im trying to make a trainer for S4 using VB
So far i have a GUI the layout and theme for the trainer
I just need to know how to read and edit the memory of a process (Obvious S4Client process) in VB

This is my work so far

[Only registered and activated users can see links. Click Here To Register...]

If i'm able to make that godmode work, I will add more features in it. I'm just stuck at the place with the memory read and write.
05/25/2014 18:18 -SoulCr4ck-#2
Open Process (PROCESS_ALL_ACCESS = &H1F0FF)
Code:
 Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal dwProcessId As Integer) As Integer
WriteProcessMemoryInteger
Code:
Private Declare Function WriteProcessMemoryInteger Lib "kernel32" Alias "WriteProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
<- Get from an class, but it's enought :>
05/25/2014 18:46 snow#3
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
Platform Invocation Services - Wikipedia, the free encyclopedia

Should be easy for you since you're already familiar with C#.
05/25/2014 18:55 SquadZLeader#4
Quote:
Originally Posted by snow911 View Post
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
Platform Invocation Services - Wikipedia, the free encyclopedia

Should be easy for you since you're already familiar with C#.
I'm asking for VB not C++ but thank that help too since I need it for C++ too

Thank [Only registered and activated users can see links. Click Here To Register...] for helping me out. I just notice my hack need a bypass that's all.
05/25/2014 19:17 Omdi#5
[Only registered and activated users can see links. Click Here To Register...]

closed :)