add function to properly load dependency

Change-Id: I0cec677ae19fa6525890c9b0abe0601a0c11e7df
This commit is contained in:
Artur Harasimiuk
2018-03-02 15:19:29 +01:00
committed by sys_ocldev
parent cfa9cd8040
commit 3297cd8342
4 changed files with 123 additions and 3 deletions

View File

@@ -39,6 +39,12 @@ class OsLibrary : public OCLRT::OsLibrary {
bool isLoaded();
void *getProcAddress(const std::string &procName);
protected:
HMODULE loadDependency(const std::string &dependencyFileName) const;
static decltype(&LoadLibraryExA) loadLibraryExA;
static decltype(&GetModuleFileNameA) getModuleFileNameA;
};
}
}