Skip to content

Latest commit

 

History

History
103 lines (73 loc) · 3.44 KB

nf-dbghelp-symsetsearchpathw.md

File metadata and controls

103 lines (73 loc) · 3.44 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:dbghelp.SymSetSearchPathW
SymSetSearchPathW function (dbghelp.h)
The SymSetSearchPathW (Unicode) function (dbghelp.h) sets the search path for the specified process.
SymSetSearchPath
SymSetSearchPath function
SymSetSearchPathW
_win32_symsetsearchpath
base.symsetsearchpath
dbghelp/SymSetSearchPath
dbghelp/SymSetSearchPathW
base\symsetsearchpath.htm
Debug
564ba1f6-65c6-4c45-bdbf-41ef0dd8a39d
08/04/2022
SymSetSearchPath, SymSetSearchPath function, SymSetSearchPathW, _win32_symsetsearchpath, base.symsetsearchpath, dbghelp/SymSetSearchPath, dbghelp/SymSetSearchPathW
dbghelp.h
Windows
SymSetSearchPathW (Unicode) and SymSetSearchPath (ANSI)
Dbghelp.lib
Dbghelp.dll
Windows
DbgHelp.dll 5.1 or later
19H1
SymSetSearchPathW
dbghelp/SymSetSearchPathW
c++
APIRef
kbSyntax
DllExport
Dbghelp.dll
SymSetSearchPath
SymSetSearchPath
SymSetSearchPathW

SymSetSearchPathW function

-description

Sets the search path for the specified process.

-parameters

-param hProcess [in]

A handle to the process that was originally passed to the SymInitialize function.

-param SearchPath [in, optional]

The symbol search path. The string can contain multiple paths separated by semicolons.

-returns

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.

-remarks

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.

Note

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.

-see-also

DbgHelp Functions

SymGetSearchPath

SymInitialize