UnDecorateSymbolName function
Undecorates the specified decorated C++ symbol name.
Syntax
DWORD WINAPI UnDecorateSymbolName( _In_ PCTSTR DecoratedName, _Out_ PTSTR UnDecoratedName, _In_ DWORD UndecoratedLength, _In_ DWORD Flags );
Parameters
- DecoratedName [in]
-
The decorated C++ symbol name. This name can be identified by the first character of the name, which is always a question mark (?).
- UnDecoratedName [out]
-
A pointer to a string buffer that receives the undecorated name.
- UndecoratedLength [in]
-
The size of the UnDecoratedName buffer, in characters.
- Flags [in]
-
The options for how the decorated name is undecorated. This parameter can be zero or more of the following values.
Return value
If the function succeeds, the return value is the number of characters in the UnDecoratedName buffer, not including the NULL terminator.
If the function fails, the return value is zero. To retrieve extended error information, call GetLastError.
If the function fails and returns zero, the content of the UnDecoratedName buffer is undetermined.
Remarks
To use undecorated symbols, call the SymSetOptions function with the SYMOPT_UNDNAME option.
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.
Examples
For an example, see Retrieving Undecorated Symbol Names.
Requirements
|
Redistributable |
DbgHelp.dll 5.1 or later |
|---|---|
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
UnDecorateSymbolNameW (Unicode) and UnDecorateSymbolName (ANSI) |
See also