Page 1 of 1

Non-Windows Process ID (PID)

Posted: Mon Dec 01, 2014 5:17 pm
by danielheth
I need to discover the PID for my non-windows application. There are many examples for windows, but i can't find one specific to non-windows.

Re: Non-Windows Process ID (PID)

Posted: Mon Dec 01, 2014 6:43 pm
by Shardik
These API instructions get the PID of the running process and its parent PID on Linux and MacOS X (presumably won't work in the demo version!):

Code: Select all

Debug getpid_()  ; Get PID of this process
Debug getppid_() ; Get parent PID of this process

Re: Non-Windows Process ID (PID)

Posted: Mon Dec 01, 2014 7:34 pm
by danielheth
That worked perfectly thank you!!