次の方法で共有


ICorDebugProcess

更新 : 2007 年 11 月

マネージ コードを実行しているプロセスを表します。

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

メソッド

メソッド

説明

ICorDebugProcess::ClearCurrentException メソッド

指定したスレッドの現在のアンマネージ例外をクリアします。

ICorDebugProcess::EnableLogMessages メソッド

デバッガへのログ メッセージの送信を有効または無効にします。

ICorDebugProcess::EnumerateAppDomains メソッド

プロセスに含まれるすべてのアプリケーション ドメインを列挙します。

ICorDebugProcess::EnumerateObjects メソッド

実装されていません。

ICorDebugProcess::GetHandle メソッド

プロセスへのハンドルを取得します。

ICorDebugProcess::GetHelperThreadID メソッド

デバッガの内部ヘルパー スレッドのオペレーティング システム (OS: Operating System) スレッド ID を取得します。

ICorDebugProcess::GetID メソッド

プロセスのオペレーティング システム (OS) ID を取得します。

ICorDebugProcess::GetObject メソッド

実装されていません。

ICorDebugProcess::GetThread メソッド

指定した OS スレッド ID を持つ ICorDebugThread インスタンスを取得します。

ICorDebugProcess::GetThreadContext メソッド

指定したスレッドのコンテキストを取得します。

ICorDebugProcess::IsOSSuspended メソッド

デバッガがプロセスを停止したためにスレッドが一時停止されたかどうかを判断します。

ICorDebugProcess::IsTransitionStub メソッド

マネージ コードへの移行を発生させるスタブの内側にアドレスがあるかどうかを判断します。

ICorDebugProcess::ModifyLogSwitch メソッド

指定したログ スイッチの深刻度を設定します。

ICorDebugProcess::ReadMemory メソッド

プロセスからメモリを読み取ります。

ICorDebugProcess::SetThreadContext メソッド

指定したスレッドのコンテキストを設定します。

ICorDebugProcess::ThreadForFiberCookie メソッド

この使用は推奨されません。

ICorDebugProcess::WriteMemory メソッド

プロセス内のメモリ領域にデータを書き込みます。

必要条件

プラットフォーム : 「.NET Framework システム要件」を参照

ヘッダー : CorDebug.idl

ライブラリ : CorGuids.lib

.NET Framework のバージョン : 3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0、1.1、1.0

参照

参照

ICorDebug

ICorDebugProcess2

その他の技術情報

デバッグのインターフェイス