IDiaEnumDebugStreams

Enumera i diversi flussi di debug contenuti nell'origine dati.

IDiaEnumDebugStreams : IUnknown

Metodi nell'ordine di Vtable

Nella tabella seguente sono elencati i metodi di IDiaEnumDebugStreams.

Metodo

Descrizione

IDiaEnumDebugStreams::get__NewEnum

recupera IEnumVARIANT versione di questo enumeratore.

IDiaEnumDebugStreams::get_Count

Recupera il numero dei flussi di debug.

IDiaEnumDebugStreams::Item

Recupera un flusso di debug per l'utilizzo di un indice.

IDiaEnumDebugStreams::Next

Recupera un numero specificato di flussi di debug nella sequenza di enumerazione.

IDiaEnumDebugStreams::Skip

Ignora un numero specificato di flussi di debug in una sequenza di enumerazione.

IDiaEnumDebugStreams::Reset

Reimposta una sequenza di enumerazione all'inizio.

IDiaEnumDebugStreams::Clone

Crea un enumeratore che contiene lo stesso stato di enumerazione dell'enumeratore corrente.

Note

Il contenuto dei flussi di debug è implementazione-dipendente e i formati dati non sono documentati.

Note per i chiamanti

chiamare IDiaSession::getEnumDebugStreams metodo per ottenere IDiaEnumDebugStreams oggetto.

Esempio

In questo esempio viene illustrato come accedere ai flussi di dati disponibili da questa interfaccia.vedere IDiaEnumDebugStreamData interfaccia per l'implementazione di PrintStreamData funzione.

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

Requisiti

intestazione: Dia2.h

raccolta: diaguids.lib

DLL: msdia80.dll

Vedere anche

Riferimenti

IDiaEnumDebugStreamData

IDiaSession::getEnumDebugStreams

Altre risorse

Interfacce (Debug Interface Access SDK)