ReactOS  0.4.14-dev-50-g13bb5e2
vdmdbg.c File Reference
#include "vdmdbg.h"
#include <debug.h>
Include dependency graph for vdmdbg.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

BOOL WINAPI VDMBreakThread (HANDLE hProcess, HANDLE hThread)
 
DWORD WINAPI VDMGetDbgFlags (HANDLE hProcess)
 
BOOL WINAPI VDMIsModuleLoaded (LPSTR szPath)
 
ULONG WINAPI VDMGetPointer (HANDLE handle, HANDLE handle2, WORD wSelector, DWORD dwOffset, BOOL fProtMode)
 
BOOL WINAPI VDMProcessException (LPDEBUG_EVENT lpDebugEvent)
 
BOOL WINAPI VDMGetSegmentInfo (WORD word, ULONG ulong, BOOL boolVal, VDM_SEGINFO *pVDMSegInfo)
 
BOOL WINAPI VDMSetDbgFlags (HANDLE hProcess, DWORD dwFlags)
 
BOOL WINAPI VDMDetectWOW (void)
 
INT WINAPI VDMEnumTaskWOW (DWORD dword, TASKENUMPROC TaskEnumProc, LPARAM lParam)
 
BOOL WINAPI VDMStartTaskInWOW (DWORD dwProcessId, LPSTR lpCommandLine, WORD wShow)
 
BOOL WINAPI VDMKillWOW (VOID)
 
INT WINAPI VDMEnumProcessWOW (PROCESSENUMPROC ProcessEnumProc, LPARAM lParam)
 
INT WINAPI VDMEnumTaskWOWEx (DWORD dwProcessId, TASKENUMPROCEX TaskEnumProcEx, LPARAM lParam)
 
BOOL WINAPI VDMTerminateTaskWOW (DWORD dwProcessId, WORD hTask)
 
BOOL WINAPI VDMGetContext (HANDLE handle, HANDLE handle2, LPVDMCONTEXT lpVDMContext)
 
BOOL WINAPI VDMSetContext (HANDLE handle, HANDLE handle2, LPVDMCONTEXT lpVDMContext)
 
BOOL WINAPI VDMGetSelectorModule (HANDLE handle, HANDLE handle2, WORD word, PUINT punit, LPSTR lpModuleName, UINT uInt, LPSTR lpstr, UINT uInt2)
 
BOOL WINAPI VDMGetModuleSelector (HANDLE handle, HANDLE handle2, UINT uInt, LPSTR lpModuleName, LPWORD lpword)
 
BOOL WINAPI VDMModuleFirst (HANDLE handle, HANDLE handle2, LPMODULEENTRY lpModuleEntry, DEBUGEVENTPROC lpDebugEventProc, LPVOID lpvoid)
 
BOOL WINAPI VDMGlobalFirst (HANDLE handle, HANDLE handle2, LPGLOBALENTRY lpGlobalEntry, WORD word, DEBUGEVENTPROC lpDebugEventProc, LPVOID lpvoid)
 
BOOL WINAPI VDMGlobalNext (HANDLE handle, HANDLE handle2, LPGLOBALENTRY lpGlobalEntry, WORD word, DEBUGEVENTPROC lpDebugEventProc, LPVOID lpvoid)
 
BOOL WINAPI VDMModuleNext (HANDLE handle, HANDLE handle2, LPMODULEENTRY lpModuleEntry, DEBUGEVENTPROC lpDebugEventProc, LPVOID lpvoid)
 
BOOL WINAPI DllMain (IN HINSTANCE hinstDLL, IN DWORD dwReason, IN LPVOID lpvReserved)
 

Variables

HINSTANCE hDllInstance
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 3 of file vdmdbg.c.

Function Documentation

◆ DllMain()

BOOL WINAPI DllMain ( IN HINSTANCE  hinstDLL,
IN DWORD  dwReason,
IN LPVOID  lpvReserved 
)

Definition at line 195 of file vdmdbg.c.

198 {
199  switch (dwReason)
200  {
201  case DLL_PROCESS_ATTACH:
202  hDllInstance = hinstDLL;
204  /* Don't break, initialize first thread */
205  case DLL_THREAD_ATTACH:
206  break;
207  case DLL_THREAD_DETACH:
208  break;
209  case DLL_PROCESS_DETACH:
210  break;
211  }
212  return TRUE;
213 }
#define TRUE
Definition: types.h:120
#define DLL_THREAD_ATTACH
Definition: compat.h:121
HINSTANCE hDllInstance
Definition: vdmdbg.c:6
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:120
#define DLL_THREAD_DETACH
Definition: compat.h:122
DWORD dwReason
Definition: misc.cpp:154
#define DLL_PROCESS_DETACH
Definition: compat.h:119

◆ VDMBreakThread()

BOOL WINAPI VDMBreakThread ( HANDLE  hProcess,
HANDLE  hThread 
)

Definition at line 8 of file vdmdbg.c.

