30 #ifndef __CLAW_DYNAMIC_LIBRARY_TRAITS_WIN32_HPP__ 31 #define __CLAW_DYNAMIC_LIBRARY_TRAITS_WIN32_HPP__ 60 return LoadLibrary( name.c_str() );
71 return LoadLibrary( name.c_str() );
96 *(FARPROC*)(&result) = GetProcAddress( h, name.c_str() );
109 return GetProcAddress( h, name.c_str() ) != NULL;
127 #endif // __CLAW_DYNAMIC_LIBRARY_TRAITS_WIN32_HPP__ dynamic_library_traits_unix dynamic_library_traits
The traits to access the dynamic libraries in Unix system.
static void close(handle h)
Close a library.
static handle open(const std::string &name)
Open a library.
static bool have_symbol(handle h, const std::string &name)
Tell if a symbol is in the library.
static bool valid_handle(handle h)
Tell if an handle is a valid library handle.
static handle auto_open(const std::string &name)
Open the current program.
Microsoft Windows interface for using dynamic libraries.
This is the main namespace.
static T get_symbol(handle h, const std::string &name)
Get a symbol from a library.
HMODULE handle
Type of the system handle to the library.