Debugging Tools for Windows |
The OpenLogFile and OpenLogFileWide methods open a log file that will receive output from the client objects.
HRESULT
IDebugControl::OpenLogFile(
IN PCSTR File,
IN BOOL Append
);
HRESULT
IDebugControl4::OpenLogFileWide(
IN PCWSTR File,
IN BOOL Append
);
#ifdef UNICODE
#define OpenLogFileT OpenLogFileWide
#else
#define OpenLogFileT OpenLogFile
#endif
This method can also return error values. See Return Values for more details.
OpenLogFile is available in all versions of IDebugControl. OpenLogFileWide is available in IDebugControl4 and later versions.
OpenLogFile and OpenLogFileWide behave the same way as OpenLogFile2 and OpenLogFile2Wide with Flags set to DEBUG_LOG_APPEND if Append is TRUE and DEBUG_LOG_DEFAULT otherwise.
Only one log file can be open at a time. If there is already a log file open, it will be closed.
For more information about log files, see Using Input and Output.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.
OpenLogFile2, GetLogFile, CloseLogFile, GetLogMask, SetLogMask, .logopen (Open Log File), .logappend (Append Log File)