Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ISymUnmanagedBinder::GetReaderForFile Method

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);

[in] A pointer to the metadata import interface.


[in] A pointer to the file name.


[in] A pointer to the search path.


[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, CorSym.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.