Combining a file system filter and WPP Trace

Hello all,

I’m having a problem compiling a filter driver (copy of SFILTER, really)
incorporating the WPP macro’s and examples from tracedrv.

The generated xyz.tmh file includes <ntddk.h> and I’d like to include
<ntifs.h> in my driver source. This generates an untold number of
redefinition errors upon compilation. I tried to simply change the
include in xyz.tmh to <ntifs.h> but that blew up <evntrace.h>.

Is there an example of a driver that relies on <ntifs.h> and
incorporates trace messages? I need to be able to support W2K and up
(and am a relative beginner here).

Thanks,
-Matt</ntifs.h></evntrace.h></ntifs.h></ntifs.h></ntddk.h>

This is a very basic C issue and not a DDK issue. Do not include ntifs.h
and ntddk.h in the same source module.

Jamey

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Matthew Giedt
Sent: Thursday, June 12, 2003 11:10 AM
To: File Systems Developers
Subject: [ntfsd] Combining a file system filter and WPP Trace

Hello all,

I’m having a problem compiling a filter driver (copy of SFILTER, really)
incorporating the WPP macro’s and examples from tracedrv.

The generated xyz.tmh file includes <ntddk.h> and I’d like to include
<ntifs.h> in my driver source. This generates an untold number of
redefinition errors upon compilation. I tried to simply change the
include in xyz.tmh to <ntifs.h> but that blew up <evntrace.h>.

Is there an example of a driver that relies on <ntifs.h> and
incorporates trace messages? I need to be able to support W2K and up
(and am a relative beginner here).

Thanks,
-Matt


You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com</ntifs.h></evntrace.h></ntifs.h></ntifs.h></ntddk.h>