Function DllInfo() Foundation
Retrieves runtime information about loaded DLLs.
DllInfo( [<cDllName>|<nDllHandle>], <nDllInfo> ) --> xValue
The return value of DllInfo() depends on the second parameter and yields various information about a DLL. The following #define constants can be used for <nDllInfo>:
<nDllInfo> | Return value |
---|---|
DLL_INFO_CLASSFUNCLIST | One dimensional array holding the symbols of exported class functions as character strings |
DLL_INFO_FUNCLIST | One dimensional array holding the symbols of exported functions as character strings |
DLL_INFO_HANDLE | Numeric handle of a DLL |
DLL_INFO_IMPORTS | One dimensional array holding the handles of DLLs which are imported (linked statically) by the DLL as numerics |
DLL_INFO_LIST | One dimensional array holding the numeric handles of loaded DLLs created with Xbase++ |
DLL_INFO_LOADED | .T. (true) if DLL is loaded, otherwise .F. (false) |
DLL_INFO_NAME | Character string containing the DLL file name without path information |
DLL_INFO_PATHNAME | Character string containing the full qualified file name of DLL |
DLL_INFO_PREFIX | Function prefix of dynamically loaded DLL (see DllLoad(), second parameter) |
DLL_INFO_TYPE | Numeric corresponding to DLL_TYPE_* constants: |
- DLL_TYPE_UNKNOWN = unknown type | |
- DLL_TYPE_GENERAL = DLL not created with Xbase++ | |
- DLL_TYPE_XPP_STATIC = statically linked DLL | |
- DLL_TYPE_XPP_DYNAMIC = DLL loaded with DllLoad() | |
- DLL_TYPE_XPP_DYNAMIC_NOUNLOAD = DLL loaded by DllLoad() but cannot be unloaded | |
DLL_INFO_UNLOADABLE | .T. (true) if no function implemented in the DLL is currently being executed, otherwise .F. (false) |
DLL_INFO_USAGELIST | One dimensional array holding the symbols of currently executed functions as character strings |
The function is used to obtain various information about one or more DLL(s) created with Xbase++. This is especially useful when a program loads and unloads DLLs dynamically at runtime. The function can determine whether or not a DLL is loaded, the directory where the DLL is located or a list of exported functions contained in a DLL.
To obtain the handles of all loaded DLLs, the function is called without the first parameter and with DLL_INFO_LIST as the second parameter. The returned array contains the numeric handles of the DLLs currently being loaded. If a DLL handle is passed as first parameter along with DLL_INFO_LIST as the second parameter, DllInfo() includes into the array only the handles of this DLL and the DLLs loaded afterwards.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.