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 


Get Process Full Path

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

Joined: 17 Aug 2006
Posts: 957

PostPosted: Wed Sep 26, 2007 12:23 am    Post subject: Get Process Full Path Reply with quote

I am EnumWindows-ing through the visible windows (IsWindowVisible) on the desktop and see if any of them came from an exe (e.g. say, C:\test.exe).

So now I have hwnd of every window visible on the screen, which I can get the process ID using GetWindowThreadProcessId. Now I have all the visible running process IDs.

But how would I know what the full path of those processes are?

_________________
Get kidnapped often.
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Wed Sep 26, 2007 12:30 am    Post subject: Reply with quote

GetModuleFileNameEx
Back to top
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Wed Sep 26, 2007 1:12 am    Post subject: Reply with quote

looks like in an article about this I need to get the module name (i assume this is "test.exe" in "C:\test.exe") with GetModuleBaseName; o well, will read the code for the next 2 hours
_________________
Get kidnapped often.
Back to top
View user's profile Send private message
compactwater
I post too much
Reputation: 8

Joined: 02 Aug 2006
Posts: 3923

PostPosted: Wed Sep 26, 2007 1:14 am    Post subject: Reply with quote

uses psapi;

For Delphi users. Razz
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Wed Sep 26, 2007 1:46 am    Post subject: Reply with quote

compactwater wrote:
uses psapi;

For Delphi users. Razz


#include "psapi.h"


For Good programmers. Razz
Back to top
View user's profile Send private message MSN Messenger
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Wed Sep 26, 2007 2:25 am    Post subject: Reply with quote

post number ?34567 for good posts - thanks everyone, I got it!
_________________
Get kidnapped often.
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