From 4d048a498cfaf2eff47167714d37e11f451135de Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 23 Sep 2013 07:02:46 +0000 Subject: we don't need 16-bit processes git-svn-id: http://svn.miranda-ng.org/main/trunk@6191 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/KeyboardNotify/src/Common.h | 1 - plugins/KeyboardNotify/src/EnumProc.cpp | 27 --------------------------- 2 files changed, 28 deletions(-) (limited to 'plugins/KeyboardNotify/src') diff --git a/plugins/KeyboardNotify/src/Common.h b/plugins/KeyboardNotify/src/Common.h index f4e4f04282..71719a513f 100644 --- a/plugins/KeyboardNotify/src/Common.h +++ b/plugins/KeyboardNotify/src/Common.h @@ -23,7 +23,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include #include -#include #include #include #include diff --git a/plugins/KeyboardNotify/src/EnumProc.cpp b/plugins/KeyboardNotify/src/EnumProc.cpp index 0277bdd351..52ff37a8fb 100644 --- a/plugins/KeyboardNotify/src/EnumProc.cpp +++ b/plugins/KeyboardNotify/src/EnumProc.cpp @@ -20,8 +20,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. BOOL findFilename(TCHAR *); TCHAR *filename(TCHAR *); -BOOL WINAPI Enum16(DWORD, WORD, WORD, TCHAR *, TCHAR *, LPARAM); - // Globals extern PROCESS_LIST ProcessList; @@ -48,36 +46,11 @@ BOOL areThereProcessesRunning(void) // Search szFileName in user-defined list if (findFilename(szFileNameAux)) return TRUE; - - // Did we just bump into an NTVDM? - if (!_wcsicmp(szFileNameAux, L"NTVDM.EXE")) { - BOOL bFound = FALSE; - - // Enum the 16-bit stuff. - VDMEnumTaskWOWEx(procentry.th32ProcessID, (TASKENUMPROCEX)Enum16, (LPARAM)&bFound); - - // Did we find any user-defined process? - if (bFound) - return TRUE; - } } return FALSE; } - -BOOL WINAPI Enum16(DWORD dwThreadId, WORD hMod16, WORD hTask16, TCHAR *szModName, TCHAR *szFileName, LPARAM lpUserDefined) -{ - BOOL bRet; - BOOL *pbFound = (BOOL *)lpUserDefined; - - if ((bRet = findFilename(filename(szFileName)))) - *pbFound = TRUE; - - return bRet; -} - - BOOL findFilename(TCHAR *fileName) { for (int i=0; i < ProcessList.count; i++) -- cgit v1.2.3