0
mach_msg
을 사용하여 windowserver에 일부 mach 메시지를 보냅니다. 그러나 windowserver 중 msg.msgh_remote_port
을 모르겠습니다. , 내가 가정하고 CoreGraphics.Frameworkwindowserver에 기계 메시지를 보내는 방법
thks
mach_msg
을 사용하여 windowserver에 일부 mach 메시지를 보냅니다. 그러나 windowserver 중 msg.msgh_remote_port
을 모르겠습니다. , 내가 가정하고 CoreGraphics.Frameworkwindowserver에 기계 메시지를 보내는 방법
thks
일부 기능 같은 _XSetGlobalForceConfig
를 호출 할 수 있도록 내가, windowserver의 REMOTE_PORT를 얻을 수
당신은 당신이 원하는 프로세스의 서비스 이름을 알고 연결하려면 bootstrap_look_up
을 호출하여 포트를 조회 할 수 있습니다.
10.10부터는 launchd 소스를 더 이상 사용할 수 없지만 헤더가 여전히 10.9 here에 있습니다.
고맙습니다. :) 시도해 보겠습니다. –