summaryrefslogtreecommitdiff
path: root/print/SimplePipelineFilter/trace.hxx
blob: 8b905c4912429b2ee4f567b50d311bfadb06d27f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//+--------------------------------------------------------------------------
//
//  Copyright (c) Microsoft Corporation.  All rights reserved.
//
//  This source code is intended only as a supplement to Microsoft
//  Development Tools and/or on-line documentation.  See these other
//  materials for detailed information regarding Microsoft code samples.
//
//  THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY
//  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
//  WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
//
//  Abstract:
//     WDK print filter sample.
//     Declares what is needed to Event Tracing.
//
//----------------------------------------------------------------------------

#ifndef __WDK_SAMPLE_TRACE_HXX__
#define __WDK_SAMPLE_TRACE_HXX__

//
// Generate your own guid. Feel free to add more flags, as needed.
//
#define WPP_CONTROL_GUIDS \
    WPP_DEFINE_CONTROL_GUID(WdkSample, (79ad6dce, adad, 47ae, b49e, 41bcdccf9ed8),   \
        WPP_DEFINE_BIT(WS_ERROR)                                                     \
        WPP_DEFINE_BIT(WS_WARNING)                                                   \
        WPP_DEFINE_BIT(WS_TRACE)                                                     \
        )

void
WppTraceDebugOut(
    _In_z_  const WCHAR *pszFmt,
    ...
    );

void
WppTraceDebugOut(
    _In_z_  const CHAR *pszFmt,
    ...
    );

//
// For checked builds, send output to debugger rather than to file
//
#ifdef DBG
#define WPP_DEBUG(x)  WppTraceDebugOut x
#endif

#endif