2.4.308 BrtBookProtection
The BrtBookProtection record specifies protection options for a workbook.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
protpwdBook |
protpwdRev |
||||||||||||||||||||||||||||||
wFlags |
protpwdBook (2 bytes): An unsigned integer that specifies the verifier value of the password required for unlocking structure and window protection for the workbook<25>.
Window protection is defined as preventing changes to the windows of the workbook such as moving, resizing, and closing windows.
Structure protection is defined as preventing changes to the structure of the workbook such as moving, deleting, hiding, unhiding, renaming sheets, inserting new sheets, and moving sheets to another workbook.
If the value of this field is 0x0000, then no password is required to remove structure and window protection. If the value is not 0x0000, then the field contains the password verifier of the password required to remove structure and window protection. The algorithm to generate the password verifier is specified in Password Verifier Algorithm (section 2.2.9).
protpwdRev (2 bytes): An unsigned integer that specifies the verifier value of the password required to unlock change tracking information for the workbook<26>.
If the value of this field is 0x0000, then no password is required to remove revision protection. If the value is not 0x0000, then the field contains the password verifier of the password required to remove revision protection. The algorithm to generate the password verifier is specified in Password Verifier Algorithm.
wFlags (2 bytes): A BookProtectionFlags (section 2.5.7) that specifies what aspects of the workbook are protected.