diff options
Diffstat (limited to 'shared/dllLoader.h')
-rw-r--r-- | shared/dllLoader.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/shared/dllLoader.h b/shared/dllLoader.h new file mode 100644 index 00000000..bf62b542 --- /dev/null +++ b/shared/dllLoader.h @@ -0,0 +1,40 @@ +#ifndef DLLLOADER_H_INCLUDED +#define DLLLOADER_H_INCLUDED + +#include <string> + +namespace Utility +{ + //load kernel dll functions +template <typename FunctionType> +FunctionType loadDllFunKernel(const std::string& functionName); + + + + + + + + + + + + + +//---------------Inline Implementation--------------------------------------------------- +void* loadSymbolKernel(const std::string& functionName); + +template <typename FunctionType> +inline +FunctionType loadDllFunKernel(const std::string& functionName) +{ + return reinterpret_cast<FunctionType>(loadSymbolKernel(functionName)); +} + +#ifndef FFS_WIN +use in windows build only! +#endif + +} + +#endif // DLLLOADER_H_INCLUDED |