IMarshalingStream::GetMarshalingContextAttribute method (objidlbase.h)

Gets information about the marshaling context.

Syntax

HRESULT GetMarshalingContextAttribute(
  [in]  CO_MARSHALING_CONTEXT_ATTRIBUTES attribute,
  [out] ULONG_PTR                        *pAttributeValue
);

Parameters

[in] attribute

The attribute to query.

[out] pAttributeValue

The value of attribute.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Each possible value of the attribute parameter is paired with the data type of the attribute this identifies.

You can query the following attributes with this method.

Attribute Values
CO_MARSHALING_SOURCE_IS_APP_CONTAINER This attribute is a boolean value, with 0 representing TRUE and nonzero representing FALSE. You can safely cast the value of the result to BOOL, but it isn't safe for the caller to cast a BOOL* to ULONG_PTR* for the pAttributeValue parameter, or for the implementation to cast pAttributeValue to BOOL* when setting it.

Requirements

Requirement Value
Minimum supported client Windows 8
Minimum supported server Windows Server 2012
Target Platform Windows
Header objidlbase.h (include Objidlbase.h)

See also

CO_MARSHALING_CONTEXT_ATTRIBUTES

IGlobalOptions

IMarshalingStream