File: src\Framework\MS\Internal\TraceShell.cs
Project: wpf\PresentationFramework.csproj (PresentationFramework)
#define TRACE
// <copyright file="TraceShell.cs" company="Microsoft">
//    Copyright (C) Microsoft Corporation.  All rights reserved.
// </copyright>
// Description: Defines TraceShell class, for providing debugging information
//              for Shell integration
using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics;
using System.Reflection;
using System.Text;
using System.Windows;
using System.Windows.Data;
using MS.Internal.Data;
using MS.Win32;
namespace MS.Internal
    /// <summary>
    /// Provides a central mechanism for providing debugging information
    /// to aid programmers in using Shell integration features.
    /// Helpers are defined here.
    /// The rest of the class is generated; see also: AvTraceMessage.txt and
    /// </summary>
    internal static partial class TraceShell
        static TraceShell()
            // This tells tracing that IsEnabled should be true if we're in the debugger,
            // even if the registry flag isn't turned on.  By default, IsEnabled is only
            // true if the registry is set.
            _avTrace.EnabledByDebugger = true;