Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 22:05

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

[Help]C# ReadMemory Function

View Poll Results: Is the Code right?
Yes 2 40.00%
No 3 60.00%
Voters: 5. You may not vote on this poll

Old   #1
elite*gold: 0
Join Date: Jan 2010
Posts: 121
Received Thanks: 7
Smile [Help]C# ReadMemory Function

I am a newbie and trying to learn the C# ReadProcessMemory function!
As a training I am trying to read the HP value in "Conquer Online" so please tell me is this code right or wrong and will it cause me problems?
note: this is a console application
the program should read the HP address then it shows the value of the address!
PHP Code:
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
using System.Diagnostics;

        public static 
extern int OpenProcess(
int dwDesiredAccess,
bool bInheritHandle,
int dwProcessId
DllImport("kernel32.dll"EntryPoint "CloseHandle")]
        public static 
extern int CloseHandle(
int hObject
        public static 
extern Int32 ReadProcessMemory(
IntPtr hProcess,
IntPtr lpBaseAddress,
byte[] buffer,
int size,
out int lpNumberOfBytesRead
void Main(string[] args)
int PID;
PID Process.GetProcessesByName("Conquer")[0].Id;
int hprocess OpenProcess(0x0010falsePID);
int num;
byte[] buffer = new byte[6];
ReadProcessMemory((IntPtr)hprocess, (IntPtr)0xE72E40buffer4out num);
string x Encoding.Default.GetString(buffer);

If you don't want to answer just choose from the poll

shimo diaz is offline  
Old 04/21/2010, 11:37   #2
elite*gold: 0
Join Date: Jul 2007
Posts: 93
Received Thanks: 13

I3iLLiG is offline  
2 Users

« Brauche Hilfe bei VB 08 | [Help]C# few questions »

Similar Threads
[VIP-function] ToxicSYS [VIP-function]
08/14/2010 - WarRock Hacks, Bots, Cheats & Exploits - 1 Replies
heeeey E-pvpers :pimp: this is a new hack by TSYS Status : UNDETECTED Functions (VIDEO) : YouTube - WarRock - Bikini event VIP hack
[HELP] Function
08/02/2010 - EO PServer Hosting - 2 Replies
Where can I find this function "gamecard> = 1" within my
Help with calling this function!
03/13/2010 - 12Sky2 - 6 Replies
First off: sorry for my poor english! Im trying with my dll to set off the "set stat function". The one that u press when you add a stat point to str, dex or what ever. My goal is to make players able to set there Stats to whatever they use to...
Need help with ecx function
07/05/2008 - General Coding - 2 Replies
Ich hab da ein Problem ich habe eine SpeicherAdresse (007B4750) und in ihr ist wohl eine function mit folgender struct (X,Y,Z :Integer) : Integer so... wie kann ich nun diese func mir zu nutze machen und sie so zu sagen aktivieren? Ich habe...
Autoit function
03/17/2008 - SRO Ask the Experts - 0 Replies
I'm just looking to write a quick autoit script so I can auto-ress if I need to delvl someone. It's my first time using autoit ^^ I found the Sleep (#) code to wait, but what is the code to select a skill? I also would like to know how I can make...

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

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.