SymSrvGetFileIndexesW function (dbghelp.h)
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 SymSrvGetFileIndexesW(
[in] PCWSTR File,
[out] GUID *Id,
[out] PDWORD Val1,
[out, optional] PDWORD Val2,
[in] DWORD Flags
);
Parameters
[in] File
The name of the file.
[out] Id
The first of three identifying parameters.
[out] Val1
The second of three identifying parameters.
[out, optional] Val2
The third of three identifying parameters.
[in] 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
Requirement | Value |
---|---|
Target Platform | Windows |
Header | dbghelp.h |
Library | Dbghelp.lib |
DLL | Dbghelp.dll |
Redistributable | DbgHelp.dll 6.3 or later |