The %getpid() function returns the Process-ID (PID) of the calling process.
Syntax
var = %getpid()
See Also
FlashBASIC C Functions Overview
cfunction Statement