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.

Syntax

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

Parameters

File

The name of the file.

Id

The first of three identifying parameters.

Val1

The second of three identifying parameters.

Val2

The third of three identifying parameters.

Flags

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.

Remarks

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.

Requirements

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

See Also

DbgHelp Functions