Files
compute-runtime/shared/source/os_interface/windows/os_library_win.h
Mateusz Hoppe 4df533f63a Use full path when loading SourceLevelDebugger library
Change-Id: I27f7ee2b8944b9890ab4b141c06e9c2f0a8dffb1
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
2020-11-01 18:18:38 +01:00

37 lines
815 B
C++

/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/os_interface/os_library.h"
#define UMDF_USING_NTSTATUS
#include "shared/source/os_interface/windows/windows_wrapper.h"
namespace NEO {
namespace Windows {
class OsLibrary : public NEO::OsLibrary {
private:
HMODULE handle;
public:
OsLibrary(const std::string &name);
~OsLibrary();
bool isLoaded();
void *getProcAddress(const std::string &procName);
static decltype(&GetSystemDirectoryA) getSystemDirectoryA;
protected:
HMODULE loadDependency(const std::string &dependencyFileName) const;
static decltype(&LoadLibraryExA) loadLibraryExA;
static decltype(&GetModuleFileNameA) getModuleFileNameA;
};
} // namespace Windows
} // namespace NEO