Minor BMP fix
[ail.git] / ail / module.hpp
blobed8c0afbafa91719938a8a7c63bfd894b72b6f56
1 #pragma once
3 #include <string>
4 #include <ail/environment.hpp>
5 #include <ail/windows.hpp>
7 #ifdef AIL_WINDOWS
9 namespace ail
11 class dynamic_module
13 public:
14 dynamic_module();
15 ~dynamic_module();
16 bool load(std::string const & new_path);
17 void unload();
18 bool get_function(std::string const & name, void * & output);
20 private:
21 bool is_loaded;
22 std::string path;
24 #ifdef AIL_WINDOWS
25 ::HMODULE module_handle;
26 #endif
30 #endif