|
Mac OS 9
|
#include <Processes.h>
Data Fields | |
| unsigned long | processInfoLength |
| StringPtr | processName |
| ProcessSerialNumber | processNumber |
| unsigned long | processType |
| OSType | processSignature |
| unsigned long | processMode |
| Ptr | processLocation |
| unsigned long | processSize |
| unsigned long | processFreeMem |
| ProcessSerialNumber | processLauncher |
| unsigned long | processLaunchDate |
| unsigned long | processActiveTime |
| FSSpecPtr | processAppSpec |
| unsigned long | processTempMemTotal |
| unsigned long | processPurgeableTempMemTotal |
Some applications assumed the size of a ProcessInfoRec would never change, which has caused problems trying to return additional information. In the future, we will add fields to ProcessInfoExtendedRec when necessary, and callers which wish to access 'more' data than originally was present in ProcessInfoRec should allocate space for a ProcessInfoExtendedRec, fill in the processInfoLength ( and processName and processAppSpec ptrs ), then coerce this to a ProcessInfoRecPtr in the call to GetProcessInformation().