Register for your free account! | Forgot your password?

Go Back   elitepvpers > Conquer Online 2 > CO2 Main - Discussions / Questions > CO2 Programming
You last visited: Today at 22:00

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


[Request]How to read memory address in c#?

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2010
Posts: 121
Received Thanks: 7
[Request]How to read memory address in c#?

I just started learning C# i want to know how to read memory address of a certain application if anyone would be able to give this as an example i would be really thankful!
i want to read HP memory address then i want it to appear in label in my program!

note: Please no answers like ur lazy, google is ur friend or search for ""
Thanks for those who wants to help



shimo diaz is offline  
Old 03/29/2010, 21:19   #2
 
elite*gold: 0
Join Date: Oct 2008
Posts: 828
Received Thanks: 426
how to find addresses use cheat engine and find it.
Example your char hp is 1000
go to cheat engine and choose exact value then new search and type 1000 and click search
Then decrease your hp to 800 (go get some damage) then type 800 and click next
There should be only 1 value available,if there is more than one increase your hp back to 1000
and type 1000 and click next and there should be 1 address
that is how you find addresses,how to apply it to C# sorry i cant help you with that since that is not the language i use or used!!


SaM.ThE.MaN is offline  
Thanks
1 User
Old 03/29/2010, 22:03   #3
 
elite*gold: 0
Join Date: Jan 2010
Posts: 121
Received Thanks: 7
Quote:
Originally Posted by SaM.ThE.MaN View Post
how to find addresses use cheat engine and find it.
Example your char hp is 1000
go to cheat engine and choose exact value then new search and type 1000 and click search
Then decrease your hp to 800 (go get some damage) then type 800 and click next
There should be only 1 value available,if there is more than one increase your hp back to 1000
and type 1000 and click next and there should be 1 address
that is how you find addresses,how to apply it to C# sorry i cant help you with that since that is not the language i use or used!!
Thanks but i already know that yet thanks for your concern
shimo diaz is offline  
Old 03/29/2010, 22:58   #4
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 312


_tao4229_ is offline  
Thanks
1 User
Old 03/29/2010, 23:19   #5
 
elite*gold: 0
Join Date: Jan 2007
Posts: 656
Received Thanks: 540
Quote:
Originally Posted by shimo diaz View Post
I just started learning C# i want to know how to read memory address of a certain application if anyone would be able to give this as an example i would be really thankful!
i want to read HP memory address then i want it to appear in label in my program!

note: Please no answers like ur lazy, google is ur friend or search for ""
Thanks for those who wants to help
Code:
[DllImport("user32.dll", EntryPoint="GetWindowThreadProcessId")]
			public static extern int GetWindowThreadProcessId(IntPtr hWnd, out int lpdwProcessId);

[DllImport("kernel32.dll", EntryPoint = "ReadProcessMemory")]
			public static extern Int32 ReadProcessMemory(IntPtr hProcess, int lpBaseAddress, out string buffer, int size, out int lpNumberOfBytesRead);
Use those functions.
Trigorio is offline  
Thanks
2 Users
Old 03/30/2010, 04:48   #6
 
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 318
In addition to what both of the posters above me marked, note that you need to call before reading memory.
Nullable is offline  
Thanks
2 Users
Old 03/30/2010, 14:35   #7
 
elite*gold: 0
Join Date: Jan 2010
Posts: 121
Received Thanks: 7
Thanks for all of you


shimo diaz is offline  
Reply



« Mem Address Problem | C# socket programming »

Similar Threads
about memory address
09/13/2010 - CO2 Programming - 4 Replies
hello peeps i am trying to make a program that shows how much gold i have in my inventory without having to open it up all the time i have been searching on how to do this in vb6 and vb.net but i cant find anything that is what i am looking...
[VB]Write Memory bzw Read Memory
06/26/2010 - .NET Languages - 8 Replies
Hi Ich hab das TuT von *Guidman* benütz um einen hack zu machen. So aber nun hab ihc ein paar fragen könnte man memory teil kürzer machen und am besten wie kann man das selber machen weil ich will nihct immer C&P machen. Und zu Read Memory...
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...
[REQUEST] [C#] Read/Write Memory
03/04/2010 - CO2 Programming - 2 Replies
Hi guys, I know C# (Simple). I try to search "how to read/write process memory" but there is not result. Please help me about this? Waiting your helps. Thank you. (if my English bad. I'm sorry :))
Memory Address
12/19/2007 - CO2 Main - Discussions / Questions - 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...



All times are GMT +2. The time now is 22:00.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.