The .DEF file exports entry-point functions, as shown in the following example taken from the MSSB16.DEF file:
LIBRARY MSSB16
DESCRIPTION 'wave,aux,mixer:Creative Labs Sound Blaster 16 Driver'
EXETYPE WINDOWS
PROTMODE
CODE MOVEABLE DISCARDABLE LOADONCALL
DATA FIXED SINGLE PRELOAD
SEGMENTS _TEXT FIXED PRELOAD
WEP_TEXT FIXED PRELOAD
INIT MOVEABLE DISCARDABLE PRELOAD
COMMON MOVEABLE DISCARDABLE PRELOAD
MIXER MOVEABLE DISCARDABLE PRELOAD
WAVE MOVEABLE DISCARDABLE PRELOAD
HEAPSIZE 2048
EXPORTS WEP @1 RESIDENTNAME
DriverProc @2 RESIDENTNAME
wodMessage @3 RESIDENTNAME
widMessage @4 RESIDENTNAME
auxMessage @5 RESIDENTNAME
mxdMessage @6 RESIDENTNAME
For more information about the entry-point function listed in this example, see .
In this example, functions are exported by ordinal. The actual ordinal values you assign to each exported function are not significant, though each must be unique within the DLL.