Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 15:33

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

Advertisement



HELP Required! C# & Process Memory reading.

Discussion on HELP Required! C# & Process Memory reading. within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
|NeoX's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 237
Received Thanks: 99
HELP Required! C# & Process Memory reading.

Thanks for looking into my thread!

I want to learn more every day, today its how i can use C# to read the charname from a adress (i got the memory adress and the Process ID)

Please provide me a code snipped wich i can just copy for now and see how that works.

Im pretty sure with that little help, i can sort out the other **** i wanna do.

[Project] (Do not help me on that, thats my task! )

I want to make a tool wich checks the HP/MP and sends them using NamedPipes to an Webserver

Webserver will be coded in c# by me too. (Pointless but i wanna improve my skills so its alrighty :P)
|NeoX is offline  
Thanks
1 User
Old 11/08/2010, 16:04   #2
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,749
Received Thanks: 2,199
Code:
[DllImport("Kernel32.dll")]
static extern bool ReadProcessMemory(ntPtr hProcess, IntPtr lpBaseAddress, byte[] lpBuffer, UInt32 nSize, ref UInt32 lpNumberOfBytesRead);

[DllImport("kernel32.dll")]
static extern IntPtr OpenProcess(ProcessAccessFlags dwDesiredAccess, [MarshalAs(UnmanagedType.Bool)] bool bInheritHandle, int dwProcessId);

IntPtr pHandle;
byte[15] buffer;
string CharName;

pHandle = OpenProcess(0x001F0FFF, False, ProcessID);
ReadProcessMemory(pHandle, Address, buffer, 16, 0);
CharName = System.Text.ASCIIEncoding.Default.GetString(buffer);

CloseHandle(pHandle);
I don't really know C#, but I think it's something like that
IAmHawtness is offline  
Thanks
1 User
Old 11/08/2010, 16:13   #3
 
|NeoX's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 237
Received Thanks: 99
thank you alot that should help me^^
|NeoX is offline  
Thanks
1 User
Old 11/12/2010, 01:15   #4
 
elite*gold: 0
Join Date: Feb 2005
Posts: 156
Received Thanks: 9
Can't you use System.Diagnostic to start a process and get its handle?
vDrag0n is offline  
Old 11/12/2010, 06:32   #5
 
elite*gold: 20
Join Date: Aug 2007
Posts: 1,749
Received Thanks: 2,199
Quote:
Originally Posted by vDrag0n View Post
Can't you use System.Diagnostic to start a process and get its handle?
Depends on whether he's using the .NET framework or not
IAmHawtness is offline  
Old 11/12/2010, 21:20   #6
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
C# only works on the .NET framework (unlike how there's VB, and VB.NET). One could argue about Mono... but, my point still stands.

So yar to the System.Diagnostics question.
InfamousNoone is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
C++ Memory Reading
01/02/2010 - C/C++ - 4 Replies
huhu ich wollte jetzt von Autoit auf C++ umsteigen ... nun weis ich nur leider nicht wie die befehle fürs process id und memory aulesen usw bei c++ sind :) hat da jmd ne kleine übersicht oder sowas .. wäre toll x) mfg karl
Reading Current Experience from Conquer Process
12/21/2008 - CO2 Programming - 5 Replies
Hi, im trying to read the current character experience from the Conquer Process, i am reading from the address 0x5DB490, i found this using CE and am almost certain its the right address (if its not then please correct me). The problem is, when i find the address in CE i find the information i want (that is, the current character experience). But when i read in the data in C# i get a completly wrong value, for example, when i find the value in CE its 2470588, but when i find it in C# its 188....
Memory reading etc.
06/18/2008 - General Coding - 11 Replies
-
Memory reading help...
02/10/2007 - Conquer Online 2 - 1 Replies
Hi, I need to read the amount of arrows on an archer (0-500). I have the pointer and offset, and i can get the right number in cheat engine, however whenever i try to read it from autohotkey i always get 0. Don't know why. I've always read 4 byte data before so i don't really know if i have the right code for 2 byte data. Here's the autohotkey code ExtInt(ByRef pSource, pOffset = 0, pIsSigned = false, pSize = 4); From AutoHotKey Help { Loop %pSize% result += *(&pSource +...
VB.Net Memory Reading
11/03/2006 - .NET Languages - 0 Replies
Basically I'm doing a course in VB.Net and I'm wondering if theres anyone here who can teach me or show me how to read memory values in my project. My course does not cover this, so I'm stuck with either self-research or asking questions. If anyone can help then I'd be very grateful. PS: The target game I'll be testing on is Conquer Online 2



All times are GMT +1. The time now is 15:36.


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.