summaryrefslogtreecommitdiff
path: root/filesys/miniFilter/change/change.h
blob: b8c8c9f242192aeec2a5ceabc9def367c56a87e9 (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
/*++

Copyright (c) Microsoft Corporation.  All Rights Reserved

Module Name:

    change.h

Abstract:

    Header file which contains the structures, type definitions,
    constants, global variables and function prototypes that are
    only visible within the kernel. Mainly used by change module.

Environment:

    Kernel mode

--*/
#ifndef __CHANGE_H__
#define __CHANGE_H__

#define CG_VISTA    (NTDDI_VERSION >= NTDDI_VISTA)

#include <fltKernel.h>
#include <suppress.h>
#include "context.h"
#include "utility.h"

#pragma prefast(disable:__WARNING_ENCODE_MEMBER_FUNCTION_POINTER, "Not valid for kernel mode drivers")

//
//  The global variable
//

PFLT_FILTER gFilterInstance;

#define CGDBG_TRACE_ROUTINES            0x00000001
#define CGDBG_TRACE_OPERATION_STATUS    0x00000002
#define CGDBG_TRACE_DEBUG               0x00000004
#define CGDBG_TRACE_ERROR               0x00000008

static ULONG gTraceFlags = CGDBG_TRACE_DEBUG | CGDBG_TRACE_ERROR;

#define CG_DBG_PRINT( _dbgLevel, _string )          \
    (FlagOn(gTraceFlags,(_dbgLevel)) ?              \
        DbgPrint _string :                          \
        ((int)0))

#endif