AtlTraceSaveSettings

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

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

Parameters

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

  • dwProcess
    Reserved.

Return Value

TRUE if the file was successfully saved, FALSE otherwise.

Remarks

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.

Requirements

Header: atldebugapi.h

See Also

Tasks

ATLTraceTool Sample: Displays Output of ATLTRACE2

Other Resources

Debugging and Error Reporting Global Functions