GNU Info

Info Node: (nasm.info)Section 6.2.4

(nasm.info)Section 6.2.4


Next: Section 6.2.5 Prev: Section 6.2.3 Up: Section 6.2
Enter node , (file) or (file)node

6.2.4. `IMPORT': Importing DLL Symbols
--------------------------------------

   The `IMPORT' format-specific directive defines a symbol to be
imported from a DLL, for use if you are writing a DLL's import library
in NASM. You still need to declare the symbol as `EXTERN' as well as
using the `IMPORT' directive.

   The `IMPORT' directive takes two required parameters, separated by
white space, which are (respectively) the name of the symbol you wish to
import and the name of the library you wish to import it from. For
example:

         import  WSAStartup wsock32.dll

   A third optional parameter gives the name by which the symbol is
known in the library you are importing it from, in case this is not the
same as the name you wish the symbol to be known by to your code once
you have imported it. For example:

         import  asyncsel wsock32.dll WSAAsyncSelect


automatically generated by info2www version 1.2.2.9