Use MinHook on cpp side too (#858)

Co-authored-by: goaaats <goatsdev@protonmail.com>
This commit is contained in:
kizer 2022-05-30 00:33:57 +09:00 committed by GitHub
parent a7540d0fef
commit dbb0cb3d56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 165 additions and 64 deletions

View file

@ -25,6 +25,11 @@ namespace logging {
F = 5,
};
enum FastFailErrorCode : int {
Unspecified = 12345,
MinHookUnload,
};
void print(Level level, const char* s);
inline void print(Level level, const wchar_t* s) {
@ -59,4 +64,6 @@ namespace logging {
inline void print(const T* pcszFormat, Arg arg1, Args...args) {
print(level, std::format(pcszFormat, std::forward<Arg>(arg1), std::forward<Args>(args)...));
}
void update_dll_load_status(bool loaded);
};