goodbye Carbon and good riddence
From the documentation for GetProcessInformation()
You need to specify values for the processInfoLength, processName, and processAppSpec fields of the process information structure. Specify the length of the process information structure in the processInfoLength field. If you do not want information returned in the processName and processAppSpec fields, specify NULL for these fields. Otherwise, allocate at least 32 bytes of storage for the string pointed to by the processName field and, in the processAppSpec field, specify a pointer to an FSSpec structure.
Rollover Carbon, rock on OOP.
Amos Wenger said,
April 26, 2009 @ 4:21 am
===============
Special Considerations
In most cases, Mac OS X applications should use ProcessInformationCopyDictionary instead of this function.
===============
And ProcessInformationCopyDictionary (hideous name for a function) talks about “modern datatypes”. =) Just sayin’
That said, totally agreed, rock on, oop =)