Share via


ICorDebugProcess2::GetThreadForTaskID Method

Gets the thread on which the task with the specified identifier is executing.

HRESULT GetThreadForTaskID (
    [in] TASKID                    taskid,
    [out] ICorDebugThread2         **ppThread
);

Parameters

Parameter Description

taskid

[in] The identifier of the task.

ppThread

[out] A pointer to the address of an ICorDebugThread2 Interface object that represents the thread to be retrieved.

Remarks

The host can set the task identifier by using the ICLRTask::SetTaskIdentifier Method method.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Version: 2.0

See Also

Reference

ICorDebugProcess2 Interface
ICorDebugProcess Interface