IDebugControl3::Execute method (dbgeng.h)
The Execute method executes the specified debugger commands.
HRESULT Execute( [in] ULONG OutputControl, [in] PCSTR Command, [in] ULONG Flags );
Specifies the command string to execute. The command is interpreted like those typed into a debugger command window. This command string can contain multiple commands for the engine to execute. See Debugger Commands for the command reference.
Specifies a bit field of execution options for the command. The default options are to log the command but to not send it to the output. The following table lists the bits that can be set.
|DEBUG_EXECUTE_ECHO||The command string is sent to the output.|
|DEBUG_EXECUTE_NOT_LOGGED||The command string is not logged. This is overridden by DEBUG_EXECUTE_ECHO.|
|DEBUG_EXECUTE_NO_REPEAT||If Command is an empty string, do not repeat the last command, and do not save the current command string for repeat execution later.|
This method can also return error values. See Return Values for more details.
||The method was successful.|
This method executes the given command string. If the string has multiple commands, this method will not return until all of the commands have been executed. If the sequence of commands involves waiting for the target to execute, this method can take an arbitrary amount of time to complete.
|Header||dbgeng.h (include Dbgeng.h)|
Submit and view feedback for