2.9.293 SttbProtUser

The SttbProtUser structure is an STTB structure in which the strings specify the usernames of users who have different roles with respect to a protected range of content in the document.


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

fExtend (2 bytes)

cData (2 bytes)

cbExtra (2 bytes)

cchData0 (2 bytes)

Data0 (variable)

ExtraData0 (2 bytes)

cchData1 (2 bytes)

Data1 (variable)

ExtraData1 (2 bytes)

cchDatacData-1 (2 bytes)

DatacData-1 (variable)

ExtraDatacData-1 (2 bytes)

Each string is either the name of a mapped Windows user or group account that MUST be in the form "DOMAIN\NAME" or a valid e-mail address as defined in [RFC2822]. Each string in this STTB MUST be unique, and MUST have less than or equal to 255 characters. The extra data that is appended to each string of this STTB is a signed 16-bit integer that specifies the role for the username and MUST be one of the following values.

Value

Meaning

0x0000

There is no role specified for the user name.

0xFFFC

The username specifies an owner.

0xFFFB

The username specifies an editor.

The SttbProtUser structure is an STTB structure that has the following additional restrictions on its field values:

fExtend (2 bytes): This value MUST be 0xFFFF.

cbExtra (2 bytes): This value MUST be 0x0002.

cchData (2 bytes): This value MUST be less than or equal to 0x00FF.