About 248 results
Open links in new tab
  1. Module-Definition (.Def) Files | Microsoft Learn

    Aug 3, 2021 · Module-definition (.def) files provide the linker with information about exports, attributes, and other information about the program to be linked. A .def file is most useful when building a DLL. …

  2. Rules for Module-Definition Statements | Microsoft Learn

    Aug 3, 2021 · The following syntax rules apply to all statements in a .def file. Other rules that apply to specific statements are described with each statement. Statements, attribute keywords, and user …

  3. /DEF (Specify module-definition file) | Microsoft Learn

    Mar 31, 2025 · The /DEF linker option passes a module-definition file (.def) to the linker. Only one .def file can be specified to LINK. For details about .def files, see Module-definition files. To specify a .def …

  4. Exporting from a DLL Using DEF Files | Microsoft Learn

    Nov 4, 2025 · A module-definition or DEF file (*.def) is a text file containing one or more module statements that describe various attributes of a DLL. If you are not using the __declspec(dllexport) …

  5. Importing and Exporting | Microsoft Learn

    Jun 24, 2025 · A module-definition (.def) file is a text file containing one or more module statements that describe various attributes of a DLL. If you do not use __declspec(dllimport) or __declspec(dllexport) …

  6. Importing Using DEF Files | Microsoft Learn

    Nov 4, 2025 · Learn more about: Importing Using DEF Files Using CONSTANT is more risky because if you forget to use the extra level of indirection, you could potentially access the import address table's …

  7. Exporting from a DLL | Microsoft Learn

    Jun 24, 2025 · Create a module definition (.def) file and use the .def file when building the DLL. Use this approach if you want to export functions from your DLL by ordinal rather than by name. Use the …

  8. Exporting Functions from a DLL by Ordinal Rather Than by Name

    Jun 24, 2025 · The simplest way to export functions from your DLL is to export them by name. This is what happens when you use __declspec(dllexport), for example. But you can instead export …

  9. .Def Files as Linker Input | Microsoft Learn

    Aug 3, 2021 · See Module-definition (.def) files for more information. Use the /DEF option to specify the .def file name.

  10. Building an Import Library and Export File | Microsoft Learn

    Aug 3, 2021 · To build an import library and export file, use the following syntax: LIB /DEF [:deffile] [options] [objfiles] [libraries] When /DEF is specified, LIB creates the output files from export …

  11. Dynamic link library (DLL) - Windows Client | Microsoft Learn

    Feb 12, 2026 · To export DLL functions, you can either add a function keyword to the exported DLL functions or create a module definition (.def) file that lists the exported DLL functions.