10 {
12  return FALSE;
13 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMDetectWOW()

BOOL WINAPI VDMDetectWOW ( void  )

Definition at line 60 of file vdmdbg.c.

61 {
63  return FALSE;
64 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMEnumProcessWOW()

INT WINAPI VDMEnumProcessWOW ( PROCESSENUMPROC  ProcessEnumProc,
LPARAM  lParam 
)

Definition at line 88 of file vdmdbg.c.

90 {
93 }
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMEnumTaskWOW()

INT WINAPI VDMEnumTaskWOW ( DWORD  dword,
TASKENUMPROC  TaskEnumProc,
LPARAM  lParam 
)

Definition at line 66 of file vdmdbg.c.

69 {
72 }
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMEnumTaskWOWEx()

INT WINAPI VDMEnumTaskWOWEx ( DWORD  dwProcessId,
TASKENUMPROCEX  TaskEnumProcEx,
LPARAM  lParam 
)

Definition at line 96 of file vdmdbg.c.

99 {
102 }
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMGetContext()

BOOL WINAPI VDMGetContext ( HANDLE  handle,
HANDLE  handle2,
LPVDMCONTEXT  lpVDMContext 
)

Definition at line 111 of file vdmdbg.c.

114 {
116  return FALSE;
117 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMGetDbgFlags()

DWORD WINAPI VDMGetDbgFlags ( HANDLE  hProcess)

Definition at line 15 of file vdmdbg.c.

16 {
19 }
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMGetModuleSelector()

BOOL WINAPI VDMGetModuleSelector ( HANDLE  handle,
HANDLE  handle2,
UINT  uInt,
LPSTR  lpModuleName,
LPWORD  lpword 
)

Definition at line 142 of file vdmdbg.c.

147 {
149  return FALSE;
150 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMGetPointer()

ULONG WINAPI VDMGetPointer ( HANDLE  handle,
HANDLE  handle2,
WORD  wSelector,
DWORD  dwOffset,
BOOL  fProtMode 
)

Definition at line 27 of file vdmdbg.c.

32 {
35 }
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMGetSegmentInfo()

BOOL WINAPI VDMGetSegmentInfo ( WORD  word,
ULONG  ulong,
BOOL  boolVal,
VDM_SEGINFO pVDMSegInfo 
)

Definition at line 43 of file vdmdbg.c.

47 {
49  return FALSE;
50 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMGetSelectorModule()

BOOL WINAPI VDMGetSelectorModule ( HANDLE  handle,
HANDLE  handle2,
WORD  word,
PUINT  punit,
LPSTR  lpModuleName,
UINT  uInt,
LPSTR  lpstr,
UINT  uInt2 
)

Definition at line 128 of file vdmdbg.c.

136 {
138  return FALSE;
139 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMGlobalFirst()

BOOL WINAPI VDMGlobalFirst ( HANDLE  handle,
HANDLE  handle2,
LPGLOBALENTRY  lpGlobalEntry,
WORD  word,
DEBUGEVENTPROC  lpDebugEventProc,
LPVOID  lpvoid 
)

Definition at line 162 of file vdmdbg.c.

168 {
170  return FALSE;
171 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMGlobalNext()

BOOL WINAPI VDMGlobalNext ( HANDLE  handle,
HANDLE  handle2,
LPGLOBALENTRY  lpGlobalEntry,
WORD  word,
DEBUGEVENTPROC  lpDebugEventProc,
LPVOID  lpvoid 
)

Definition at line 173 of file vdmdbg.c.

179 {
181  return FALSE;
182 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMIsModuleLoaded()

BOOL WINAPI VDMIsModuleLoaded ( LPSTR  szPath)

Definition at line 21 of file vdmdbg.c.

22 {
24  return FALSE;
25 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMKillWOW()

BOOL WINAPI VDMKillWOW ( VOID  )

Definition at line 82 of file vdmdbg.c.

83 {
85  return FALSE;
86 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMModuleFirst()

BOOL WINAPI VDMModuleFirst ( HANDLE  handle,
HANDLE  handle2,
LPMODULEENTRY  lpModuleEntry,
DEBUGEVENTPROC  lpDebugEventProc,
LPVOID  lpvoid 
)

Definition at line 152 of file vdmdbg.c.

157 {
159  return FALSE;
160 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMModuleNext()

BOOL WINAPI VDMModuleNext ( HANDLE  handle,
HANDLE  handle2,
LPMODULEENTRY  lpModuleEntry,
DEBUGEVENTPROC  lpDebugEventProc,
LPVOID  lpvoid 
)

Definition at line 184 of file vdmdbg.c.

189 {
191  return FALSE;
192 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMProcessException()

BOOL WINAPI VDMProcessException ( LPDEBUG_EVENT  lpDebugEvent)

Definition at line 37 of file vdmdbg.c.

38 {
40  return FALSE;
41 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMSetContext()

BOOL WINAPI VDMSetContext ( HANDLE  handle,
HANDLE  handle2,
LPVDMCONTEXT  lpVDMContext 
)

Definition at line 119 of file vdmdbg.c.

122 {
124  return FALSE;
125 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMSetDbgFlags()

BOOL WINAPI VDMSetDbgFlags ( HANDLE  hProcess,
DWORD  dwFlags 
)

Definition at line 53 of file vdmdbg.c.

55 {
57  return FALSE;
58 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMStartTaskInWOW()

BOOL WINAPI VDMStartTaskInWOW ( DWORD  dwProcessId,
LPSTR  lpCommandLine,
WORD  wShow 
)

Definition at line 74 of file vdmdbg.c.

77 {
79  return FALSE;
80 }
#define UNIMPLEMENTED
Definition: debug.h:114

◆ VDMTerminateTaskWOW()

BOOL WINAPI VDMTerminateTaskWOW ( DWORD  dwProcessId,
WORD  hTask 
)

Definition at line 104 of file vdmdbg.c.

106 {
108  return FALSE;
109 }
#define UNIMPLEMENTED
Definition: debug.h:114

Variable Documentation

◆ hDllInstance

HINSTANCE hDllInstance

Definition at line 6 of file vdmdbg.c.

Referenced by DllMain().