pub unsafe extern "C-unwind" fn GetNextProcess(
p_psn: *mut ProcessSerialNumber,
) -> i16Processes only.Expand description
Return the process serial number following the given process
DEPRECATED: Use +[NSWorkspace runningApplications:] which returns the full array of all running applications. If this function is called with the process serial number where { .highLongOfPSN = 0, .lowLongOfPSN = 0 }, this return the process serial number of the first application. If called with a valid process serial number, it returns the next higher application, or procNotFound when the last process serial number has been returned.
Parameter pPSN: On input, a process serial number; on exit, the next process serial number or { 0, 0 }
Returns: An operating system status code. procNotFound signal the previous item was the last application in the array of running applications.
ยงSafety
p_psn must be a valid pointer.