SymSetSearchPathW function (dbghelp.h)
Sets the search path for the specified process.
BOOL IMAGEAPI SymSetSearchPathW( HANDLE hProcess, PCWSTR SearchPath );
A handle to the process that was originally passed to the SymInitialize function.
The symbol search path. The string can contain multiple paths separated by semicolons.
If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE. To retrieve extended error information, call GetLastError.
The symbol search path can be changed any number of times while the library is in use by an application. The change affects all future calls to the symbol handler.
To get the current search path, call the SymGetSearchPath function.
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.
The dbghelp.h header defines SymSetSearchPath 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 5.1 or later|