Debugging Tools for Windows |
The SetExpressionSyntaxByName and SetExpressionSyntaxByNameWide methods set the syntax that the engine will use to evaluate expressions.
HRESULT
IDebugControl3::SetExpressionSyntaxByName(
IN PCSTR AbbrevName
);
HRESULT
IDebugControl4::SetExpressionSyntaxByNameWide(
IN PCWSTR AbbrevName
);
#ifdef UNICODE
#define SetExpressionSyntaxNamesT SetExpressionSyntaxNamesWide
#else
#define SetExpressionSyntaxNamesT SetExpressionSyntaxNames
#endif
This method may also return error values. See Return Values for more details.
SetExpressionSyntaxNames is available in IDebugControl3 and later versions. SetExpressionSyntaxNamesWide is available in IDebugControl4 and later versions.
The expression syntax is a global setting within the engine, so setting the expression syntax will affect all clients.
The expression syntax of the engine determines how the engine will interpret expressions passed to Evaluate, Execute, and any other method that evaluates an expression.
After the expression syntax has been changed, the engine sends out notification to the IDebugEventCallbacks callback object registered with each client. It also passes the DEBUG_CES_EXPRESSION_SYNTAX flag to the IDebugEventCallbacks::ChangeEngineState method.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.