repo.or.cz
/
ail.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Minor BMP fix
[ail.git]
/
ail
/
module.hpp
blob
ed8c0afbafa91719938a8a7c63bfd894b72b6f56
1
#pragma once
2
3
#include <string>
4
#include <ail/environment.hpp>
5
#include <ail/windows.hpp>
6
7
#ifdef AIL_WINDOWS
8
9
namespace
ail
10
{
11
class
dynamic_module
12
{
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
);
19
20
private
:
21
bool
is_loaded
;
22
std
::
string path
;
23
24
#ifdef AIL_WINDOWS
25
::
HMODULE module_handle
;
26
#endif
27
};
28
}
29
30
#endif