port new code from other projects, minor fixes, bump ver

This commit is contained in:
zeffy
2017-08-17 15:49:44 -07:00
parent 370fe4b242
commit 5d99c1481f
19 changed files with 475 additions and 445 deletions

View File

@@ -1,20 +1,23 @@
#include <Windows.h>
#include "core.h"
#include "util.h"
#include "helpers.h"
#include "logging.h"
#include "hooks.h"
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
switch (ul_reason_for_call) {
case DLL_PROCESS_ATTACH:
{
if (!IsOperatingSystemSupported() || IsWow64()) {
if (!IsOperatingSystemSupported() || IsWow64())
return FALSE;
}
DisableThreadLibraryCalls(hModule);
HANDLE hThread = CreateThread(NULL, 0, NewThreadProc, NULL, 0, NULL);
CloseHandle(hThread);
break;
}
case DLL_PROCESS_DETACH:
logging_free();
break;
default:
break;