Important: The information in this document is obsolete and should not be used for new development.
AEGetInteractionAllowed
You can use theAEGetInteractionAllowed
function 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
TheAEGetInteractionAllowed
function returns, in thelevel
parameter, 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 ofkAEInteractWithLocal
is returned if your application has not usedAESetInteractionAllowed
to set the interaction level explicitly.The
kAEInteractWithSelf
flag 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
kAEInteractWithLocal
flag 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 theAESetInteractionAllowed
function to set the interaction level explicitly.The
kAEInteractWithAll
flag 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