Process Hacker
clrsup.c File Reference
#include "dn.h"
#include "clrsup.h"

Go to the source code of this file.

Functions

PCLR_PROCESS_SUPPORT CreateClrProcessSupport (_In_ HANDLE ProcessId)
 
VOID FreeClrProcessSupport (_In_ PCLR_PROCESS_SUPPORT Support)
 
PPH_STRING GetRuntimeNameByAddressClrProcess (_In_ PCLR_PROCESS_SUPPORT Support, _In_ ULONG64 Address, _Out_opt_ PULONG64 Displacement)
 
PPH_STRING GetNameXClrDataAppDomain (_In_ PVOID AppDomain)
 
PVOID LoadMscordacwks (_In_ BOOLEAN IsClrV4)
 
HRESULT CreateXCLRDataProcess (_In_ HANDLE ProcessId, _In_ ICLRDataTarget *Target, _Out_ struct IXCLRDataProcess **DataProcess)
 
ICLRDataTarget * DnCLRDataTarget_Create (_In_ HANDLE ProcessId)
 
HRESULT STDMETHODCALLTYPE DnCLRDataTarget_QueryInterface (_In_ ICLRDataTarget *This, _In_ REFIID Riid, _Out_ PVOID *Object)
 
ULONG STDMETHODCALLTYPE DnCLRDataTarget_AddRef (_In_ ICLRDataTarget *This)
 
ULONG STDMETHODCALLTYPE DnCLRDataTarget_Release (_In_ ICLRDataTarget *This)
 
HRESULT STDMETHODCALLTYPE DnCLRDataTarget_GetMachineType (_In_ ICLRDataTarget *This, _Out_ ULONG32 *machineType)
 
HRESULT STDMETHODCALLTYPE DnCLRDataTarget_GetPointerSize (_In_ ICLRDataTarget *This, _Out_ ULONG32 *pointerSize)
 
BOOLEAN NTAPI PhpGetImageBaseCallback (_In_ PLDR_DATA_TABLE_ENTRY Module, _In_opt_ PVOID Context)
 
HRESULT STDMETHODCALLTYPE DnCLRDataTarget_GetImageBase (_In_ ICLRDataTarget *This, _In_ LPCWSTR imagePath, _Out_ CLRDATA_ADDRESS *baseAddress)
 
HRESULT STDMETHODCALLTYPE DnCLRDataTarget_ReadVirtual (_In_ ICLRDataTarget *This, _In_ CLRDATA_ADDRESS address, _Out_ BYTE *buffer, _In_ ULONG32 bytesRequested, _Out_ ULONG32 *bytesRead)
 
HRESULT STDMETHODCALLTYPE DnCLRDataTarget_WriteVirtual (_In_ ICLRDataTarget *This, _In_ CLRDATA_ADDRESS address, _In_ BYTE *buffer, _In_ ULONG32 bytesRequested, _Out_ ULONG32 *bytesWritten)
 
HRESULT STDMETHODCALLTYPE DnCLRDataTarget_GetTLSValue (_In_ ICLRDataTarget *This, _In_ ULONG32 threadID, _In_ ULONG32 index, _Out_ CLRDATA_ADDRESS *value)
 
HRESULT STDMETHODCALLTYPE DnCLRDataTarget_SetTLSValue (_In_ ICLRDataTarget *This, _In_ ULONG32 threadID, _In_ ULONG32 index, _In_ CLRDATA_ADDRESS value)
 
HRESULT STDMETHODCALLTYPE DnCLRDataTarget_GetCurrentThreadID (_In_ ICLRDataTarget *This, _Out_ ULONG32 *threadID)
 
HRESULT STDMETHODCALLTYPE DnCLRDataTarget_GetThreadContext (_In_ ICLRDataTarget *This, _In_ ULONG32 threadID, _In_ ULONG32 contextFlags, _In_ ULONG32 contextSize, _Out_ BYTE *context)
 
HRESULT STDMETHODCALLTYPE DnCLRDataTarget_SetThreadContext (_In_ ICLRDataTarget *This, _In_ ULONG32 threadID, _In_ ULONG32 contextSize, _In_ BYTE *context)
 
HRESULT STDMETHODCALLTYPE DnCLRDataTarget_Request (_In_ ICLRDataTarget *This, _In_ ULONG32 reqCode, _In_ ULONG32 inBufferSize, _In_ BYTE *inBuffer, _In_ ULONG32 outBufferSize, _Out_ BYTE *outBuffer)
 

Function Documentation

PCLR_PROCESS_SUPPORT CreateClrProcessSupport ( _In_ HANDLE  ProcessId)

Definition at line 47 of file clrsup.c.

HRESULT CreateXCLRDataProcess ( _In_ HANDLE  ProcessId,
_In_ ICLRDataTarget *  Target,
_Out_ struct IXCLRDataProcess **  DataProcess 
)

Definition at line 219 of file clrsup.c.

ULONG STDMETHODCALLTYPE DnCLRDataTarget_AddRef ( _In_ ICLRDataTarget *  This)

