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;
Microsoft Windows interface for using dynamic libraries.
HMODULE handle
Type of the system handle to the library.
static void close(handle h)
Close a library.
static bool have_symbol(handle h, const std::string &name)
Tell if a symbol is in the library.
static handle open(const std::string &name)
Open a library.
static T get_symbol(handle h, const std::string &name)
Get a symbol from a library.
static handle auto_open(const std::string &name)
Open the current program.
static bool valid_handle(handle h)
Tell if an handle is a valid library handle.
This is the main namespace.
dynamic_library_traits_unix dynamic_library_traits
The traits to access the dynamic libraries in Unix system.