GetProcessInformation
process in a process information record.
PSN is a valid process serial number returned from
constant kCurrentProcess to get information about the current
process.
info is a pointer to a ProcessInfoRec which includes the application's
name as it appears in the Application menu, the type and signature of
the application, the address of the application partition, the number
of bytes in the application partition, the number of free bytes in the
application heap, the application that launched the application, the
time at which the application was launched, and the location of the
application file.
noErr (0) No error
paramErr (-50) Process serial number is invalid
specified process in a process information record.
the application's 'SIZE' resource and indicates whether the process is an
application or a desk accessory.
You need to specify values for the processInfoLength , processName , and
processAppSpec fields of the process information record. Specify the
length of the process information record in the processInfoLength field. If
you do not want information returned in the processName and
processAppSpec fields, specify NIL for these fields. Otherwise, allocate at
least 32 bytes of storage for the string pointed to by the processName field
and specify a pointer to an FSSpec record in the processAppSpec field. The process serial number you specify in the PSN parameter should be a
high-level event. You can use the constant kCurrentProcess to get
information about the current process.
at interrupt time.