Definition at line 330 of file clrsup.c.

ICLRDataTarget* DnCLRDataTarget_Create ( _In_ HANDLE  ProcessId)

Definition at line 278 of file clrsup.c.

HRESULT STDMETHODCALLTYPE DnCLRDataTarget_GetCurrentThreadID ( _In_ ICLRDataTarget *  This,
_Out_ ULONG32 *  threadID 
)

Definition at line 511 of file clrsup.c.

HRESULT STDMETHODCALLTYPE DnCLRDataTarget_GetImageBase ( _In_ ICLRDataTarget *  This,
_In_ LPCWSTR  imagePath,
_Out_ CLRDATA_ADDRESS *  baseAddress 
)

Definition at line 416 of file clrsup.c.

HRESULT STDMETHODCALLTYPE DnCLRDataTarget_GetMachineType ( _In_ ICLRDataTarget *  This,
_Out_ ULONG32 *  machineType 
)

Definition at line 361 of file clrsup.c.

HRESULT STDMETHODCALLTYPE DnCLRDataTarget_GetPointerSize ( _In_ ICLRDataTarget *  This,
_Out_ ULONG32 *  pointerSize 
)

Definition at line 380 of file clrsup.c.

HRESULT STDMETHODCALLTYPE DnCLRDataTarget_GetThreadContext ( _In_ ICLRDataTarget *  This,
_In_ ULONG32  threadID,
_In_ ULONG32  contextFlags,
_In_ ULONG32  contextSize,
_Out_ BYTE *  context 
)

Definition at line 519 of file clrsup.c.

HRESULT STDMETHODCALLTYPE DnCLRDataTarget_GetTLSValue ( _In_ ICLRDataTarget *  This,
_In_ ULONG32  threadID,
_In_ ULONG32  index,
_Out_ CLRDATA_ADDRESS *  value 
)

Definition at line 491 of file clrsup.c.

HRESULT STDMETHODCALLTYPE DnCLRDataTarget_QueryInterface ( _In_ ICLRDataTarget *  This,
_In_ REFIID  Riid,
_Out_ PVOID *  Object 
)

Definition at line 310 of file clrsup.c.

HRESULT STDMETHODCALLTYPE DnCLRDataTarget_ReadVirtual ( _In_ ICLRDataTarget *  This,
_In_ CLRDATA_ADDRESS  address,
_Out_ BYTE *  buffer,
_In_ ULONG32  bytesRequested,
_Out_ ULONG32 *  bytesRead 
)

Definition at line 446 of file clrsup.c.

ULONG STDMETHODCALLTYPE DnCLRDataTarget_Release ( _In_ ICLRDataTarget *  This)

Definition at line 341 of file clrsup.c.

HRESULT STDMETHODCALLTYPE DnCLRDataTarget_Request ( _In_ ICLRDataTarget *  This,
_In_ ULONG32  reqCode,
_In_ ULONG32  inBufferSize,
_In_ BYTE *  inBuffer,
_In_ ULONG32  outBufferSize,
_Out_ BYTE *  outBuffer 
)

Definition at line 565 of file clrsup.c.

HRESULT STDMETHODCALLTYPE DnCLRDataTarget_SetThreadContext ( _In_ ICLRDataTarget *  This,
_In_ ULONG32  threadID,
_In_ ULONG32  contextSize,
_In_ BYTE *  context 
)

Definition at line 555 of file clrsup.c.

HRESULT STDMETHODCALLTYPE DnCLRDataTarget_SetTLSValue ( _In_ ICLRDataTarget *  This,
_In_ ULONG32  threadID,
_In_ ULONG32  index,
_In_ CLRDATA_ADDRESS  value 
)

Definition at line 501 of file clrsup.c.

HRESULT STDMETHODCALLTYPE DnCLRDataTarget_WriteVirtual ( _In_ ICLRDataTarget *  This,
_In_ CLRDATA_ADDRESS  address,
_In_ BYTE *  buffer,
_In_ ULONG32  bytesRequested,
_Out_ ULONG32 *  bytesWritten 
)

Definition at line 480 of file clrsup.c.

VOID FreeClrProcessSupport ( _In_ PCLR_PROCESS_SUPPORT  Support)

Definition at line 73 of file clrsup.c.

PPH_STRING GetNameXClrDataAppDomain ( _In_ PVOID  AppDomain)

Definition at line 141 of file clrsup.c.

PPH_STRING GetRuntimeNameByAddressClrProcess ( _In_ PCLR_PROCESS_SUPPORT  Support,
_In_ ULONG64  Address,
_Out_opt_ PULONG64  Displacement 
)

Definition at line 81 of file clrsup.c.

PVOID LoadMscordacwks ( _In_ BOOLEAN  IsClrV4)

Definition at line 182 of file clrsup.c.

BOOLEAN NTAPI PhpGetImageBaseCallback ( _In_ PLDR_DATA_TABLE_ENTRY  Module,
_In_opt_ PVOID  Context 
)

Definition at line 399 of file clrsup.c.