Non-Windows Process ID (PID)

Linux specific forum
danielheth
New User
New User
Posts: 9
Joined: Mon Dec 01, 2014 5:12 pm
Location: Arkansas
Contact:

Non-Windows Process ID (PID)

Post 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.
User avatar
Shardik
Addict
Addict
Posts: 2067
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: Non-Windows Process ID (PID)

Post 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
danielheth
New User
New User
Posts: 9
Joined: Mon Dec 01, 2014 5:12 pm
Location: Arkansas
Contact:

Re: Non-Windows Process ID (PID)

Post by danielheth »

That worked perfectly thank you!!
Post Reply