Debugging Tools for Windows |
The ExecuteCommandFile and ExecuteCommandFileWide methods open the specified file and execute the debugger commands that are contained within.
HRESULT
IDebugControl::ExecuteCommandFile(
IN ULONG OutputControl,
IN PCSTR CommandFile,
IN ULONG Flags
);
HRESULT
IDebugControl4::ExecuteCommandFileWide(
IN ULONG OutputControl,
IN PCWSTR CommandFile,
IN ULONG Flags
);
#ifdef UNICODE
#define ExecuteCommandFileT ExecuteCommandFileWide
#else
#define ExecuteCommandFileT ExecuteCommandFile
#endif
This method might also return error values, including error values caused by a failure to open the specified file. For more information, see Return Values.
ExecuteCommandFile is available in all versions of IDebugControl. ExecuteCommandFileWide is available in IDebugControl4 and later versions.
These methods read the specified file and execute the commands one line at a time using Execute. If an exception occurred while executing a line, the execution will continue with the next line.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.