build: add back clang

This commit is contained in:
Future committed 2025-04-01 19:03:59 +02:00
1 parent 0541f9d095
commit 572b71da00
11 files changed
+45 -250

No files matched your search

-15
View File
@@ -48,27 +48,12 @@ public:
HMODULE get_handle() const;
template <typename T> T get_proc(const std::string& process) const {
if (!this->is_valid())
return T{};
return reinterpret_cast<T>(GetProcAddress(this->module_, process.data()));
}
template <typename T> std::function<T> get(const std::string& process) const {
if (!this->is_valid())
return std::function<T>();
return reinterpret_cast<T*>(this->get_proc<void*>(process));
}
std::vector<PIMAGE_SECTION_HEADER> get_section_headers() const;
PIMAGE_NT_HEADERS get_nt_headers() const;
PIMAGE_DOS_HEADER get_dos_header() const;
PIMAGE_OPTIONAL_HEADER get_optional_header() const;
void** get_iat_entry(const std::string& module_name,
const std::string& proc_name) const;
private:
HMODULE module_;
};