diff --git a/reactos/baseaddress.xml b/reactos/baseaddress.xml index 2c22b42473d..471d507f678 100644 --- a/reactos/baseaddress.xml +++ b/reactos/baseaddress.xml @@ -3,6 +3,7 @@ + diff --git a/reactos/lib/directory.xml b/reactos/lib/directory.xml index de0177bd75b..f1b3797e3fc 100644 --- a/reactos/lib/directory.xml +++ b/reactos/lib/directory.xml @@ -189,7 +189,7 @@ - + @@ -281,6 +281,9 @@ + + + diff --git a/reactos/lib/vdmdbg/vdmdbg.c b/reactos/lib/vdmdbg/vdmdbg.c new file mode 100644 index 00000000000..b05f431f275 --- /dev/null +++ b/reactos/lib/vdmdbg/vdmdbg.c @@ -0,0 +1,64 @@ +#include + +#define NDEBUG +#include + +HINSTANCE hDllInstance; + +BOOL WINAPI VDMBreakThread( HANDLE hProcess, + HANDLE hThread ) +{ + UNIMPLEMENTED; + return FALSE; +} + +BOOL WINAPI VDMDetectWOW( void ) +{ + UNIMPLEMENTED; + return FALSE; +} + +INT WINAPI VDMEnumProcessWOW( PROCESSENUMPROC fp, + LPARAM lparam ) +{ + UNIMPLEMENTED; + return FALSE; +} + + +INT WINAPI VDMEnumTaskWOWEx( DWORD dwProcessId, + TASKENUMPROCEX fp, + LPARAM lparam ) +{ + UNIMPLEMENTED; + return ERROR_CALL_NOT_IMPLEMENTED; +} + +BOOL WINAPI VDMTerminateTaskWOW( DWORD dwProcessId, + WORD htask ) +{ + UNIMPLEMENTED; + return FALSE; +} + +BOOL STDCALL +DllMain(IN HINSTANCE hinstDLL, + IN DWORD dwReason, + IN LPVOID lpvReserved) +{ + switch (dwReason) + { + case DLL_PROCESS_ATTACH: + hDllInstance = hinstDLL; + DisableThreadLibraryCalls(hDllInstance); + /* Don't break, initialize first thread */ + case DLL_THREAD_ATTACH: + break; + case DLL_THREAD_DETACH: + break; + case DLL_PROCESS_DETACH: + break; + } + return TRUE; +} + diff --git a/reactos/lib/vdmdbg/vdmdbg.def b/reactos/lib/vdmdbg/vdmdbg.def new file mode 100644 index 00000000000..b16b2c58b66 --- /dev/null +++ b/reactos/lib/vdmdbg/vdmdbg.def @@ -0,0 +1,56 @@ +; +; vdmdbg.def +; +; Exports for VDMDBG DLL +; +; Copyright (C) 1998 Free Software Foundation, Inc. +; Created by J.J. van der Heijden +; +; This file is part of the Windows32 API Library. +; Based on the November 1997 Platform SDK +; +; This library is free software; you can redistribute it and/or +; modify it under the terms of the GNU Library General Public +; License as published by the Free Software Foundation; either +; version 2 of the License, or (at your option) any later version. +; +; This library is distributed in the hope that it will be useful, +; but WITHOUT ANY WARRANTY; without even the implied warranty of +; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +; Library General Public License for more details. +; +; You should have received a copy of the GNU Library General Public +; License along with this library; see the file COPYING.LIB. +; If not, write to the Free Software Foundation, +; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +; +LIBRARY VDMDBG +EXPORTS +VDMBreakThread@8 +VDMDetectWOW@0 +VDMEnumProcessWOW@8 +;VDMEnumTaskWOW@12 +VDMEnumTaskWOWEx@12 +;VDMGetAddrExpression@20 +;VDMGetContext@12 +;VDMGetDbgFlags@4 +;VDMGetModuleSelector@20 +;VDMGetPointer@20 +;VDMGetSegmentInfo@16 +;VDMGetSegtablePointer@0 +;VDMGetSelectorModule@32 +;VDMGetSymbol@28 +;VDMGetThreadContext@8 +;VDMGetThreadSelectorEntry@16 +;VDMGlobalFirst@24 +;VDMGlobalNext@24 +;VDMIsModuleLoaded@4 +;VDMKillWOW@0 +;VDMModuleFirst@20 +;VDMModuleNext@20 +;VDMProcessException@4 +;VDMSetContext@12 +;VDMSetDbgFlags@8 +;VDMSetThreadContext@8 +;VDMStartTaskInWOW@12 +VDMTerminateTaskWOW@8 diff --git a/reactos/lib/vdmdbg/vdmdbg.h b/reactos/lib/vdmdbg/vdmdbg.h new file mode 100644 index 00000000000..85ba0b7fcf8 --- /dev/null +++ b/reactos/lib/vdmdbg/vdmdbg.h @@ -0,0 +1,24 @@ +#include + +ULONG DbgPrint(PCH Format,...); + +typedef BOOL ( WINAPI *PROCESSENUMPROC ) +( + DWORD dwProcessId, + DWORD dwAttributes, + LPARAM lpUserDefined +); + +typedef BOOL ( WINAPI *TASKENUMPROCEX ) +( + DWORD dwThreadId, + WORD hMod16, + WORD hTask16, + PSZ pszModName, + PSZ pszFileName, + LPARAM lpUserDefined +); + +extern HINSTANCE hDllInstance; + +/* EOF */ diff --git a/reactos/lib/vdmdbg/vdmdbg.xml b/reactos/lib/vdmdbg/vdmdbg.xml new file mode 100644 index 00000000000..cb0050c8955 --- /dev/null +++ b/reactos/lib/vdmdbg/vdmdbg.xml @@ -0,0 +1,12 @@ + + + . + + + + + ntdll + kernel32 + vdmdbg.c + vdmdbg.h +