Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[C++] Process' handle

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
*CandyShop*
Grandmaster Cheater
Reputation: 0

Joined: 03 Apr 2007
Posts: 865
Location: Israel

PostPosted: Mon Mar 17, 2008 6:27 am    Post subject: [C++] Process' handle Reply with quote

Well I'm trying to CreateRemoteThread. The API requires a process handle.
I tried something like this:

Code:
DWORD dwProcessId;
HANDLE hProcess;

GetWindwThreadProcessId( FindWindow("MapleStoryClass","MapleStory"), &dwProcessId );

if(dwProcessId)
   cout << dwProcessId << "\n";

hProcess = OpenProcess(PROCESS_ALL_ACCESS,
                              FALSE,
                              dwProcessId);

if(hProcess)
   cout << hProcess << endl;


It never gets the process handle o_O.. (It's for maple -- ggless);
Do you guys have any idea why it doesn't get the process handle using OpenProcess in GGLESS?

P.s:
Yea.. It never shows me the hProcess message and always shows me the dwProcessId message (cout << dwProcessId << "\n"Wink.
Back to top
View user's profile Send private message
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Mon Mar 17, 2008 12:42 pm    Post subject: Reply with quote

Works fine..
Code:
test\debug>test.exe
3184
00000FD0


And it's GetWindowThreadProcessId().
Back to top
View user's profile Send private message
Heartless
I post too much
Reputation: 0

Joined: 03 Dec 2006
Posts: 2436

PostPosted: Mon Mar 17, 2008 1:26 pm    Post subject: Reply with quote

I had the same problem. Download this source code and check out its comments. You'll see what to do.

http://www.ddt.uw-host.org/war3nr.rar

This source code is from 3vil Mage of http://www.extalia.com/forums/viewtopic.php?t=2852

I did not make it, so no credits to me.

_________________
What dosen't kill you, usually does the second time.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Mar 18, 2008 6:34 am    Post subject: Reply with quote

HornyAZNBoy wrote:
I had the same problem. Download this source code and check out its comments. You'll see what to do.

http://www.ddt.uw-host.org/war3nr.rar

This source code is from 3vil Mage of http://www.extalia.com/forums/viewtopic.php?t=2852

I did not make it, so no credits to me.


Think you mean exylum. ddt (Diskeditor Dream Team) is his 'team' / site. And that is his code lol. (Just sayin, don't think you mean to get them mixed up.)

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
*CandyShop*
Grandmaster Cheater
Reputation: 0

Joined: 03 Apr 2007
Posts: 865
Location: Israel

PostPosted: Wed Mar 19, 2008 12:44 pm    Post subject: Reply with quote

Jani wrote:
Works fine..
Code:
test\debug>test.exe
3184
00000FD0


And it's GetWindowThreadProcessId().

I knew it!
Nexon knows that there's hackers but when it's israeli hackers they're saying: "NO MORE!". They are getting our IPs and blocking us to get its process handle with some tricky stupid things because they know that we are dumbasses Wink haha Very Happy

Ontopic:
Thanks for the useful replys Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites