summaryrefslogtreecommitdiff
path: root/shared/dllLoader.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:03:20 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:03:20 +0200
commit528635604eea1d8c679a3d038e2f00030ef72444 (patch)
tree9c3cbec29aa7d3e209939662e040b9342c9e7400 /shared/dllLoader.h
parent3.1 (diff)
downloadFreeFileSync-528635604eea1d8c679a3d038e2f00030ef72444.tar.gz
FreeFileSync-528635604eea1d8c679a3d038e2f00030ef72444.tar.bz2
FreeFileSync-528635604eea1d8c679a3d038e2f00030ef72444.zip
3.2
Diffstat (limited to 'shared/dllLoader.h')
-rw-r--r--shared/dllLoader.h40
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
bgstack15