SymSrvGetFileIndexes Function

Debug Help Library

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 WINAPI SymSrvGetFileIndexes(
  __in          PCTSTR File,
  __out         GUID* Id,
  __out         DWORD* Val1,
  __out_opt     DWORD* Val2,
  __in          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

Redistributable

Requires DbgHelp.dll 6.3 or later.

Header

Declared in DbgHelp.h.

Library

Use Dbghelp.lib.

DLL

Requires Dbghelp.dll.

Unicode

Implemented as SymSrvGetFileIndexesW (Unicode) and SymSrvGetFileIndexes (ANSI).

See Also

DbgHelp Functions

Send comments about this topic to Microsoft

Build date: 9/25/2007

© 2007 Microsoft Corporation. All rights reserved.