mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 23:00:42 -07:00
Initial commit for GitHub migration based on spice2x-25-03-03
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <windows.h>
|
||||
|
||||
void libraryhook_enable(HMODULE module = nullptr);
|
||||
void libraryhook_hook_library(std::string library_name, HMODULE library_address);
|
||||
void libraryhook_hook_proc(std::string proc_name, FARPROC proc_address);
|
||||
|
||||
template<typename T>
|
||||
inline void libraryhook_hook_proc(std::string proc_name, T proc_address) {
|
||||
libraryhook_hook_proc(std::move(proc_name), reinterpret_cast<FARPROC>(proc_address));
|
||||
}
|
||||
Reference in New Issue
Block a user