hooklib/dns.c: Add initial WinDNS hook

We'll probably need to intercept the more traditional
gethostbyname() API and friends at some point too.
This commit is contained in:
Tau
2019-09-04 13:31:55 -04:00
parent 8491aa1fec
commit 8ecbb860d8
4 changed files with 338 additions and 0 deletions

8
hooklib/dns.h Normal file
View File

@ -0,0 +1,8 @@
#pragma once
#include <windows.h>
#include <stddef.h>
HRESULT dns_hook_push(const wchar_t *from_src, const wchar_t *to_src);