Compartir a través de


ICorDebugProcess

Actualización: noviembre 2007

Representa un proceso que ejecuta código administrado.

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);
};

Métodos

Método

Descripción

ICorDebugProcess::ClearCurrentException (Método)

Borra la excepción no administrada actual del subproceso especificado.

ICorDebugProcess::EnableLogMessages (Método)

Habilita y deshabilita el envío de mensajes de registro al depurador.

ICorDebugProcess::EnumerateAppDomains (Método)

Enumera todos los dominios de aplicación del proceso.

ICorDebugProcess::EnumerateObjects (Método)

Sin implementar.

ICorDebugProcess::GetHandle (Método)

Obtiene un identificador del proceso.

ICorDebugProcess::GetHelperThreadID (Método)

Obtiene el identificador de subproceso del sistema operativo (SO) para el subproceso auxiliar interno del depurador.

ICorDebugProcess::GetID (Método)

Obtiene el identificador del sistema operativo (OS) del proceso.

ICorDebugProcess::GetObject (Método)

Sin implementar.

ICorDebugProcess::GetThread (Método)

Obtiene la instancia de ICorDebugThread que tiene el identificador del subproceso de SO especificado.

ICorDebugProcess::GetThreadContext (Método)

Obtiene el contexto para el subproceso especificado.

ICorDebugProcess::IsOSSuspended (Método)

Determina si el subproceso ha sido suspendido como consecuencia de la detención del proceso por parte del depurador.

ICorDebugProcess::IsTransitionStub (Método)

Determina si una dirección está dentro de código auxiliar que provocará una transición a código administrado.

ICorDebugProcess::ModifyLogSwitch (Método)

Establece el nivel de gravedad del modificador de registro especificado.

ICorDebugProcess::ReadMemory (Método)

Lee la memoria desde el proceso.

ICorDebugProcess::SetThreadContext (Método)

Establece el contexto para el subproceso especificado.

ICorDebugProcess::ThreadForFiberCookie (Método)

En desuso.

ICorDebugProcess::WriteMemory (Método)

Escribe datos en un área de memoria del proceso.

Requisitos

Plataformas: vea Requisitos de sistema de .NET Framework.

Encabezado: CorDebug.idl

Biblioteca: CorGuids.lib

Versiones de .NET Framework: 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0

Vea también

Referencia

ICorDebug

ICorDebugProcess2

Otros recursos

Interfaces para depuración