From 6fa88ecbdbf43624dd49ece97296a409c8237bc0 Mon Sep 17 00:00:00 2001 From: wj32 Date: Fri, 6 Jul 2012 06:55:43 +0000 Subject: [PATCH] added clrdbg.patch git-svn-id: svn://svn.code.sf.net/p/processhacker/code@5065 21ef857c-d57f-4fe0-8362-d861dc6d29cd --- 2.x/incomplete/clrdbg.patch | 73 +++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 2.x/incomplete/clrdbg.patch diff --git a/2.x/incomplete/clrdbg.patch b/2.x/incomplete/clrdbg.patch new file mode 100644 index 000000000..de5ec9fad --- /dev/null +++ b/2.x/incomplete/clrdbg.patch @@ -0,0 +1,73 @@ +Index: plugins/DotNetTools/clrdbg.c +=================================================================== +Index: plugins/DotNetTools/clrdbg.h +=================================================================== +--- plugins/DotNetTools/clrdbg.h (revision 0) ++++ plugins/DotNetTools/clrdbg.h (working copy) +@@ -0,0 +1,66 @@ ++#ifndef CLRSUP_H ++#define CLRSUP_H ++ ++#define CINTERFACE ++#define COBJMACROS ++#include ++#include ++#undef CINTERFACE ++#undef COBJMACROS ++ ++HRESULT OpenCorDebugProcess( ++ __in HANDLE ProcessId, ++ __out ICorDebugProcess *Process ++ ); ++ ++typedef struct ++{ ++ ICorDebugDataTargetVtbl *VTable; ++ ++ ULONG RefCount; ++ ++ HANDLE ProcessId; ++ HANDLE ProcessHandle; ++ BOOLEAN IsWow64; ++} DnCorDebugDataTarget; ++ ++ICorDebugDataTarget *DnCorDebugDataTarget_Create( ++ __in HANDLE ProcessId ++ ); ++ ++HRESULT STDMETHODCALLTYPE DnCorDebugDataTarget_QueryInterface( ++ __in ICorDebugDataTarget *This, ++ __in REFIID Riid, ++ __out PVOID *Object ++ ); ++ ++ULONG STDMETHODCALLTYPE DnCorDebugDataTarget_AddRef( ++ __in ICorDebugDataTarget *This ++ ); ++ ++ULONG STDMETHODCALLTYPE DnCorDebugDataTarget_Release( ++ __in ICorDebugDataTarget *This ++ ); ++ ++HRESULT STDMETHODCALLTYPE DnCorDebugDataTarget_GetPlatform( ++ __in ICorDebugDataTarget *This, ++ __out CorDebugPlatform *pTargetPlatform ++ ); ++ ++HRESULT STDMETHODCALLTYPE DnCorDebugDataTarget_ReadVirtual( ++ __in ICorDebugDataTarget *This, ++ __in CORDB_ADDRESS address, ++ __out BYTE *pBuffer, ++ __in ULONG32 bytesRequested, ++ __out ULONG32 *pBytesRead ++ ); ++ ++HRESULT STDMETHODCALLTYPE DnCorDebugDataTarget_GetThreadContext( ++ __in ICorDebugDataTarget *This, ++ __in DWORD dwThreadID, ++ __in ULONG32 contextFlags, ++ __in ULONG32 contextSize, ++ __out BYTE *pContext ++ ); ++ ++#endif