30#ifndef __CLAW_DYNAMIC_LIBRARY_TRAITS_WIN32_HPP__
31#define __CLAW_DYNAMIC_LIBRARY_TRAITS_WIN32_HPP__
59 return LoadLibrary(name.c_str());
69 return LoadLibrary(name.c_str());
92 *(FARPROC*)(&result) = GetProcAddress(h, name.c_str());
104 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.
Common interface for platform specific methods needed for using dynamic library.
This is the main namespace.