Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 15:56

  • 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   #2
elite*gold: 0
Join Date: Jul 2007
Posts: 93
Received Thanks: 13

I3iLLiG is offline  
2 Users

« Previous Thread | Next Thread »

Similar Threads
[VIP-function] ToxicSYS [VIP-function]
heeeey E-pvpers :pimp: this is a new hack by TSYS Status : UNDETECTED Functions (VIDEO) : YouTube - WarRock - Bikini event VIP hack
1 Replies - WarRock Hacks, Bots, Cheats & Exploits
[HELP] Function
Where can I find this function "gamecard> = 1" within my
2 Replies - EO PServer Hosting
Help with calling this function!
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...
6 Replies - 12Sky2
Need help with ecx function
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 ...
2 Replies - General Coding
Autoit function
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...
0 Replies - SRO Ask the Experts

All times are GMT +2. The time now is 15:56.

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.