Export (0) Print
Expand All

IDiaDataSource Interface

Initiates access to a source of debugging symbols. Obtained by calling the CoCreateInstance method with the class identifier CLSID_DiaSource.

IDiaDataSource : IUnknown

Methods in Vtable Order

The following table shows the methods of IDiaDataSource.

Method Description
get_lastError Retrieves the file name for the last load error.
loadDataFromPdb Opens and prepares a program database (.pdb) file as a debug data source.
loadAndValidateDataFromPdb Opens and verifies that the program database (.pdb) file matches the signature information provided; prepares the .pdb file as a debug data source.
loadDataForExe Opens and prepares the debug data associated with the .exe/.dll file.
loadDataFromIStream Prepares the debug data stored in a program database (.pdb) file accessed through an IStream.
openSession Opens a session for querying symbols.

Remarks

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

Requirements

Header: Dia2.h

Example

IDiaDataSource* pSource;
CoCreateInstance(CLSID_DiaSource, NULL, CLSCTX_INPROC_SERVER,
   IID_IDiaDataSource, (void**) &pSource);

See Also

Interfaces

Show:
© 2014 Microsoft