IDiaEnumDebugStreams

枚举各种调试在数据源中包含的流。

IDiaEnumDebugStreams : IUnknown

方法按 Vtable 顺序

下表显示 IDiaEnumDebugStreams方法。

方法

说明

IDiaEnumDebugStreams::get__NewEnum

检索此枚举器的 IEnumVARIANT 版本。

IDiaEnumDebugStreams::get_Count

检索数字调试流。

IDiaEnumDebugStreams::Item

通过索引检索调试流。

IDiaEnumDebugStreams::Next

检索一个指定数量的调试在枚举序列的流。

IDiaEnumDebugStreams::Skip

跳过一个指定数量的调试在枚举序列的流。

IDiaEnumDebugStreams::Reset

重置枚举序列与开头。

IDiaEnumDebugStreams::Clone

创建包含枚举状态和枚举当前枚举数相同的枚举数。

备注

目录调试流是实现依赖的,并且数据格式是否未记录的。

调用方的说明

调用 IDiaSession::getEnumDebugStreams 方法获取 IDiaEnumDebugStreams 对象。

示例

此示例演示如何访问数据流可从此接口。为 PrintStreamData 函数的实现参见 IDiaEnumDebugStreamData 接口。

void DumpAllDebugStreams( IDiaSession* pSession)
{
    IDiaEnumDebugStreams* pEnumStreams;

    wprintf(L"\n\n*** DEBUG STREAMS\n\n");
    // Retrieve an enumerated sequence of debug data streams
    if(pSession->getEnumDebugStreams(&pEnumStreams) == S_OK)
    {
        IDiaEnumDebugStreamData* pStream;
        ULONG celt = 0;

        for(; pEnumStreams->Next(1, &pStream, &celt) == S_OK; pStream = NULL)
        {
            PrintStreamData(pStream);
            pStream->Release();
        }
        pEnumStreams->Release();
    }
    else
    {
      wprintf(L"Failed to get any debug streams!\n");
    }
    wprintf(L"\n");
}

要求

标题:Dia2.h

库:diaguids.lib

DLL:msdia80.dll

请参见

参考

IDiaEnumDebugStreamData

IDiaSession::getEnumDebugStreams

其他资源

接口(调试接口访问 SDK)