GetFrontProcess

Function GetFrontProcess 

Source
pub unsafe extern "C-unwind" fn GetFrontProcess(
    p_psn: *mut ProcessSerialNumber,
) -> i16
๐Ÿ‘ŽDeprecated
Available on crate feature Processes only.
Expand description

Return the ProcessSerialNumber of the front application

DEPRECATED: Use +[NSWorkspace runningApplications] and look for the entry withisActive == YES.

Parameter pPSN: where the front application process serial number is returned

Returns: An operating system status code

ยงSafety

p_psn must be a valid pointer.