This method makes an object safe for initialization or scripting.
HRESULT SetInterfaceSafetyOptions( REFIID riid, DWORD dwOptionSetMask, DWORD dwEnabledOptions );
[in] Interface identifier for the object to be made safe.
[in] Options to be changed.
[in] Settings for the options that are to be changed. This can be one of the following values.
Indicates the interface identified by riid should be made safe for scripting.
Indicates the interface identified by riid should be made safe for normal data during initialization.
A control client, such as Internet Explorer, 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.