Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 GetReaderForFile Method
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework General Reference
ISymUnmanagedBinder::GetReaderForFile Method

Updated: November 2007

Given a metadata interface and a file name, returns the correct ISymUnmanagedReader structure that will read the debugging symbols associated with the module.

This method will open the program database (PDB) file only if it is next to the executable file. This change has been made for security purposes. If you need a more extensive search for the PDB file, use the ISymUnmanagedBinder2::GetReaderForFile2 method.

HRESULT GetReaderForFile(
    [in]  IUnknown     *importer,
    [in]  const WCHAR  *fileName,
    [in]  const WCHAR  *searchPath,
    [out, retval] ISymUnmanagedReader  **pRetVal);
importer

[in] A pointer to the metadata import interface.

fileName

[in] A pointer to the file name.

searchPath

[in] A pointer to the search path.

pRetVal

[out] A pointer that is set to the returned ISymUnmanagedReader interface.

S_OK if the method succeeds; otherwise, E_FAIL or some other error code.

Header: CorSym.idl

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker