public static extern OSErr AECreateAppleEvent (AEEventClass eventClass, AEEventID eventID, ref AEAddressDesc target, AEReturnID returnID, AETransactionID transactionID, out AppleEvent result);
public static extern OSErr AECreateAppleEvent(AEEventClass eventClass, AEEventID eventID, ref AEAddressDesc target, AEReturnID returnID, AETransactionID transactionID, out AppleEvent result);