Important: The information in this document is obsolete and should not be used for new development.
AEGetInteractionAllowed
You can use theAEGetInteractionAllowedfunction to get the current user interaction preferences for responding to an Apple event.
FUNCTION AEGetInteractionAllowed (VAR level: AEInteractAllowed): OSErr;
level- The current user interaction level, using the data type
AEInteractAllowed.- TYPE AEInteractAllowed = (kAEInteractWithSelf,
kAEInteractWithLocal,
kAEInteractWithAll);DESCRIPTION
TheAEGetInteractionAllowedfunction returns, in thelevelparameter, a value that indicates the user interaction preferences for responding to an Apple event. The value, set by a previous call toAESetInteractionAllowed, is one of the following flags:kAEInteractWithSelf,kAEInteractWithLocal, orkAEInteractWithAll. The default value ofkAEInteractWithLocalis returned if your application has not usedAESetInteractionAllowedto set the interaction level explicitly.The
kAEInteractWithSelfflag indicates that the server application may interact with the user in response to an Apple event only when the client application and server application are the same--that is, only when the application is sending the Apple event to itself.The
kAEInteractWithLocalflag indicates that the server application may interact with the user in response to an Apple event only if the client application is on the same computer as the server application. This is the default if your application has not used theAESetInteractionAllowedfunction to set the interaction level explicitly.The
kAEInteractWithAllflag indicates that the server application may interact with the user in response to an Apple event sent from any client application on any computer.RESULT CODE
noErr 0 No error