Hey everyone,
Saw this new section and I have some old sources to share with you guys. This is the first: a 'hosts' patcher. It adds an entry to the hosts file.
It supports read-only hosts files, just let the user start the keygen/patch as Administrator. It works for both x32 and x64.
Usage is simple:
Code:
bool HostsPatch(
HWND hwndDlg, //window handle (can be 0)
const char* website //website to block (without 'http://')
);
int main(int argc, char* argv[])
{
HostsPatch(0, "activation.acme.com");
return 0;
}
Feel free to use it in your keygens/patches, credit not needed, but appreciated.
Greetings,
Mr. eXoDia