Register for your free account! | Forgot your password?

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

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

Advertisement



vb.net OpenProcess() returns zero

Discussion on vb.net OpenProcess() returns zero within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2009
Posts: 10
Received Thanks: 0
vb.net OpenProcess() returns zero

Hey guys,
n00b here..

Im trying to read the Aion memory via vb.net OpenProcess(&H10, false, pid) function,
but it returns always 0.
I guess this is bcs of the missing read rights?

is there any workaround? how do others manage to get read access?

cheers
psyK82 is offline  
Old 10/24/2009, 15:10   #2

 
elite*gold: 0
Join Date: Apr 2007
Posts: 2,394
Received Thanks: 6,644
use GetLastError and look whats wrong.

wurstbrot123 is offline  
Old 10/24/2009, 20:39   #3
 
elite*gold: 0
Join Date: Oct 2009
Posts: 10
Received Thanks: 0
Danke Wurstbrot,
hab meinen Fehler schon gefunden...lag an der Deklaration der dll.

Leider hab ich jetzt ein neues Problem.
Statt einem Mana-wert von 1320 erhalte ich 40, erhöhe ich die Adresse um 1 erhalte ich 5,
also je nur 1 byte des Wertes..

Quote:
Address1 = Address1 + offset1
ReadProcessMemory(hproc, Address1, value, 1, 4)
Ich bekomm iwie nicht mehr bytes ausgelesen, bestimm nur n sau dummer kleiner Fehler x.x

Edit:
Habe natürlich auch: ReadProcessMemory(hproc, Address1, value, 4, 4) versucht, ohne Erfolg
psyK82 is offline  
Old 10/24/2009, 21:16   #4
 
elite*gold: 115
Join Date: Oct 2007
Posts: 9,390
Received Thanks: 12,345
Code:
ReadProcessMemory(hproc, Address1, value, 4, NULL);
Versuchs mal so. Wenn das auch nicht klappt, dann poste am besten mal die paar Zeilen vorher, in denen du die Variable value deklariest.
ms​ is offline  
Old 10/24/2009, 21:20   #5

 
elite*gold: 0
Join Date: Apr 2007
Posts: 2,394
Received Thanks: 6,644
Du weisst schon das es eine Adresse gibt die
die Baseadresse enthält oder ?

Beispiel:

Code:
DWORD charbase = 0;
DWORD currentmp = 0;

ReadProcessMemory(hproc,(void*)0xD1668C,&charbase,4, 0); 
// Baseadresse wird ausgelesen und in charbase gespeichert

ReadProcessMemory(hproc,UlongToPtr(charbase+0x458),&currentmp,4,0);
// MP werden ausgelesen 0x458 wäre also das MP Offset...
BTW:


Solltest du dir mal anschauen...
wurstbrot123 is offline  
Old 10/24/2009, 22:08   #6
 
elite*gold: 0
Join Date: Oct 2009
Posts: 10
Received Thanks: 0
NULL kennt vb.net nicht, hab nothing versucht, ohne Erfolg.


Quote:
Originally Posted by wurstbrot123 View Post
Du weisst schon das es eine Adresse gibt die
die Baseadresse enthält oder ?
Jup, ich übergebe an ReadProcessMemory() schon base+offset

Ich bekomme auch das erste byte (mit dem Wert 40)...erhöhe ich die adresse um 1 bekomme ich das zweite byte (Wert 5)..


Wert ---- Byte4 ---- Byte3 ---- Byte2 ---- Byte1
-------------------------------------------------
1320: 00000000 00000000 00000101 00101000 '1320 is der erwartete Wert
0040: xxxxxxxx xxxxxxxx xxxxxxxx 00101000 '40 ist was ich gelesen bekomme
0005: xxxxxxxx xxxxxxxx 00000101 xxxxxxxx '5 ist an adresse +1
psyK82 is offline  
Old 10/24/2009, 22:26   #7
 
elite*gold: 0
Join Date: Oct 2009
Posts: 10
Received Thanks: 0
x.x
Hab das Problem..
Hatte in der Deklaration der dll den buffer as byte,
das konnte nicht klappen..

Danke allen für die Hilfe
psyK82 is offline  
Reply


Similar Threads Similar Threads
(NEW)ShadowRealmsOnline Returns!
05/15/2010 - EO PServer Hosting - 2 Replies
Hello My fellow Elitepvpers I have decided to Reopen SRO as i have gotten some time back from school and can host and open it again ACCOUNT: http://66.69.65.252/register.php op1:Client MEGAUPLOAD - The leading online storage and file delivery service SOmtimes it will display as not avavable keep trying Have not come to a fix for this yet : SPECS: SRO IS A REV DB WITH ADD CUSTOMIZATIONS AND MODELS GODMAPS
[TOP] BK-201 SG Returns 24/7(Hamachi)
01/20/2010 - Private Server - 6 Replies
I’m going to show you all how to download and play this server. Server Rates: EXP: 100 Party:300 Droprate:500 Pet = 9999 24/7 Sever Features:
OpenProcess(Again)
10/20/2007 - Kal Online - 1 Replies
Hi, why can't i still open Kal process? i tried with Autoit and C++.. here is what i've done to open with c++ #include <iostream> #include <windows.h>
OpenProcess + engine.exe?
10/08/2007 - Kal Online - 10 Replies
Hi, when i use OpenProcess api, it doesn't open engine.exe? it always returns 0.. is there another way to open engine.exe process? like CE opens it correctly.. babel vista translation: Hallo, wann verwende ich OpenProcess API, es nicht geöffnetes engine.exe? es bringt immer 0. zurück. gibt es eine andere Weise, engine.exe Prozeß zu öffnen? wie CER öffnet es richtig.
OpenProcess gibt konsequent error 87 zurück
10/05/2007 - General Coding - 5 Replies
Hallo, Ich arbeite im Moment an einem ProcessHandle. Allerdings bin ich ratlos, da eigentlich alles richtig ist, speziell die Parameter. Denn Error 87 besagt, dass die Parameter incorrect sind. Hier der C++ Code: HWND hWnd; DWORD thread; HANDLE hProcess;



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


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.