OBJREF_CUSTOM structure MUST be set to IID_IContext (see section 1.9). An implementation MAY use this value as the IID of an interface with the local IDL attribute (section 2.2.27).<13> An envoy context. An application or a higher-layer protocol may instruct a DCOM server to send this type of context (1) when marshaling an object. The envoy context is sent in the Data field of the ElmArray field (section ) of an structure (section 2.2.18.7). 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 MajorVersion MinVersion ContextId (16 bytes) ... ... Flags Reserved dwNumExtents cbExtents MshlFlags Count Frozen PropMarshalHeader (variable) ... MajorVersion (2 bytes): The major version of this context marshaled format. This MUST be set to 0x0001. MinVersion (2 bytes): The minor version of this context (1) marshaled format. This MUST be set to 0x0001. ContextId (16 bytes): A GUID identifying the marshaled context (1). Flags (4 bytes): This MUST be set to the following value. Value Meaning CTXMSHLFLAGS_BYVAL The context is marshaled by value (this is the only representation that is valid on the wire). 0x00000002 Reserved (4 bytes): This MUST be set to 0x00000000 and MUST be ignored on receipt. dwNumExtents (4 bytes): This MUST be set to 0x00000000.
OBJREF_CUSTOM structure MUST be set to IID_IContext (see section 1.9). An implementation MAY use this value as the IID of an interface with the local IDL attribute (section 2.2.27).<13> An envoy context. An application or a higher-layer protocol may instruct a DCOM server to send this type of context (1) when marshaling an object. The envoy context is sent in the Data field of the ElmArray field (section ) of an structure (section 2.2.18.7). 0 1 2 3 4 5 6 7 8 9 1 0 1 2 3 4 5 6 7 8 9 2 0 1 2 3 4 5 6 7 8 9 3 0 1 MajorVersion MinVersion ContextId (16 bytes) ... ... Flags Reserved dwNumExtents cbExtents MshlFlags Count Frozen PropMarshalHeader (variable) ... MajorVersion (2 bytes): The major version of this context marshaled format. This MUST be set to 0x0001. MinVersion (2 bytes): The minor version of this context (1) marshaled format. This MUST be set to 0x0001. ContextId (16 bytes): A GUID identifying the marshaled context (1). Flags (4 bytes): This MUST be set to the following value. Value Meaning CTXMSHLFLAGS_BYVAL 0x00000002 The context is marshaled by value (this is the only representation that is valid on the wire). Reserved (4 bytes): This MUST be set to 0x00000000 and MUST be ignored on receipt. dwNumExtents (4 bytes): This MUST be set to 0x00000000.