Export (0) Print
Expand All

4.1.1 Client Request Buffer

The client request buffer for the RopCreateFolderROP ([MS-OXCROPS] section 2.2.4.2) 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 2.2.4.2.1, and the InputHandleIndex and OutputHandleIndex fields of the RopCreateFolder ROP format, as described in section 2.2.1.2.1.

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 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 2.2.1.2.1. 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 2.2.1.2.1. 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 2.2.1.2.1, 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: ""

Show:
© 2014 Microsoft