%pgetpid() Function

For Windows: Not Supported

The %pgetpid() function returns the UNIX Process-ID (PID) associated to the D3 process line.

Syntax

var = %pgetpid(line)

Description

If line is equal to -1, the PID of the current process is returned. If line is equal to -2, the PID of the flush process is returned. If the D3 process is not connected, 0 is returned.

NOTE

This function is a D3 extension. It is not part of libc.a.

Example(s)

* Get our own pid

pid=%pgetpid(system(22))

See Also

%kill() Function, FlashBASIC C Functions Overview, cfunction Statement, PID, pid Command