int GetNumTasks( )
This function returns the number of tasks currently executing in the system. A task is a unique instance of a Windows application.
This function has no parameters.
The return value specifies an integer that represents the number of tasks currently executing in the system.