SymSrvStoreFileW function (dbghelp.h)
Stores a file in the specified symbol store.
PCWSTR IMAGEAPI SymSrvStoreFileW( HANDLE hProcess, PCWSTR SrvPath, PCWSTR File, DWORD Flags );
A handle to a process. This handle must have been previously passed to the SymInitialize function.
The symbol store.
The name of the file.
The flags that control the function. This parameter can be one of the following values.
If the function succeeds, the return value is a pointer to a null-terminated string that specifies the full-qualified path to the stored file.
If the function fails, the return value is NULL. 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.
This function returns a pointer to a buffer that may be reused by another function. Therefore, be sure to copy the data returned to another buffer immediately.
To call the Unicode version of this function, define DBGHELP_TRANSLATE_TCHAR.
The dbghelp.h header defines SymSrvStoreFile as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
|Redistributable||DbgHelp.dll 6.3 or later|