UnDecorateSymbolName function (dbghelp.h)
Undecorates the specified decorated C++ symbol name.
Syntax
DWORD IMAGEAPI UnDecorateSymbolName(
[in] PCSTR name,
[out] PSTR outputString,
[in] DWORD maxStringLength,
[in] DWORD flags
);
Parameters
[in] name
The decorated C++ symbol name. This name can be identified by the first character of the name, which is always a question mark (?).
[out] outputString
A pointer to a string buffer that receives the undecorated name.
[in] maxStringLength
The size of the UnDecoratedName buffer, in characters.
[in] flags
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
Requirement | Value |
---|---|
Target Platform | Windows |
Header | dbghelp.h |
Library | Dbghelp.lib |
DLL | Dbghelp.dll |
Redistributable | DbgHelp.dll 5.1 or later |