Debugging Tools for Windows |
The GetTextReplacement and GetTextReplacementWide methods return the value of a user-named alias or an automatic alias.
HRESULT
IDebugControl2::GetTextReplacement(
IN OPTIONAL PCSTR SrcText,
IN ULONG Index,
OUT OPTIONAL PSTR SrcBuffer,
IN ULONG SrcBufferSize,
OUT OPTIONAL PULONG SrcSize,
OUT OPTIONAL PSTR DstBuffer,
IN ULONG DstBufferSize,
OUT OPTIONAL PULONG DstSize
);
HRESULT
IDebugControl4::GetTextReplacementWide(
IN OPTIONAL PCWSTR SrcText,
IN ULONG Index,
OUT OPTIONAL PWSTR SrcBuffer,
IN ULONG SrcBufferSize,
OUT OPTIONAL PULONG SrcSize,
OUT OPTIONAL PWSTR DstBuffer,
IN ULONG DstBufferSize,
OUT OPTIONAL PULONG DstSize
);
#ifdef UNICODE
#define GetTextReplacementT GetTextReplacementWide
#else
#define GetTextReplacementT GetTextReplacement
#endif
This method may also return error values. See Return Values for more details.
GetTextReplacement is available in IDebugControl2 and later versions. GetTextReplacementWide is available in IDebugControl4 and later versions.
Before executing commands or evaluating expressions, the debugger engine will replace the alias specified by SrcBuffer with the value of the alias (specified by DstBuffer).
For an overview of aliases used by the debugger engine, see Using Aliases. For more information about using aliases with the debugger engine API, see Interacting with the Engine.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.
SetTextReplacement, GetNumberTextReplacements, OutputTextReplacements, GetTextMacro, al (List Aliases)