SetFrontProcess

Function SetFrontProcess 

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

Make the application with the given PSN into the front application, if possible.

: To make your own application frontmost, use [[NSApplication activate]. To make another application frontmost, use the activateWithOptions method of the appropriate NSRunningApplication object for that application.

Parameter pPSN: the ProcessSerialNumber of the application to be made frontmost

ยงSafety

p_psn must be a valid pointer.