Debugging Tools for Windows |
The SetUnnamedArg method sets an unnamed argument for the current extension command.
bool
ExtExtension::SetUnnamedArg(
IN ULONG Index,
IN OPTIONAL PCSTR StrArg,
IN ULONG64 NumArg,
IN bool OnlyIfUnset = false
) throw(...)
If the argument is of type string, a pointer to the first non-space character is saved as the argument. In this case, StrArg must not be NULL.
If the argument is of type expression, StrArg is evaluated using the default expression evaluator and the value returned by the default expression evaluator becomes the value of the argument. In this case, StrArg can be NULL and NumArg should be used instead.
If the argument is of type Boolean, StrArg is ignored and can be NULL.
SetUnnamedArg returns true if the argument was changed; false otherwise.
For an overview of argument parsing in the EngExtCpp extensions framework, see Parsing Extension Arguments.
This method should only be called during the execution of an extension command provided by this class.
Headers: Defined in Engextcpp.hpp. Include Engextcpp.hpp.