hooklib: add GetProcAddress hooks

This commit is contained in:
2023-09-18 03:58:32 -04:00
parent c7209b932b
commit 4c413da0f1
3 changed files with 148 additions and 0 deletions

19
hooklib/procaddr.h Normal file
View File

@ -0,0 +1,19 @@
#pragma once
#include <windows.h>
#include <stdbool.h>
#include <stdint.h>
#include "hook/table.h"
struct proc_addr_table {
const char *name;
size_t nsyms;
struct hook_symbol *syms;
};
HRESULT proc_addr_table_push(
HMODULE loader_mod,
const char *target,
struct hook_symbol *syms,
size_t nsyms
);