Expand Minimize

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 WINAPI SymSrvGetFileIndexes(
  _In_       PCTSTR File,
  _Out_      GUID *Id,
  _Out_      DWORD *Val1,
  _Out_opt_  DWORD *Val2,
  _In_       DWORD Flags
);

Parameters

File [in]

The name of the file.

Id [out]

The first of three identifying parameters.

Val1 [out]

The second of three identifying parameters.

Val2 [out, optional]

The third of three identifying parameters.

Flags [in]

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

Redistributable

DbgHelp.dll 6.3 or later

Header

DbgHelp.h

Library

Dbghelp.lib

DLL

Dbghelp.dll

Unicode and ANSI names

SymSrvGetFileIndexesW (Unicode) and SymSrvGetFileIndexes (ANSI)

See also

DbgHelp Functions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft