Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns whether an object is safe for initialization or scripting, as specified.
HRESULT retVal = object.SetInterfaceSafetyOptions(riid, dwOptionSetMask, dwEnabledOptions);
riid [in]
Type: REFIID
An interface identifier for the object to be made safe.
dwOptionSetMask [in]
Type: DWORD
A mask representing the options to be validated.
dwEnabledOptions [in]
Type: DWORD
A DWORD representing all the options currently enabled for the interface identified by riid. This can be one or more of the following values.
INTERFACESAFE_FOR_UNTRUSTED_CALLER
Indicates that the caller of the interface identified by riid might be untrusted.
INTERFACESAFE_FOR_UNTRUSTED_DATA
Indicates that the data passed into the interface identified by riid might be untrusted.
INTERFACE_USES_DISPEX
Indicates that the caller of the interface identified by riid knows to use IDispatchEx.
INTERFACE_USES_SECURITY_MANAGER
Indicates that the data passed into the interface identified by riid knows to use IInternetHostSecurityManager.
Typically, a control client calls this method prior to loading a control to determine whether the control is safe for scripting or initialization. If this method returns E_FAIL, its client displays the user interface for the user to confirm whether the action should be allowed.