GetInterfaceSafetyOptions method

Gets the safety options supported by an object and the safety options that are currently set for that object.

Syntax


HRESULT retVal = object.GetInterfaceSafetyOptions(riid, pdwSupportedOptions, pdwEnabledOptions);

Parameters

riid [in]

Type: REFIID

An interface identifier for a given object.

pdwSupportedOptions [out]

Type: DWORD

Receives the address of a DWORD representing all the options supported 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.

pdwEnabledOptions [out]

Type: DWORD

Receives the address of a DWORD representing all the options currently enabled for the interface identified by riid.

Remarks

This method returns a set of bits in pdwSupportedOptions for each capability that the control knows about, and a set of bits in pdwEnabledOptions for each capability for which the control is currently safe. For example, a control might indicate that it knows about INTERFACESAFE_FOR_UNTRUSTED_DATA and INTERFACESAFE_FOR_UNTRUSTED_CALLER, and is currently safe for INTERFACESAFE_FOR_UNTRUSTED_DATA.

See also

IObjectSafety::SetInterfaceSafetyOptions

 

 

Show: