Share via


ICorDebugMDA::GetOSThreadId Method

Gets the operating system (OS) thread identifier upon which the managed debugging assistant (MDA) represented by ICorDebugMDA is executing.

HRESULT GetOSThreadId (
    [out] DWORD    *pOsTid
);

Parameters

  • pOsTid
    [out] A pointer to the OS thread identifier.

Remarks

The OS thread is used instead of an ICorDebugThread to allow for situations in which an MDA is fired either on a native thread or on a managed thread that has not yet entered managed code.

Requirements

Platforms: See .NET Framework System Requirements.

Header: CorDebug.idl, CorDebug.h

Library: CorGuids.lib

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

See Also

Reference

ICorDebugMDA Interface

Concepts

Diagnosing Errors with Managed Debugging Assistants