我有一个苹果事件,我需要将此事件重新发送到另一个进程。谁能告诉我怎么做?
static void GetEvent(AppleEvent *event)
{
RgnHandle cursorRgn = NULL;
Boolean gotEvent;
gotEvent = WaitNextEvent(everyEvent, event, 32767L, cursorRgn);
if (gotEvent)
// AEProcessAppleEvent(event);
}
int main(int argc, char *argv[])
{
ProcessSerialNumber psn;
AppleEvent event;
GetEvent(&event);
GetProcessForPID([childProcess processIdentifier], &psn);
}
谢谢。