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.
Try something like this at the point where you call OpenProcess:
Quote:
HANDLE hProcess;
hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pe32.th32ProcessID );
if( hProcess == NULL )
printError( "OpenProcess" );
else
{
// ... do something cool here. there was no error opening the process
}
I found this one at MSDN. Try it. It's a very useful resource with more documentation on the Win-API than you will ever need in your life. ()
Some quick thoughts: Did you set the access rights right? Do you have a valid process ID to use with OpenProcess?
Oh... and btw. if you (hopefully) read your way through the MSDN be sure to follow their advises like
Quote:
When you are finished with the handle, be sure to close it using the CloseHandle function.
. They know what they are talking about. If you don't follow their advises this can lead to pain-in-the-*** debugging sessions or even an unstable system.
Did i set the access rights right? if you mean by PROCESS_ALL_ACCESS, then yes, if for the
SeDebugPrivilege thing, no.
i double(well more than double) checked the PID of engine.exe...i also tried doing it on other processes and it returns the handle correctly, but for engine.exe, it never opens the process.
autoit wont open the engine.exe
hackshield blocks autoit ... what you need autoit for...
when you learned autoit it shouldn't be hard to code the same macro ring 0 based on delphi c++ ...
search search for the procces and then open the window with the name 'KalOnline' ..
its easy , but wont work with autoit , autoit is craaaaaaaaaap :>
if you like add me on msn/icq.
atm I have no time to come online becouse of Work .. sorry :/
only once a week :/
vb.net OpenProcess() returns zero 10/24/2009 - .NET Languages - 6 Replies 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 :handsdown:
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 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;