| Debugging Tools for Windows | 
The GetLogFile and GetLogFileWide methods return the name of the currently open log file.
HRESULT
  IDebugControl::GetLogFile(
    OUT OPTIONAL PSTR  Buffer,
    IN ULONG  BufferSize,
    OUT OPTIONAL PULONG  FileSize,
    OUT PBOOL  Append
    );
HRESULT
  IDebugControl4::GetLogFileWide(
    OUT OPTIONAL PWSTR  Buffer,
    IN ULONG  BufferSize,
    OUT OPTIONAL PULONG  FileSize,
    OUT PBOOL  Append
    );
#ifdef UNICODE
#define GetLogFileT GetLogFileWide
#else
#define GetLogFileT GetLogFile
#endif
This method can also return error values. See Return Values for more details.
GetLogFile is available in all versions of IDebugControl. GetLogFileWide is available in IDebugControl4 and later versions.
GetLogFile and GetLogFileWide behave the same way as GetLogFile2 and GetLogFile2Wide with Append receiving only the information about the DEBUG_LOG_APPEND flag.
For more information about log files, see Using Input and Output.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.
OpenLogFile, GetLogFile2, CloseLogFile, GetLogMask, .logfile