共用方式為


Overview (Debug Interface Access SDK)

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Use the DIA SDK to access the Microsoft debug information. The DIA SDK provides a COM based API set that eliminates the need to rewrite your code whenever Microsoft changes the format of the debug information. The DIA SDK also allows you to read from a select set of previous versions of debug information, located in .pdb and .dbg files generated by Visual C++ versions 5.0 and later.

Each interface in the DIA SDK represents a different COM object, except where stated otherwise. Additional interfaces, and thus additional objects, are created by means of explicit queries, such as IDiaDataSource::openSession or IDiaSession::findChildren, rather than by calling QueryInterface on existing interface pointers.

See Also

IDiaDataSource::openSession
IDiaSession::findChildren