Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 06:14

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

Advertisement



[Delphi] OpenProcess() does not return handle

Discussion on [Delphi] OpenProcess() does not return handle within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2008
Posts: 3
Received Thanks: 0
[Delphi] OpenProcess() does not return handle

Hello, I have the following code:
Code:
begin
WindowName := FindWindow(NIL,'SRO_Client');
edit1.text:=inttostr(windowname);
if WindowName<>0 then
  begin
  GetWindowThreadProcessID(WindowName,@ProcessID);
  ProcessHandle := OpenProcess(PROCESS_ALL_ACCESS, false, ProcessID);
  ReadProcessMemory(ProcessHandle, ptr($0181C594), @CharHPnoOffset, SizeOf(CharHPnoOffset), read);
  address1:=CharHPnoOffset+$454;
  ReadProcessMemory(ProcessHandle, ptr(address1), @CharHP, SizeOf(CharHP), read);
  edit1.text:=inttostr(charhpnooffset);
end;
The problem is that WindowName and ProcessID get correct values, but OpenProcess() gives ProcessHandle the value 0. This is not correct of course. Is this because of some hack prevention or did I make a mistake?
I am using this program on a private server client, not on iSRO.
theevilworm is offline  
Reply


Similar Threads Similar Threads
DELPHI - Who make Exploits, Hacks and Tools with DELPHI?
05/15/2013 - CO2 Programming - 13 Replies
Hi all. Iwith DELPHI, but a dont now. hello, I use Delphi to program and i like someone put here source code of make Exploits, Hacks and Tools bot here, or part of the code. ty to all
OpenProcess Problem
09/24/2010 - General Coding - 1 Replies
Hi leute Seit dem ich wieder 32 bit system drauf habe funktioniert mein memory scanner bei programmen mit hackshield nicht mehr da ich glaube "OpenProcess" nicht ausgeführt werden kann. Könnt ihr mir da vlt etwas zu sagen ? mfg lazeboy
[DELPHI&METIN]Wie sind die Delphi Befehle für einen Bot?
03/07/2010 - General Coding - 3 Replies
Hallo liebe com, ich habe mal eine Frage: Ich möchte einen Metin Bot in Delphi schreiben aber ich weiß nicht die Befehle für eine bestimmte Taste senden etc. könnt ihr mir die pls sagen oder per pn geben MfGGGGGG
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>



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