CGEventTapCreateForPid

Function CGEventTapCreateForPid 

Source
pub unsafe extern "C-unwind" fn CGEventTapCreateForPid(
    pid: pid_t,
    place: CGEventTapPlacement,
    options: CGEventTapOptions,
    events_of_interest: CGEventMask,
    callback: CGEventTapCallBack,
    user_info: *mut c_void,
) -> Option<CFRetained<CFMachPort>>
👎Deprecated: renamed to CGEvent::tap_create_for_pid
Available on crate features CGEvent and CGEventTypes and libc only.