2.9.298 StwUser

The StwUser structure specifies the names and values of the user-defined variables that are stored 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

SttbNames (variable)

rgxchNames (variable)

SttbNames (variable): An extended-character STTB that specifies the names of the variables. Each string in this STTB specifies the name of a variable. The extra data appended to each string in this STTB is a 4-byte unsigned integer that MUST be ignored. Each string in this STTB MUST be unique. The name "Sign", if it exists, SHOULD<248> specify the VBA digital signature variable. The name "SigAgile", if it exists, SHOULD<249> specify the VBA digital signature variable.


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)

Extra0 (4 bytes)

cchData1 (2 bytes)

Data1 (variable)

Extra1 (4 bytes)

cchDatacData-1 (2 bytes)

DatacData-1 (variable)

Extra cData-1 (4 bytes)

The SttbNames 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 0x0004.

rgxchValues (variable): An array of Xst elements. This array is parallel to SttbNames. Each string in this array specifies the value of the variable that is named by the corresponding string in SttbNames. The value that corresponds to the "Sign" name string in SttbNames, if it exists, SHOULD<250> be a special value that specifies the VBA digital signature of the document. The bytes of this value, including the count prefix, specify a WordSigBlob structure, as specified in [MS-OSHARED] section 2.3.2.3. The WordSignBlob MUST have the contentInfo field of the SignedData structure ([MS-OSHARED] section 2.3.2.4.1) as an SpcIndirectDataContent structure ([MS-OSHARED] section 2.3.2.4.3.1). The value that corresponds to the "SigAgile" name string in SttbNames, if exists, SHOULD<251> be a special value that specifies the VBA digital signature of the document. The bytes of this value, including the count prefix, specify a WordSigBlob structure, as specified in [MS-OSHARED] section 2.3.2.3. The WordSignBlob MUST have the contentInfo field of the SignedData structure ([MS-OSHARED] section 2.3.2.4.1) as an SpcIndirectDataContentV2 structure ([MS-OSHARED] section 2.3.2.4.3.2).