Joined: 16 Feb 2006 Posts: 786 Location: Singapore
Posted: Wed Nov 11, 2009 10:58 pm Post subject: Get Process ID in Lazarus 64 bits
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?
Joined: 09 May 2003 Posts: 25835 Location: The netherlands
Posted: Thu Nov 12, 2009 12:08 am Post subject:
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
Joined: 16 Feb 2006 Posts: 786 Location: Singapore
Posted: Thu Nov 12, 2009 12:14 am Post subject:
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?
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