共用方式為


IDebuggerInfo Interface

Provides methods for obtaining information about the state of the debugging services.

interface IDebuggerInfo : IUnknown {
    HRESULT IsDebuggerAttached(
        [out] BOOL *pbAttached
    );
}

Methods

Method

Description

IDebuggerInfo::IsDebuggerAttached Method

Gets a value that indicates whether a managed debugger is attached to this process.

Requirements

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

Header: MSCorEE.idl

Library: Included as a resource in MSCorEE.dll

.NET Framework Version: 2.0

See Also

Concepts

Hosting Interfaces