Поделиться через


AtlTraceSaveSettings

Call this function to save the current trace settings to a file.

BOOL AtlTraceSaveSettings(
   LPCTSTR* pszFilename,
   DWORD_PTR dwProcess = 0
);

Параметры

  • pszFilename
    The full path and file name of the .TRC file to create.

  • dwProcess
    Reserved.

Возвращаемое значение

TRUE if the file was successfully saved, FALSE otherwise.

Заметки

This function will save the current trace settings to a .TRC file. The trace settings control the type and amount of trace messages that appear in the Output window.

AtlTraceSaveSettings makes use of WritePrivateProfileSection to store settings in the .TRC file. If a section already exists it will be replaced, otherwise it will be added to the file.

Требования

Header: atldebugapi.h

См. также

Основные понятия

Debugging and Error Reporting Global Functions

ATLTraceTool Sample: Displays Output of ATLTRACE2