Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 13:42

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[VB]Memory Address

Discussion on [VB]Memory Address within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1



 
.aNNdii#'s Avatar
 
elite*gold: 1
Join Date: Aug 2008
Posts: 7,744
Received Thanks: 3,605
[VB]Memory Address

Weiß jemande wie ich eine Memory Addresse in Visual Basic einbauen kann ?
Ahja habe VB08

Liebe Grüße,
AngelAndi
.aNNdii# is offline  
Old 02/27/2009, 16:55   #2
 
12354's Avatar
 
elite*gold: 0
Join Date: Apr 2007
Posts: 943
Received Thanks: 132
Mit WinApi "ReadProcessMemory" und "WriteProcessMemory"
Code:
Public Declare Function ReadProcessMemory Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
Public Declare Function WriteProcessMemory 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
Brauchst halt das Prozesshandle
Code:
Dim myProcesses As Process() = Process.GetProcessesByName("notepad")
Dim processHandle as IntPtr = myProcesses(0).Handle
und die Adresse.

Beispiel wäre:
Code:
Dim zahl as Integer = 20
Dim adresse As Integer = &HD43318
WriteProcessMemory(processHandle, zahl, adresse, 4, 0)
oder um auszulesen
Code:
Dim buffer as Integer
ReadProcessMemory(processHandle, &HD43318,buffer, 4, 0)
EDIT: Mir fällt grad ein, dass deine Anwendung manchmal auch DebugRechte braucht.
Die kannste mit
Code:
Process.EnterDebugMode()
erhalten(am besten im Form.Load Event)
12354 is offline  
Old 02/27/2009, 18:36   #3
 
elite*gold: 0
Join Date: Feb 2009
Posts: 418
Received Thanks: 142

Take a look at their example.
iNFIDEL_ is offline  
Old 02/28/2009, 12:28   #4



 
.aNNdii#'s Avatar
 
elite*gold: 1
Join Date: Aug 2008
Posts: 7,744
Received Thanks: 3,605
>.< jetzt seh ich wida das ich noch viel lerenen muss >.> trotzdem danke^^
Checke das mit Processhandle net :<

iNFIDEL the Tutorials are for VB6
.aNNdii# is offline  
Old 02/28/2009, 13:45   #5
 
12354's Avatar
 
elite*gold: 0
Join Date: Apr 2007
Posts: 943
Received Thanks: 132
Das Prozesshandle gibt halt an von welchem Prozess du ausliest.(irgendwie muss du des der winapi ja sagen ; D)
Als erstes speichere ich alle Prozesse ,die den ProzessNamen "notepad"(ohne .exe!!) haben, in ein Array.
Code:
Dim myProcesses As Process() = Process.GetProcessesByName("notepad")
Jetzt nehme ich den ersten Prozess aus dem Array(myProcesses(0)) und weise
der Variable processHandle das Handle vom Prozess zu
Code:
Dim processHandle as IntPtr = myProcesses(0).Handle
Oben hab ich das processHandle nicht als IntPtr deklariert gehabt : ((. Habs mal richtig editiert.Sollte jetzt funktionieren
12354 is offline  
Old 06/30/2009, 21:18   #6
 
Mi4uric3's Avatar
 
elite*gold: 405
Join Date: Dec 2007
Posts: 6,615
Received Thanks: 6,358
Ich weiß nicht, warum das neuerdings bei mir auftaucht..
Wenn ich die Zeile "Dim processHandle.." ausblende dann kommt der Fehler nicht.. o.O

Fehler:
Quote:
Fehler beim Erstellen des Formulars. Weitere Informationen finden Sie in Exception.InnerException. Fehler: Der Index war außerhalb des Arraybereichs..
Wisst ihr warum das kommt?
Mi4uric3 is offline  
Reply


Similar Threads Similar Threads
Memory Address
03/05/2010 - CO2 Programming - 10 Replies
Hey, when i find a memory adress for Example :name = 0x5AC45(Example) i add it to my bot and it shows my name but when i close co and open another one it doesnt show my name and when i search for the address it shows another address,i would like to know how to search for the Main address,som1 told me to look for the Pointer,am using cheat engine and idk how to look for the points i right click on the address and click search for pointer an empty box shows up plz help !!!
memory address
01/23/2008 - Conquer Online 2 - 0 Replies
any1 can make a memory address on monster count?using cheat engine perhaps?
Memory Address
12/19/2007 - Conquer Online 2 - 0 Replies
Hello, I need help for making memory address's result based on what we need from MemAddr.ini. I.e: for C#/CSharp language:- // Declare the unmanaged functions. private static extern int GetPrivateProfileString(string lpAppName, string lpKeyName, string lpDefault, StringBuilder lpReturnedString, int nSize, string lpFileName);
memory address
12/07/2007 - Conquer Online 2 - 3 Replies
is it possible for memory address the monster count i could use 1 for 300 kills monster :P
MP address in memory
05/06/2007 - Lineage 2 - 0 Replies
I want to make bot, I found HP address in memory, its 09DDD190 but I still can't find MP address ? Can anybody help me ? And srry because of my english, it is bad :rolleyes:



All times are GMT +1. The time now is 13:43.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.