mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
vdmdbg.dll (stubs only) by Christoph v.W. - thanks!
svn path=/trunk/; revision=18405
This commit is contained in:
parent
b1761726b2
commit
aa105de9d7
6 changed files with 161 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
<property name="BASEADDRESS_NOTIFYHOOK" value="0x08000000" />
|
<property name="BASEADDRESS_NOTIFYHOOK" value="0x08000000" />
|
||||||
<property name="BASEADDRESS_DEVENUM" value="0x35680000" />
|
<property name="BASEADDRESS_DEVENUM" value="0x35680000" />
|
||||||
<property name="BASEADDRESS_UXTHEME" value="0x5AD70000" />
|
<property name="BASEADDRESS_UXTHEME" value="0x5AD70000" />
|
||||||
|
<property name="BASEADDRESS_VDMDBG" value="0x5B0D0000" />
|
||||||
<property name="BASEADDRESS_OBJSEL" value="0x5B400000" />
|
<property name="BASEADDRESS_OBJSEL" value="0x5B400000" />
|
||||||
<property name="BASEADDRESS_DINPUT" value="0x5F580000" />
|
<property name="BASEADDRESS_DINPUT" value="0x5F580000" />
|
||||||
<property name="BASEADDRESS_HDWWIZ" value="0x64D40000" />
|
<property name="BASEADDRESS_HDWWIZ" value="0x64D40000" />
|
||||||
|
|
|
@ -189,7 +189,7 @@
|
||||||
<xi:include href="oleaut32/oleaut32.xml" />
|
<xi:include href="oleaut32/oleaut32.xml" />
|
||||||
</directory>
|
</directory>
|
||||||
<directory name="oledlg">
|
<directory name="oledlg">
|
||||||
<xi:include href="oledlg/oledlg.xml" />
|
<xi:include href="oledlg/oledlg.xml" />
|
||||||
</directory>
|
</directory>
|
||||||
<directory name="olepro32">
|
<directory name="olepro32">
|
||||||
<xi:include href="olepro32/olepro32.xml" />
|
<xi:include href="olepro32/olepro32.xml" />
|
||||||
|
@ -281,6 +281,9 @@
|
||||||
<directory name="uxtheme">
|
<directory name="uxtheme">
|
||||||
<xi:include href="uxtheme/uxtheme.xml" />
|
<xi:include href="uxtheme/uxtheme.xml" />
|
||||||
</directory>
|
</directory>
|
||||||
|
<directory name="vdmdbg">
|
||||||
|
<xi:include href="vdmdbg/vdmdbg.xml" />
|
||||||
|
</directory>
|
||||||
<directory name="version">
|
<directory name="version">
|
||||||
<xi:include href="version/version.xml" />
|
<xi:include href="version/version.xml" />
|
||||||
</directory>
|
</directory>
|
||||||
|
|
64
reactos/lib/vdmdbg/vdmdbg.c
Normal file
64
reactos/lib/vdmdbg/vdmdbg.c
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
#include <vdmdbg.h>
|
||||||
|
|
||||||
|
#define NDEBUG
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
56
reactos/lib/vdmdbg/vdmdbg.def
Normal file
56
reactos/lib/vdmdbg/vdmdbg.def
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
;
|
||||||
|
; vdmdbg.def
|
||||||
|
;
|
||||||
|
; Exports for VDMDBG DLL
|
||||||
|
;
|
||||||
|
; Copyright (C) 1998 Free Software Foundation, Inc.
|
||||||
|
; Created by J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
|
||||||
|
;
|
||||||
|
; 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
|
24
reactos/lib/vdmdbg/vdmdbg.h
Normal file
24
reactos/lib/vdmdbg/vdmdbg.h
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
#include <windows.h>
|
||||||
|
|
||||||
|
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 */
|
12
reactos/lib/vdmdbg/vdmdbg.xml
Normal file
12
reactos/lib/vdmdbg/vdmdbg.xml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<module name="vdmdbg" type="win32dll" baseaddress="${BASEADDRESS_VDMDBG}" installbase="system32" installname="vdmdbg.dll">
|
||||||
|
<importlibrary definition="vdmdbg.def" />
|
||||||
|
<include base="vdmdbg">.</include>
|
||||||
|
<define name="UNICODE" />
|
||||||
|
<define name="_UNICODE" />
|
||||||
|
<define name="__REACTOS__" />
|
||||||
|
<define name="__USE_W32API" />
|
||||||
|
<library>ntdll</library>
|
||||||
|
<library>kernel32</library>
|
||||||
|
<file>vdmdbg.c</file>
|
||||||
|
<pch>vdmdbg.h</pch>
|
||||||
|
</module>
|
Loading…
Reference in a new issue