IMPDEF STRUC
idRecordType db 88h ; COMENT record
idLength dw ? ; length of record
idAttribute db ? ; attributes
idClass db 0A0h ; comment class
idSubType db 01h ; IMPDEF subtype
idOrdFlag db ? ; ordinal flag
idInternalName db ? dup(?) ; imported symbol (var-length)
idModuleName db ? dup(?) ; module name (var-length)
idEntryIdent dw ? ; ordinal or name (var-length)
IMPDEF ENDS
The IMPDEF record defines one imported symbol.
idRecordType
Specifies the record type. This member must be 88h.
idLength
Specifies the length of the record.
idAttribute
Specifies the record attributes. These are as defined for the COMENT record.
idClass
Specifies the comment class. This member must be 0A0h.
idSubType
Specifies the IMPDEF subtype. This member must be 01h.
idOrdFlag
Specifies the ordinal type. If this member is zero, the imported symbol is identified by name. If nonzero, it is identified by ordinal value.
idInternalName
Contains a character string defining the imported symbol. The first byte in this member specifies the number of bytes in the character string.
idModuleName
Contains a character string defining the name of the module with the definition for the imported symbol. The first byte in this member specifies the number of bytes in the character string.
idEntryIdent
Specifies an ordinal value or the name used by the exporting module for the symbol. The content of this member depends on the idOrdFlag member as follows:
idOrdFlag | idEntryIdent |
Nonzero | 16-bit value that specifies the ordinal value for the imported symbol. |
Zero | Character string that defines the symbol corresponding to the imported symbol. The first byte in this member specifies the number of bytes in the character string. If the first byte is zero, the exported name is the same as the imported name (as given in the idInternalName member). |
Microsoft Import Library Manager (IMPLIB) creates IMPDEF records and builds an import library from a module-definition file or dynamic-link library. For more information about import libraries, see Chapter 11, “Library and Import-Library Formats.”