Register for your free account! | Forgot your password?

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

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


[Request]C# ReadProcessMemory

Old   #1
elite*gold: 0
Join Date: Jan 2010
Posts: 121
Received Thanks: 7
[Request]C# ReadProcessMemory

Hi epvp coders
I need an example for ReadProcessMemory in C#
I need a full console application example that explains the ReadProcessMemory (the whole code)

In deutsch
Hallo epvp Codierer
Ich brauche ein Beispiel für ReadProcessMemory in C #
Ich brauche ein voller Konsole-Anwendung beispielsweise, dass die ReadProcessMemory (der gesamte Code erklärt)

shimo diaz is offline  
Old   #2
elite*gold: 0
Join Date: May 2009
Posts: 41
Received Thanks: 13
da wirste nix finden wo das gut erklärt ist, weil das schon immer nicht ganz einfach war und auch bleiben wird. Das ist eine API Funktion, welche du nicht mal ausführlich in Büchern erklärt bekommst (nur ansatzweise).

Zum einen würd ich auf der MSDN Seite schaun und auch mal auf
Und auf 64Bit BS is es auch wieder anders als in 32Bit, also musste daran dann auch denken.

Elite-1337 is offline  
Old   #3
elite*gold: 400
Join Date: Feb 2010
Posts: 237
Received Thanks: 467
#define MYOFFSETADDRESS 0x00000 /* define here the address you want to read */

HWND WndW = FindWindow(lpClassName, lpWindowName); /* lpClassName = the class of the target window - lpWindowName = the name to the target window - change these values! */

DWORD processID = GetWindowThreadProcessId(WndW, &processID); /* processID = the process Id of the target window. necessary to get the handle of the process */

HANDLE trgtHandle = OpenProcess(PROCESS_ALL_ACCESS, false, processID); /* the handle of the process */

if (trgtHandle == 0){return;} /* could not get the handle... */

int theValue;

ReadProcessMemory(trgtHandle , (LPCVOID)MYOFFSETADDRESS , &theValue, sizeof(theValue), NULL); /* Read "MYOFFSETADDRESS" address value - "theValue" will store the value */

CloseHandle(trgtHandle); /* closes the handle when you're done with it */

Henri_ is offline  
1 User

« Previous Thread | Next Thread »

Similar Threads
ReadProcessMemory From Lineage II
Hello, This is my second thread, and I hope someone can have some benefit from it. Why do this? well maybe make an status bar to display...
8 Replies - Lin2 Exploits, Hacks, Bots, Tools & Macros
ReadProcessMemory, C++ Problem
Hi, ich mach mich gerade ans Memory editing in C++ aber habe nen Problem mit ReadProcessMemory. Hier mal mein Code: #include <iostream>...
12 Replies - C/C++
ReadProcessMemory Problem
I can't listing Proc. Only one uses TlHelp32 var hProcess,HandleWindow: THandle; Struct: TProcessEntry32; ProcessID,temp:cardinal; ...
3 Replies - General Coding
[Help] Delphi + ReadProcessMemory
I cant seem to get read process memory working in delphi i dont know why at all either, ive googled it for like 2 hours the other night and know...
7 Replies - CO2 Programming
[Help!!!] Delphi + Readprocessmemory
I cant seem to get read process memory working in delphi i dont know why at all either, ive googled it for like 2 hours the other night and know...
1 Replies - General Coding

All times are GMT +2. The time now is 14: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.