IObjectSafetyImpl

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


IObjectSafetyImpl Class Members

IObjectSafety Methods
GetInterfaceSafetyOptionsRetrieves the safety options supported by the object, as well as the safety options currently set for the object.
SetInterfaceSafetyOptionsMakes the object safe for initialization or scripting.
Data Members
m_dwSafetyStores the object's current safety level.

IObjectSafetyImpl Overview


Methods


IObjectSafetyImpl::GetInterfaceSafetyOptions

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


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


Data Members


IObjectSafetyImpl::m_dwSafety

DWORD m_dwSafety;

Remarks

Stores the object's current safety level.

IObjectSafetyImpl Overview | Class Members