| description | Initiates access to a source of debugging symbols. Extends IDiaDataSource and IDiaDataSourceEx. | |
|---|---|---|
| title | IDiaDataSourceEx2 | |
| ms.date | 11/18/2024 | |
| ms.topic | reference | |
| dev_langs |
|
|
| helpviewer_keywords |
|
|
| author | grantri | |
| ms.author | grantri | |
| ms.subservice | debug-diagnostics |
Initiates access to a source of debugging symbols and retrieves information about that source.
IDiaDataSourceEx2 : IDiaDataSourceEx
The following table shows the methods of IDiaDataSourceEx2.
| Method | Description |
|---|---|
IDiaDataSourceEx2::findNamedStreams |
Retrieves all names of named streams within the datasource that match the optionally given pattern. |
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.
This interface is obtained by calling the CoCreateInstance function with the class identifier CLSID_DiaSource and the interface ID of IID_IDiaDataSourceEx, or by calling QueryInterface on an existing IDiaDataSource interface pointer. The example shows how this interface is obtained.
IDiaDataSource* pSource;
HRESULT hr = CoCreateInstance(CLSID_DiaSource,
NULL,
CLSCTX_INPROC_SERVER,
IID_IDiaDataSourceEx2,
(void**) &pSource);
if (FAILED(hr))
{
// Report error and exit
}Header: Dia2.h
Library: diaguids.lib
DLL: msdia140.dll