DLL_ID Language Extension

dll.h

Defines the DLL identification number.

The DLL_ID macro is used for defining the DLL indentification number. It must be followed by a 32-bit constant unsigned integer, which will be embedded in the DLL image as a part of the internal signature. For example:

DLL_ID 372331723
Later, when a program wants to load the DLL, it passes the expected ID number as a parameter to the LoadDLL function. If the expected and embedded ID numbers are not the same, the DLL is simply ignored (skipped). As LoadDLL searches through all folders for a matching DLL, it is completely legal to have several DLLs with the same name (in different folders) which differ only in their ID numbers.

DLL_ID must appear at the end of the DLL interface section, after all prototypes and global declarations, and just before the DLL_VERSION entry. See DLL_INTERFACE for a detailed layout of the DLL interface structure.


See also: DLL_INTERFACE, LoadDLL