The Evaluate method evaluates an expression, returning the result.
HRESULT Evaluate( PCSTR Expression, ULONG DesiredType, PDEBUG_VALUE Value, PULONG RemainderIndex );
Specifies the expression to be evaluated.
Specifies the desired return type. Possible values are described in DEBUG_VALUE; with the addition of DEBUG_VALUE_INVALID, which indicates that the return type should be the expression's natural type.
Receives the value of the expression.
Receives the index of the first character of the expression not used in the evaluation. If RemainderIndex is NULL, this information isn't returned.
This method may also return other error values. See Return Values for more details.
||The method was successful.|
||An error occurred while evaluating the expression. For example, there was a syntax error, an undefined variable, or a division by zero exception.|
Expressions are evaluated by the current expression evaluator. The engine contains multiple expression evaluators; each supports a different syntax. The current expression evaluator can be chosen by using SetExpressionSyntax.
For details of the available expression evaluators and their syntaxes, see Numerical Expression Syntax.
If an error occurs while evaluating the expression, returning E_FAIL, the RemainderIndex variable can be used to determine approximately where in the expression the error occurred.
|Header||dbgeng.h (include Dbgeng.h)|
Send feedback about: