IMarshalingStream::GetMarshalingContextAttribute method

Gets information about the marshaling context.

Syntax


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

Parameters

attribute [in]

The attribute to query.

pAttributeValue [out]

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.

AttributeValues

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

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Objidlbase.h

IDL

Objidlbase.idl

See also

IMarshalingStream
CO_MARSHALING_CONTEXT_ATTRIBUTES
IGlobalOptions

 

 

Community Additions

ADD
Show:
© 2015 Microsoft