SymSrvGetFileIndexes function

Retrieves the indexes for the specified .pdb, .dbg, or image file that would be used to store the file. The combination of these values uniquely identifies the file in the symbol server. They can be used when calling the SymFindFileInPath function to search for a file in a symbol store.


BOOL IMAGEAPI SymSrvGetFileIndexes(
  PCSTR  File,
  GUID   *Id,
  PDWORD Val1,
  PDWORD Val2,
  DWORD  Flags



The name of the file.


The first of three identifying parameters.


The second of three identifying parameters.


The third of three identifying parameters.


This parameter is reserved for future use.

Return Value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To retrieve extended error information, call GetLastError.


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.


Target Platform Windows
Header dbghelp.h
Library Dbghelp.lib
DLL Dbghelp.dll
Redistributable DbgHelp.dll 6.3 or later

See Also

DbgHelp Functions