From c687f13b312986dbd24e1ff3008d10342c9bfdd9 Mon Sep 17 00:00:00 2001 From: tnishi Date: Fri, 25 Nov 2016 18:45:09 +0900 Subject: [PATCH] =?utf8?q?WindowsNT=E5=9B=BA=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- DCHookTest/DCHookMain.cpp | 2 ++ DCHookTest/Util.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DCHookTest/DCHookMain.cpp b/DCHookTest/DCHookMain.cpp index c77ae01..dffd19d 100644 --- a/DCHookTest/DCHookMain.cpp +++ b/DCHookTest/DCHookMain.cpp @@ -74,6 +74,7 @@ __fastcall TDCHookMainForm::TDCHookMainForm(TComponent* Owner) hDll = NULL; EnablePopup = true; +#if 0 WindowsNT = false; OSVERSIONINFO VersionInfo; @@ -84,6 +85,7 @@ __fastcall TDCHookMainForm::TDCHookMainForm(TComponent* Owner) WindowsNT = true; break; } +#endif CheckWOW64(); BootUp = true; Capturing = false; diff --git a/DCHookTest/Util.cpp b/DCHookTest/Util.cpp index 3f67cef..ec8168c 100644 --- a/DCHookTest/Util.cpp +++ b/DCHookTest/Util.cpp @@ -24,7 +24,7 @@ const char *AMODI_EXE_PATH = "amodi.exe"; const char *EXMODIST_EXE_PATH = "ExMODIst.exe"; -bool WindowsNT = false; +bool WindowsNT = true; bool fWow64 = false; HWND hwndMain = NULL; -- 2.11.0