Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Some DLLs export functions by ordinal (16-bit integer) rather than by name. To call such DLLs, you will need to use a method-level @dll.import directive to specify the ordinal. The syntax for ordinal linking is:
/** @dll.import("Libname", entrypoint="#ordinal") */
Note that ordinal is specified in decimal.
For example, to link a function exported as ordinal 82 in DLL "MyDll.DLL", you would write the following code:
/** @dll.import("MyDll", entrypoint="#82") */
public static native void MySample();