Debugging Tools for Windows |
The AddSyntheticSymbol and AddSyntheticSymbolWide methods add a synthetic symbol to a module in the current process.
HRESULT
IDebugSymbols3::AddSyntheticSymbol(
IN ULONG64 Offset,
IN ULONG Size,
IN PCSTR Name,
IN ULONG Flags,
OUT OPTIONAL PDEBUG_MODULE_AND_ID Id
);
HRESULT
IDebugSymbols3::AddSyntheticSymbolWide(
IN ULONG64 Offset,
IN ULONG Size,
IN PCSTR Name,
IN ULONG Flags,
OUT OPTIONAL PDEBUG_MODULE_AND_ID Id
);
#ifdef UNICODE
#define AddSyntheticSymbolT AddSyntheticSymbolWide
#else
#define AddSyntheticSymbolT AddSyntheticSymbol
#endif
This method may also return error values. See Return Values for more details.
AddSyntheticSymbol and AddSyntheticSymbolWide are available in IDebugSymbols3 and later versions.
The location of the synthetic symbol must not be the same as the location of another symbol.
If the module containing a synthetic symbol is reloaded ‑ for example, by calling Reload with the Module parameter set to the name of the module ‑ the synthetic symbol will be discarded.
For more information about synthetic symbols, see Synthetic Symbols.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.