Importing routines from DLLs by ordinal number


  Importing routines from DLLs by ordinal number

When you import a routine from a DLL with an index clause present, the procedure or function is imported by ordinal.

Importing by ordinal reduces the load time of the module, because Windows does not have to look up the name in the DLL's name table.


Here, the ImportByOrdinal procedure is imported as the fifth entry point in the DLL called TESTLIB:

   procedure ImportByOrdinal; external 'TESTLIB' index 5;

Тэги: DLLs Imports
| G+
Код для вставки: :: :: :: ::
Поделиться: // //