Export (0) Print
Expand All

4.2.1 Client Request Buffer

The client requests the server to set values for two properties on a Message object.

A complete ROP request buffer is a variable length sequence, with seven required bytes followed by a property value array. An example of the request buffer follows.

 0000: 0A 00 00 24 00 02 00 1F-00 3D 00 00 00 1F 00 1D
 0010: 0E 48 00 65 00 6C 00 6C-00 6F 00 20 00 57 00 6F
 0020: 00 72 00 6C 00 64 00 00-00

The first three bytes of the buffer refer to the RopId, LogonId, and InputHandleIndex fields of the RopSetProperties ROP ([MS-OXCROPS] section 2.2.8.6).

  
 0000: 0A 00 00

RopId: 0x0A (RopSetProperties)

LogonId: 0x00

InputHandleIndex: 0x00

The next four bytes refer to the PropertyValueSize and PropertyValueCount fields of the RopSetProperties ROP defined in section 2.2.5.1. For more details on property buffer format, see [MS-OXCDATA] section 2.2.3.

  
 0003:          24 00 02 00

PropertyValueSize: 0x0024. There are 36 (decimal) bytes contained in both the PropertyValueCount field and the PropertyValues field.

PropertyValueCount: 0x0002. Two properties in the property array.

The remaining bytes constitute the PropertyValues field, where each row in the array consists of property tag and value. A property tag is a 32-bit number that contains a property type in bits 0 through 15 and a unique property ID in bits 16 through 31 as shown in the following illustration.

 0007:                      1F-00 3D 00 00 00 1F 00 1D
 0010: 0E 48 00 65 00 6C 00 6C-00 6F 00 20 00 57 00 6F
 0020: 00 72 00 6C 00 64 00 00-00

Property 1 (0008: 1F 00 3D 00 00 00)

PropertyTag: 0x003D001F (PropertyId: 0x003D->PidTagSubjectPrefix, PropertyType: 0x001F-> PtypString)

PropertyValue: 0x0000 (empty string)

Property 2 (000D: 1F 00 1D 0E 48 00 65 00 6C 00 6C 00 6F 00 20 00 57 00 6F 00 72 00 6C 00 64 00 00 00)

PropertyTag: 0x0E1D001F (PropertyId: 0x0E1D->PidTagNormalizedSubject, PropertyType: 0x001F-> PtypString)

PropertyValue: 48 00 65 00 6C 00 6C 00 6F-00 20 00 57 00 6F 00 72 00 6C 00 64 00 00 00 (Hello World)

Show:
© 2016 Microsoft