Debugging Tools for Windows |
The Execute and ExecuteWide methods execute the specified debugger commands.
HRESULT
IDebugControl::Execute(
IN ULONG OutputControl,
IN PCSTR Command,
IN ULONG Flags
);
HRESULT
IDebugControl4::ExecuteWide(
IN ULONG OutputControl,
IN PCWSTR Command,
IN ULONG Flags
);
#ifdef UNICODE
#define ExecuteT ExecuteWide
#else
#define ExecuteT Execute
#endif
Value | Description |
---|---|
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.
Execute is available in all versions of IDebugControl. ExecuteWide is available in IDebugControl4 and later versions.
These methods execute the given command string. If the string has multiple commands, these methods will not return until all of the commands have been executed. This may involve waiting for the target to execute, so these methods can take an arbitrary amount of time to complete.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.