Share this page 

Get the application PIDTag(s): WinAPI/Registry

The PID (process identifier) is a number assigned by the OS for a running process. You can view the allowed PIDs through the Task List on NT. This number can be useful to kill a process with a suitable utility.
[local external function declaration]
FUNCTION long GetCurrentProcessId  (  )  LIBRARY "kernel32.dll"
long ll_pid
ll_pid = GetCurrentProcessId() 
messagebox("PID" , string(ll_pid))