2.3.4.2.2.2 REFERENCENAME Record

Specifies the name of a referenced VBA project or Automation type library.


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

Id

SizeOfName

...

Name (variable)

...

Reserved

SizeOfNameUnicode

...

NameUnicode (variable)

...

Id (2 bytes): An unsigned integer that specifies the identifier for this record. MUST be 0x0016.

SizeOfName (4 bytes): An unsigned integer that specifies the size in bytes of Name.

Name (variable): An array of SizeOfName bytes that specifies the name of the referenced VBA project or Automation type library. MUST contain MBCS characters encoded using the code page specified in PROJECTCODEPAGE Record (section 2.3.4.2.1.5). MUST NOT contain null characters. MUST conform to the following ABNF grammar:

 ReferenceName = RefProjectName / RefLibraryName
  
 RefProjectName   = VbaIdentifier
  
 RefLibraryName   = Identifier

<RefProjectName>: The name of a referenced project. <ReferenceName> MUST use the <RefProjectName> rule when the ReferenceRecord of the parent REFERENCE (section 2.3.4.2.2.1) is a REFERENCEPROJECT (section 2.3.4.2.2.6).

<RefLibraryName>: The name of a referenced Automation type library. <ReferenceName> MUST use the <RefLibraryName> rule when the ReferenceRecord of the parent REFERENCE (section 2.3.4.2.2.1) is a REFERENCECONTROL (section 2.3.4.2.2.3) or REFERENCEREGISTERED (section 2.3.4.2.2.5). <Identifier> is defined in [C706].

Reserved (2 bytes): MUST be 0x003E. MUST be ignored.

SizeOfNameUnicode (4 bytes): An unsigned integer that specifies the size in bytes of NameUnicode.

NameUnicode (variable): An array of SizeOfNameUnicode bytes that specifies the name of the referenced VBA project or Automation type library. MUST contain UTF-16 characters. MUST NOT contain null characters. MUST contain the UTF-16 encoding of Name.