EXPORTS exportdefinitions
This statement defines the names and attributes of the functions exported to other modules and of the functions that run with I/O privilege.
Note: The term export refers to the process of making a function available to other run-time modules. By default, functions are hidden from other modules at run time.
Normally, the EXPORTS statement is meaningful only for functions within dynamic-link libraries and for functions that execute with I/O privilege.
The EXPORTS keyword marks the beginning of the export definitions. Each definition is entered on a separate line. You need to give an export definition for each dynamic-link routine you want to make available to other modules.
Export-Definition Syntax
entryname [=internalname] [@ord[RESIDENTNAME]] [pwords]
<entryname>
Example
EXPORTS SampleRead = read2bin @8 StringIn = str1 @4 RESIDENTNAME CharTest 6
This example defines three export functions:
The first two functions can be accessed either by their exported names or by an ordinal number. Note that in the module's own source code, these functions are actually defined as read2bin and str1, respectively. The last function runs with I/O privilege and therefore is given with the total size of the parameters - six words.