Register for your free account! | Forgot your password?

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

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


[Request]C# ReadProcessMemory

Reply
 
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 04/15/2010, 19:36   #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 pinvoke.net
Und auf 64Bit BS is es auch wieder anders als in 32Bit, also musste daran dann auch denken.


Elite-1337 is offline  
Old 04/18/2010, 05:28   #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
Henri_ is offline  
Thanks
1 User
Reply



« [Brauche Hilfe]Visual Basic Memory Write | Brauche Hilfe bei VB 08 »

Similar Threads
ReadProcessMemory From Lineage II
03/03/2011 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 8 Replies
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 health,mana, etc or maybe you want to write data to the process, But in this article I show how to read....
ReadProcessMemory, C++ Problem
08/09/2010 - C/C++ - 12 Replies
Hi, ich mach mich gerade ans Memory editing in C++ aber habe nen Problem mit ReadProcessMemory. Hier mal mein Code: #include <iostream> #include <limits> #include <windows.h> using namespace std; int main()
ReadProcessMemory Problem
07/26/2009 - General Coding - 3 Replies
I can't listing Proc. Only one uses TlHelp32 var hProcess,HandleWindow: THandle; Struct: TProcessEntry32; ProcessID,temp:cardinal; buf:pchar; begin
[Help] Delphi + ReadProcessMemory
11/05/2008 - CO2 Programming - 7 Replies
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 luck. so i figured ima try here this is my source currently thanks in advance for help unit...
[Help!!!] Delphi + Readprocessmemory
11/02/2008 - General Coding - 1 Replies
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 luck. so i figured ima try here this is my source currently thanks in advance for help unit...



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