IDiaEnumDebugStreams
Enumerates the various debug streams contained in the data source.
IDiaEnumDebugStreams : IUnknown
Methods in Vtable Order
The following table shows the methods of IDiaEnumDebugStreams.
Method |
Description |
---|---|
Retrieves the IEnumVARIANT version of this enumerator. |
|
Retrieves the number of debug streams. |
|
Retrieves a debug stream by means of an index. |
|
Retrieves a specified number of debug streams in the enumeration sequence. |
|
Skips a specified number of debug streams in an enumeration sequence. |
|
Resets an enumeration sequence to the beginning. |
|
Creates an enumerator that contains the same enumeration state as the current enumerator. |
Remarks
The content of debug streams is implementation-dependent and the data formats are undocumented.
Notes for Callers
Call the IDiaSession::getEnumDebugStreams method to obtain an IDiaEnumDebugStreams object.
Example
This example shows how to access the data streams available from this interface. See the IDiaEnumDebugStreamData interface for an implementation of the PrintStreamData function.
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");
}
Requirements
Header: Dia2.h
Library: diaguids.lib
DLL: msdia80.dll
See Also
Reference
IDiaSession::getEnumDebugStreams