template< class T >
class IObjectSafetyImpl
Parameters
T Your class, derived from IObjectSafetyImpl.
The IObjectSafety interface allows a client to retrieve and set an object's safety levels. For example, a web browser may call IObjectSafety::SetInterfaceSafetyOptions to make a control safe for initialization or safe for scripting.
Class IObjectSafetyImpl provides a default implementation of IObjectSafety and implements IUnknown by sending information to the dump device in debug builds.
Related Articles ATL Tutorial, Creating an ATL Project
#include <atlctl.h>
See Also IObjectSafety in the ActiveX SDK
IObjectSafety Methods | |
GetInterfaceSafetyOptions | Retrieves the safety options supported by the object, as well as the safety options currently set for the object. |
SetInterfaceSafetyOptions | Makes the object safe for initialization or scripting. |
Data Members | |
m_dwSafety | Stores the object's current safety level. |
HRESULT GetInterfaceSafetyOptions( REFIID riid, DWORD* pdwSupportedOptions, DWORD* pdwEnabledOptions );
See IObjectSafety::GetInterfaceSafetyOptions in the ActiveX SDK.
Remarks
Retrieves the safety options supported by the object, as well as the safety options currently set for the object. If the riid parameter is not IID_IDispatch, this method returns E_NOINTERFACE.
IObjectSafetyImpl Overview | Class Members
See Also IObjectSafetyImpl::SetInterfaceSafetyOptions
HRESULT SetInterfaceSafetyOptions( REFIID riid, DWORD dwOptionsSetMask, DWORD dwEnabledOptions );
See IObjectSafety::SetInterfaceSafetyOptions in the ActiveX SDK.
Remarks
Makes the object safe for initialization or scripting. If the riid parameter is not IID_IDispatch, this method returns E_NOINTERFACE.
IObjectSafetyImpl Overview | Class Members
See Also IObjectSafetyImpl::GetInterfaceSafetyOptions
DWORD m_dwSafety;
Remarks
Stores the object's current safety level.