The FindDebugInfoFile function locates a symbol file.
HANDLE FindDebugInfoFile(
IN LPSTR FileName,
IN LPSTR SymbolPath,
OUT LPSTR DebugFilePath
);
If the function succeeds, the return value is an open handle to the debug file.
If the function fails, the return value is NULL. To retrieve extended error information, call GetLastError.
The FindDebugInfoFile function is used to locate a symbol file. This function is provided so symbol files can be located in several different directories through a single function call. The SymbolPath parameter can contain multiple paths, with each separated by a semicolon (;). When multiple paths are specified, each directory tree is searched for the symbol file. When the file is located, the search stops. Thus, be sure to specify SymbolPath with the paths in the correct order.
Windows NT: Requires version 4.0 or later.
Windows: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in imagehlp.h.
Import Library: Use imagehlp.lib.
PE Image Helper (ImageHlp) Overview, ImageHlp Debugger Functions