Compartir a través de


IObjectSafety::GetInterfaceSafetyOptions (Windows CE 5.0)

Send Feedback

This method retrieves the safety options supported by an object as well as the safety options that are currently set for that object.

HRESULT GetInterfaceSafetyOptions(REFIIDriid,DWORD*pdwSupportedOptions,DWORD*pdwEnabledOptions);

Parameters

  • riid
    [in] Interface identifier for a given object.
  • pdwSupportedOptions
    [out] Address of a DWORD containing options supported for the interface identified by riid.
  • pdwEnabledOptions
    [out] Address of a DWORD containing options currently enabled for the interface identified by riid.

Return Values

Returns S_OK if successful, or E_NOINTERFACE if the riid parameter specifies an interface that is unknown to the object.

Remarks

This method returns a set of bits in the pdwSupportedOptions parameter for each capability that the control knows about, and a set of bits in the pdwEnabledOptions parameter 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 that it is currently safe only for INTERFACESAFE_FOR_UNTRUSTED_DATA.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Objsafe.h, Objsafe.idl.
Link Library: Developer implemented.

See Also

IObjectSafety

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.