DSL
DynamicLinking.h
1 //@AUTOHEADER@BEGIN@
2 /***********************************************************************\
3 | Drift Standard Libraries v1.01 |
4 | Copyright 2010-2023 Drift Solutions / Indy Sams |
5 | Docs and more information available at https://www.driftsolutions.dev |
6 | This file released under the 3-clause BSD license, |
7 | see included DSL.LICENSE.TXT file for details. |
8 \***********************************************************************/
9 //@AUTOHEADER@END@
10 
22 #ifdef WIN32
23  #define DL_HANDLE HINSTANCE
24  #define DL_SOEXT "dll"
25 #else
26  #define DL_HANDLE HANDLE
27  #define DL_SOEXT "so"
28 #endif
29 
30 DSL_API DL_HANDLE DSL_CC DL_Open(const char * fn);
31 DSL_API DL_HANDLE DSL_CC DL_FindAndOpen(const char * fn);
32 DSL_API void * DSL_CC DL_GetAddress(DL_HANDLE hHandle, const char * name);
33 DSL_API void DSL_CC DL_Close(DL_HANDLE hHandle);
34 DSL_API const char * DSL_CC DL_LastError();
35 
DSL_API DL_HANDLE DSL_CC DL_FindAndOpen(const char *fn)
Attempts to find the named library in common library folders (c:\windows\system32 on Windows,...