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 ID in Lazarus 64 bits

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

Joined: 16 Feb 2006
Posts: 786
Location: Singapore

PostPosted: Wed Nov 11, 2009 10:58 pm    Post subject: Get Process ID in Lazarus 64 bits Reply with quote

I used the normal 32 bits way is keep given me 0 or some weird no.
Same goes to the kernel32.dll, the GetProcessID is just give me 0...
Anyone have a solution?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25835
Location: The netherlands

PostPosted: Wed Nov 11, 2009 11:49 pm    Post subject: Reply with quote

Tried "GetCurrentProcessID" instead of GetProcessID ?
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
tanjiajun_34
Grandmaster Cheater
Reputation: 0

Joined: 16 Feb 2006
Posts: 786
Location: Singapore

PostPosted: Wed Nov 11, 2009 11:58 pm    Post subject: Reply with quote

It is the same?
I thought GetCurrentProcessID is own program process id?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25835
Location: The netherlands

PostPosted: Thu Nov 12, 2009 12:08 am    Post subject: Reply with quote

GetProcessId returnes the processid of a process's handle.

Best learn how to get the processid of a process first.

I prefer toolhelp32, but some people use findWindow combined with GetWindowThreadProcessId or GetProcessHandleFromHwnd (vista and later only)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
tanjiajun_34
Grandmaster Cheater
Reputation: 0

Joined: 16 Feb 2006
Posts: 786
Location: Singapore

PostPosted: Thu Nov 12, 2009 12:14 am    Post subject: Reply with quote

I tried the findwindow method already. But same 0. In delphi 32 bits is ok the coding. I got the correct 1. But in lazarus I cannot. Also, in lazarus, the toolhelp32 is it jwatlhelp32?
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