共用方式為


IDiaSession::findFileById

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

Retrieves a source file by source file identifier.

Syntax

HRESULT findFileById (   
   DWORD            uniqueId,  
   IDiaSourceFile** ppResult  
);  

Parameters

uniqueId
[in] Specifies the source file identifier.

ppResult
[out] Returns an IDiaSourceFile object that represents the source file retrieved.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

The source file identifier is a unique value used internally to the DIA SDK to make all source files unique. This method is typically used internally to the DIA SDK.

See Also

IDiaSession
IDiaSession::findFile
IDiaSourceFile