Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 07:12

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

Advertisement



ReadProcessMemory error 299

Discussion on ReadProcessMemory error 299 within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2005
Posts: 2,487
Received Thanks: 215
ReadProcessMemory error 299

Hi,

Kriege hier immer error 299 ("Only part of a ReadProcessMemory or WriteProcessMemory request was completed."). Keine Ahnung wo dran es liegen könnte eigentlich alles richtig. WinXP 32 Prof., kein Vista..

Code:
    //Speil ist hier Guild Wars

    unsigned ebx1 = 0x00002C;
    
    ph = OpenProcess(PROCESS_VM_READ, false, pid);
    if (ph == NULL)    
    {
           cerr << "ph nicht erstellt";
           Sleep(2000);
           exit(1);
    }
    
    int ecx;
    int eax;

    bool success;
    
    success = ReadProcessMemory(ph, (LPCVOID)ebx1, &ecx, sizeof(int), &rw);
    
    if (!success)
    {
                 DWORD error;
                 error = GetLastError();
                 cerr << "nFehler beim lesen. CODE1: " << error;
                 cerr << "n Bytes read: " << rw;
                 Sleep(2000);
    }
Handles sind alle in Ordnung, weil andere MemReads mit dem selben Handle arbeiten und funktionieren. Number of Bytes read ist 0.

Grüße
Term!nX is offline  
Old 07/21/2008, 14:38   #2
 
Atheuz's Avatar
 
elite*gold: 81
Join Date: Jul 2005
Posts: 1,921
Received Thanks: 2,239
Quote:
Originally Posted by Term!nX View Post
Hi,

Kriege hier immer error 299 ("Only part of a ReadProcessMemory or WriteProcessMemory request was completed."). Keine Ahnung wo dran es liegen könnte eigentlich alles richtig. WinXP 32 Prof., kein Vista..

Code:
    //Speil ist hier Guild Wars

    unsigned ebx1 = 0x00002C;
    
    ph = OpenProcess(PROCESS_VM_READ, false, pid);
    if (ph == NULL)    
    {
           cerr << "ph nicht erstellt";
           Sleep(2000);
           exit(1);
    }
    
    int ecx;
    int eax;

    bool success;
    
    success = ReadProcessMemory(ph, (LPCVOID)ebx1, &ecx, sizeof(int), &rw);
    
    if (!success)
    {
                 DWORD error;
                 error = GetLastError();
                 cerr << "nFehler beim lesen. CODE1: " << error;
                 cerr << "n Bytes read: " << rw;
                 Sleep(2000);
    }
Handles sind alle in Ordnung, weil andere MemReads mit dem selben Handle arbeiten und funktionieren. Number of Bytes read ist 0.

Grüße
Willst du einen Pointer auslesen?
Atheuz is offline  
Old 07/21/2008, 14:52   #3
 
elite*gold: 0
Join Date: Oct 2005
Posts: 2,487
Received Thanks: 215
Denk schon, habe halt an 0x00002C und anderen Stellen eine statische Füllung. Von da aus möchte ich mich dann zum gewünschten Wert weiterrechnen, aber die anderen Reads habe ich jetzt nicht mitgepostet, da sie eh funktionieren. Funktionieren soweit man das sagen kann, da sie ja auf den falschen Wert von 0x00002C basieren.
Term!nX is offline  
Reply


Similar Threads 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. First of all you need to inculde some files: #include <Tlhelp32.h> to have access to:
[C++] ReadProcessMemory Text?
09/12/2010 - C/C++ - 5 Replies
die frage kommt den pros hier vllt etwas dumm vor, aber ich befasse mich ja erst seit 2 wochen mit c++: ich habe folgenden code: ReadProcessMemory(handle,(LPVOID)address,&text ,sizeof(long),&numBytesRead); cout << hex << text << "\n"; cout << char(text) << "\n"; ich will in einem spiel einen text auslesen. der erste wert in der konsole entspricht dem 4 bytes wert in CE.
[Request]C# ReadProcessMemory
04/18/2010 - .NET Languages - 2 Replies
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)
ReadProcessMemory problem
06/10/2009 - General Coding - 4 Replies
hi, jedes mal wenn ich ReadProcessMemory verwende kommt die zahl 1 raus. Was mache ich denn falsch. int ReadMemory(int address) { int r; FindWindow(); r = ReadProcessMemory(Process, (int*)address, &value, sizeof(value), NULL); CloseHandle( Process );
[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 Unit1; interface



All times are GMT +1. The time now is 07:13.


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.