Locates a symbol file in the specified symbol path.
BOOL IMAGEAPI SymGetSymbolFile( HANDLE hProcess, PCSTR SymPath, PCSTR ImageFile, DWORD Type, PSTR SymbolFile, size_t cSymbolFile, PSTR DbgFile, size_t cDbgFile );
A handle to the process that was originally passed to the SymInitialize function.
The name of the image file.
The type of symbol file. This parameter can be one of the following values.
||A .exe or .dll file.|
||A .dbg file.|
||A .pdb file.|
A pointer to a null-terminated string that receives the name of the symbol file.
The size of the SymbolFile buffer, in characters.
A pointer to a buffer that receives the fully qualified path to the symbol file. This buffer must be at least MAX_PATH characters.
The size of the DbgFile buffer, in characters.
If the server locates a valid symbol file, it returns TRUE; otherwise, it returns FALSE and GetLastError returns a value that indicates why the symbol file was not returned.
All DbgHelp functions, such as this one, are single threaded. Therefore, calls from more than one thread to this function will likely result in unexpected behavior or memory corruption. To avoid this, you must synchronize all concurrent calls from more than one thread to this function.
To call the Unicode version of this function, define DBGHELP_TRANSLATE_TCHAR.
|Redistributable||DbgHelp.dll 6.3 or later|