IObjectSafetyImpl::SetInterfaceSafetyOptions

 

Makes the object safe for initialization or scripting by setting the m_dwCurrentSafety member to the appropriate value.

Syntax

      HRESULT SetInterfaceSafetyOptions(
   REFIID riid,
   DWORD dwOptionsSetMask,
   DWORD dwEnabledOptions 
);

Remarks

The implementation returns E_NOINTERFACE for any interface not supported by the object's implementation of IUnknown::QueryInterface.

System_CAPS_security Security Note

Any object that supports IObjectSafety is responsible for its own security, and that of any object it delegates. The programmer must take into account issues arising from running code in the user's context, cross-site scripting and perform suitable zone checking.

See IObjectSafety::SetInterfaceSafetyOptions in the Windows SDK.

Requirements

Header: atlctl.h

See Also

IObjectSafetyImpl Class
IObjectSafetyImpl::GetInterfaceSafetyOptions