2.3.1.15 ProjectProtectionState

Specifies whether access to the VBA project was restricted by the user, the VBA host application, or the VBA project editor.

ABNF syntax:

 ProjectProtectionState   = "CMG=" DQUOTE EncryptedState DQUOTE NWLN
  
 EncryptedState           = 22*28HEXDIG

<EncryptedState>: Specifies whether access to the VBA project was restricted by the user, the VBA host application, or the VBA project editor, obfuscated by Data Encryption (section 2.4.3.2).

The Data parameter for Data Encryption (section 2.4.3.2) SHOULD be four bytes that specify the protection state of the VBA project. MAY<5> be 0x00000000. The Length parameter for Data Encryption (section 2.4.3.2) MUST be 4.

Values for Data are defined by the following bits:


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

A

B

C

Reserved

A - fUserProtected (1 bit): Specifies whether the user elected to protect the VBA project.

B - fHostProtected (1 bit): Specifies whether the VBA host application elected to protect the VBA project.

C - fVBEProtected (1 bit): Specifies whether the VBA project editor elected to protect the VBA project.

Reserved (29 bits): MUST be 0. MUST be ignored.