Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

ICorDebugProcess Interface

Represents a process that is executing managed code.

interface ICorDebugProcess : ICorDebugController {
    HRESULT _stdcall GetID([out] unsigned long* pdwProcessId);
    HRESULT _stdcall GetHandle([out] long* phProcessHandle);
    HRESULT _stdcall GetThread(
                    [in] unsigned long dwThreadId, 
                    [out] ICorDebugThread** ppThread);
    HRESULT _stdcall EnumerateObjects([out] ICorDebugObjectEnum** ppObjects);
    HRESULT _stdcall IsTransitionStub(
                    [in] uint64 address, 
                    [out] long* pbTransitionStub);
    HRESULT _stdcall IsOSSuspended(
                    [in] unsigned long threadID, 
                    [out] long* pbSuspended);
    HRESULT _stdcall GetThreadContext(
                    [in] unsigned long threadID, 
                    [in] unsigned int contextSize, 
                    [in, out] ICorDebugProcess context);
    HRESULT _stdcall SetThreadContext(
                    [in] unsigned long threadID, 
                    [in] unsigned int contextSize, 
                    [in] ICorDebugProcess context);
    HRESULT _stdcall ReadMemory(
                    [in] uint64 address, 
                    [in] unsigned long size, 
                    [out] ICorDebugProcess buffer, 
                    [out] ULONG_PTR* read);
    HRESULT _stdcall WriteMemory(
                    [in] uint64 address, 
                    [in] unsigned long size, 
                    [in] unsigned char* buffer, 
                    [out] ULONG_PTR* written);
    HRESULT _stdcall ClearCurrentException([in] unsigned long threadID);
    HRESULT _stdcall EnableLogMessages([in] long fOnOff);
    HRESULT _stdcall ModifyLogSwitch(
                    [in] unsigned short* pLogSwitchName, 
                    [in] long lLevel);
    HRESULT _stdcall EnumerateAppDomains([out] ICorDebugAppDomainEnum** ppAppDomains);
    HRESULT _stdcall GetObject([out] ICorDebugValue** ppObject);
    HRESULT _stdcall ThreadForFiberCookie(
                    [in] unsigned long fiberCookie, 
                    [out] ICorDebugThread** ppThread);
    HRESULT _stdcall GetHelperThreadID([out] unsigned long* pThreadID);
};

Method

Description

ICorDebugProcess::ClearCurrentException Method

Clears the current unmanaged exception on the given thread.

ICorDebugProcess::EnableLogMessages Method

Enables and disables the sending of log messages to the debugger.

ICorDebugProcess::EnumerateAppDomains Method

Enumerates all of the application domains in the process.

ICorDebugProcess::EnumerateObjects Method

Not implemented.

ICorDebugProcess::GetHandle Method

Gets a handle to the process.

ICorDebugProcess::GetHelperThreadID Method

Gets the operating system (OS) thread ID for the debugger's internal helper thread.

ICorDebugProcess::GetID Method

Gets the operating system (OS) ID of the process.

ICorDebugProcess::GetObject Method

Not implemented.

ICorDebugProcess::GetThread Method

Gets the ICorDebugThread instance that has the specified OS thread ID.

ICorDebugProcess::GetThreadContext Method

Gets the context for the given thread.

ICorDebugProcess::IsOSSuspended Method

Determines whether the thread has been suspended as a result of the debugger stopping the process.

ICorDebugProcess::IsTransitionStub Method

Determines whether an address is inside a stub that will cause a transition to managed code.

ICorDebugProcess::ModifyLogSwitch Method

Sets the severity level of the specified log switch.

ICorDebugProcess::ReadMemory Method

Reads memory from the process.

ICorDebugProcess::SetThreadContext Method

Sets the context for the given thread.

ICorDebugProcess::ThreadForFiberCookie Method

Deprecated.

ICorDebugProcess::WriteMemory Method

Writes data to an area of memory in the process.

Platforms: See .NET Framework System Requirements.

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Versions: 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.