4.1.1 Client Request Buffer

The client request buffer for the RopCreateFolder ROP ([MS-OXCROPS] section example consists of a 26-byte sequence, formatted as follows.

 0000: 1C 00 00 01 01 01 00 00-46 00 6F 00 6C 00 64 00
 0010: 65 00 72 00 31 00 00 00-00 00

The first four bytes refer to the RopId and LogonId fields, as described in [MS-OXCROPS] section, and the InputHandleIndex and OutputHandleIndex fields of the RopCreateFolder ROP format, as described in section

 0000: 1C 00 00 01

RopId: 0x1C (RopCreateFolder ROP)

LogonId: 0x00

InputHandleIndex: 0x00. The location where the handle for the input folder is stored.

OutputHandleIndex: 0x01. The location where the handle for the newly created folder is stored.

The next four bytes contain the FolderType, UseUnicodeStrings, OpenExisting, and Reserved fields of the RopCreateFolder format, as specified in section These fields affect how the operation is carried out.

 0004: 01 01 00 00

FolderType: 0x01 (generic). The folder is a generic folder.

UseUnicodeStrings: 0x01 (TRUE). The folder name is in Unicode format.

OpenExisting: 0x00 (FALSE). The operation will fail if the folder already exists.

Reserved: 0x00 (FALSE).

The next 16 bytes contain the DisplayName field, as described in section This field is formatted as Unicode text, as indicated by the value sent in the UseUnicodeStrings field.

 0008: 46 00 6F 00 6C 00 64 00-65 00 72 00 31 00 00 00

DisplayName: "Folder1"

The Comment field, as specified in section, is sent next and, in this example, is a null-terminated string that consists of zero (0) characters and follows the same text format (Unicode) as the DisplayName field.

 0018: 00 00

Comment: ""