IDiaDataSource::loadDataFromPdb
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

IDiaDataSource::loadDataFromPdb 

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


HRESULT loadDataFromPdb (
   LPCOLESTR pdbPath
);

Parameters

pdbPath

[in] The path to the .pdb file.

If successful, returns S_OK; otherwise, returns an error code. The following table shows the possible return values for this method.

Value Description

E_PDB_NOT_FOUND

Failed to open the file, or determined that the file has an invalid format.

E_PDB_FORMAT

Attempted to access a file with an obsolete format.

E_INVALIDARG

Invalid parameter.

E_UNEXPECTED

Data source has already been prepared.

This method loads the debug data directly from a .pdb file.

To validate the .pdb file against specific criteria, use the IDiaDataSource::loadAndValidateDataFromPdb method.

To gain access to the data load process (through a callback mechanism), use the IDiaDataSource::loadDataForExe method.

To load a .pdb file directly from memory, use the IDiaDataSource::loadDataFromIStream method.

HRESULT hr = pSource->loadDataFromPdb( L"myprog.pdb" );
if (FAILED(hr))
{
    // report error
}
Show:
© 2016 Microsoft