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++] Please how to get PID from Process Name ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ASSINISS
How do I cheat?
Reputation: 0

Joined: 11 Jul 2013
Posts: 5

PostPosted: Sun Jul 28, 2013 3:14 am    Post subject: [C++] Please how to get PID from Process Name ? Reply with quote

please any example how to make it thx.
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: Sun Jul 28, 2013 5:10 am    Post subject: Reply with quote

You can accomplish this using the tool help functions or PSAPI:

Using the toolhelp API:
- CreateToolhelp32Snapshot
- Process32First
- Process32Next

See example here:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms686701(v=vs.85).aspx

Or by using PSAPI:
EnumProcesses
EnumProcessModules

See example here:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms682623(v=vs.85).aspx

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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