Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic


Initiates access to a source of debugging symbols.

IDiaDataSource : IUnknown

The following table shows the methods of IDiaDataSource.

Method Description


Retrieves the file name for the last load error.


Opens and prepares a program database (.pdb) file as a debug data source.


Opens and verifies that the program database (.pdb) file matches the signature information provided; prepares the .pdb file as a debug data source.


Opens and prepares the debug data associated with the .exe/.dll file.


Prepares the debug data stored in a program database (.pdb) file accessed through an in-memory data stream.


Opens a session for querying symbols.

A call to one of the load methods of the IDiaDataSource interface opens the symbol source. A successful call to the IDiaDataSource::openSession method returns an IDiaSession interface that supports querying the data source. If the load method returns a file-related error then the IDiaDataSource::get_lastError method return value contains the file name associated with the error.

Notes for Callers

This interface is obtained by calling the CoCreateInstance function with the class identifier CLSID_DiaSource and the interface ID of IID_IDiaDataSource. The example shows how this interface is obtained.

      IDiaDataSource* pSource;
HRESULT hr = CoCreateInstance(CLSID_DiaSource,
                              (void**) &pSource);
if (FAILED(hr))
    // Report error and exit

Header: Dia2.h

Library: diaguids.lib

DLL: msdia80.dll

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.