WDK Mini Filter Example
change.h
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) Microsoft Corporation. All Rights Reserved
4 
5 Module Name:
6 
7  change.h
8 
9 Abstract:
10 
11  Header file which contains the structures, type definitions,
12  constants, global variables and function prototypes that are
13  only visible within the kernel. Mainly used by change module.
14 
15 Environment:
16 
17  Kernel mode
18 
19 --*/
20 #ifndef __CHANGE_H__
21 #define __CHANGE_H__
22 
23 #define CG_VISTA (NTDDI_VERSION >= NTDDI_VISTA)
24 
25 #include <fltKernel.h>
26 #include <suppress.h>
27 #include "context.h"
28 #include "utility.h"
29 
30 #pragma prefast(disable:__WARNING_ENCODE_MEMBER_FUNCTION_POINTER, "Not valid for kernel mode drivers")
31 
32 //
33 // The global variable
34 //
35 
36 PFLT_FILTER gFilterInstance;
37 
38 #define CGDBG_TRACE_ROUTINES 0x00000001
39 #define CGDBG_TRACE_OPERATION_STATUS 0x00000002
40 #define CGDBG_TRACE_DEBUG 0x00000004
41 #define CGDBG_TRACE_ERROR 0x00000008
42 
43 static ULONG gTraceFlags = CGDBG_TRACE_DEBUG | CGDBG_TRACE_ERROR;
44 
45 #define CG_DBG_PRINT( _dbgLevel, _string ) \
46  (FlagOn(gTraceFlags,(_dbgLevel)) ? \
47  DbgPrint _string : \
48  ((int)0))
49 
50 #endif
PFLT_FILTER gFilterInstance
Definition: change.h:36
#define CGDBG_TRACE_DEBUG
Definition: change.h:40
#define CGDBG_TRACE_ERROR
Definition: change.h:41

Social Network


Services Overview

Architect, implement and test file system filter drivers for a wide range of functionality. We can offer several levels of assistance to meet your specific.

Contact Us

You are welcome to contact us for salse or partnership.

Sales: sales@easefilter.com
Support: support@easefilter.com
Info: info@easefilter.com