2.2.2.2 Activity Context Property

To indicate to the server that the client is running within an activity, the client MUST include an activity context property as part of the client context in an object activation request.

The policyId field of the PROPMARSHALHEADER instance ([MS-DCOM] section 2.2.20.1) for the activity context property MUST be set to guidActivityProperty, as specified in section 1.9. The CLSID field of the PROPMARSHALHEADER instance ([MS-DCOM] section 2.2.20.1) for the activity context property MUST be set to GUID_NULL. The activity context property MUST be marshaled using the OBJREF_CUSTOM format ([MS-DCOM] section 2.2.18.6), and the CLSID field of the OBJREF_CUSTOM instance MUST be set to CLSID_ActivityUnmarshal, as specified in section 1.9.

The format of the OBJREF_CUSTOM.pObjectData buffer for CLSID_ActivityUnmarshal MUST be specified as follows.


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

MaxVersion

MinVersion

ActivityID (16 bytes)

...

...

Timeout

MaxVersion (2 bytes): The major version number for this activity context property format. This field MUST be set to 0x0001.

MinVersion (2 bytes): The minor version number for this activity context property format. This field MUST be set to 0x0001.

ActivityID (16 bytes): A GUID that MUST specify the activity ID.

Timeout (4 bytes): An unsigned long that MUST specify the activity time-out in milliseconds. A value of 0xFFFFFFFF MUST be interpreted to specify an INFINITE time-out.