IObjectSafety::GetInterfaceSafetyOptionsIObjectSafety::GetInterfaceSafetyOptions*
*



Contents  *



Index  *Topic Contents
*Previous Topic: Reference
*Next Topic: IObjectSafety::SetInterfaceSafetyOptions

IObjectSafety::GetInterfaceSafetyOptions

HRESULT  GetInterfaceSafetyOptions( 
    /* [in]  */ REFIID riid,
    /* [out] */ DWORD __RPC_FAR *pdwSupportedOptions,
    /* [out] */ DWORD __RPC_FAR *pdwEnabledOptions);

Retrieves the safety options supported by an object as well as the safety options that are currently set for that object.

riid
Specifies the interface ID for a given object.
pdwSupportedOptions
Specifies the options supported for the interface identified by riid.
pdwEnabledOptions
Specifies the options currently enabled for the interface identified by riid.

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 say that it knows about INTERFACESAFE_FOR_UNTRUSTED_DATA and INTERFACESAFE_FOR_UNTRUSTED_CALLER, and is currently safe for just INTERFACESAFE_FOR_UNTRUSTED_DATA.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.