Futurebasic/Language/Reference/getprocessinfo

= GET PROCESS INFO =

Syntax
GETPROCESSINFO index%, processName$ [PSN]

Revised
May, 2001 (Release 5)

Description
A "Process" is something that is currently running on your computer; this includes, but is not limited to things like applications, control strip extensions, and background applications.

The index parameter in this call indicates which process is to be queried. An index value of -1 means that the front process is used. This is generally the running FB application that you created.

Index values of zero or higher represent running processes. You may climb this list, examining processes as you go, until the process name comes back as a null string. At that point, you have exhausted the system's list of processes and you can quit searching.

The process serial number is an 8 byte value (2 long integers) that holds a unique value which cannot be used by any other concurrent process. You create a process serial number as follows:

The following example shows how to display a list of running processes.

DIM indx&amp; DIM ProcessName$ DIM psn as ProcessSerialNumber