error C2371: 'PEPROCESS' : redefinition

Hello all,

In my code I am getting 3 strange compilation errors:

Compiling - device.cpp
1>c:\winddk\7600.16385.1\inc\ddk\ntifs.h(85) : error C2371: ‘PEPROCESS’ : redefi
nition; different basic types
1>c:\winddk\7600.16385.1\inc\ddk\ntifs.h(86) : error C2371: ‘PETHREAD’ : redefin
ition; different basic types
1>c:\winddk\7600.16385.1\inc\ddk\ntifs.h(1741) : error C2375: ‘WdmlibRtlInitUnic
odeStringEx’ : redefinition; different linkage

I don’t include ntifs.h in this module, here are the includes I do have:

#include <ndis.h>
#include <wdmsec.h>
#include <fltkernel.h>

Anyone know what is causing the problem?

Regards,
Derek</fltkernel.h></wdmsec.h></ndis.h>

Why did you include all the following in one:
#include <ndis.h>
#include <wdmsec.h>
#include <fltkernel.h>

What are you trying to build?
Try removing the ones that are not required. If you are building a
minifilter, just include fltkernel.h, if you are developing a network
driver, don’t include fltkernel.h; just include ndis.h, etc.

Regards,
Ayush Gupta
Software Consultant & Owner,
AI Consulting

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@arl.psu.edu
Sent: Friday, August 19, 2011 6:24 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] error C2371: ‘PEPROCESS’ : redefinition

Hello all,

In my code I am getting 3 strange compilation errors:

Compiling - device.cpp
1>c:\winddk\7600.16385.1\inc\ddk\ntifs.h(85) : error C2371: ‘PEPROCESS’ :
redefi
nition; different basic types
1>c:\winddk\7600.16385.1\inc\ddk\ntifs.h(86) : error C2371: ‘PETHREAD’ :
redefin
ition; different basic types
1>c:\winddk\7600.16385.1\inc\ddk\ntifs.h(1741) : error C2375:
‘WdmlibRtlInitUnic
odeStringEx’ : redefinition; different linkage

I don’t include ntifs.h in this module, here are the includes I do have:

#include <ndis.h>
#include <wdmsec.h>
#include <fltkernel.h>

Anyone know what is causing the problem?

Regards,
Derek


NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer</fltkernel.h></wdmsec.h></ndis.h></fltkernel.h></wdmsec.h></ndis.h>