duplication error in ntddk.h and ndis.h

I am developing a Miniport driver and I included <ndis.h> for that. It was giving an error

test.h(45) : error C2081: ‘PIRP’ : name in formal parameter list illegal

I suspected that it was not able to find the typedef of PIRP so I included ntddk.h also in the following order.

#include <ntddk.h>
#include <ndis.h>

When I recompiled it gave me lots of duplication errors. So I changed the order of the files as

#include <ndis.h>
#include <ntddk.h>

But then again the previous error of PIRP came.

I don’t know what I am missing here. Whats the problem in including the header files.

Can anyone help me in this regards ?

Regards
Rakesh</ntddk.h></ndis.h></ndis.h></ntddk.h></ndis.h>

Yes, you cannot use ndis.h and ntddk.h together unless you are writing an NDIS_WDM driver with NDIS_WDM flag set in the compiler options. The most probable guess I would think of it is a missing semicolon or closed bracket before the statement. Check that your syntax is correct.

-----Original Message-----
From: Rakesh A. Ughreja [mailto:xxxxx@india.ti.com]
Sent: Friday, October 25, 2002 6:02 AM
To: NT Developers Interest List
Subject: [ntdev] duplication error in ntddk.h and ndis.h

I am developing a Miniport driver and I included <ndis.h> for that. It was giving an error

test.h(45) : error C2081: ‘PIRP’ : name in formal parameter list illegal

I suspected that it was not able to find the typedef of PIRP so I included ntddk.h also in the following order.

#include <ntddk.h>
#include <ndis.h>

When I recompiled it gave me lots of duplication errors. So I changed the order of the files as

#include <ndis.h>
#include <ntddk.h>

But then again the previous error of PIRP came.

I don’t know what I am missing here. Whats the problem in including the header files.

Can anyone help me in this regards ?

Regards
Rakesh
b‹­ç®·¶\¹»®&vÚµ×jÇjJv’‰º¸¥ÊN‹²ær¸zÇu¦jy™¨¶‰j÷µ×÷Þ.X¶Ê­Ê</ntddk.h></ndis.h></ndis.h></ntddk.h></ndis.h>

Thanks for the quick response. Yes, the problem was because of not defining NDIS_WDM, that I found by looking at the ndis.h which internally includes ntddk.h if NDIS_WDM is not defined and thats why it was duplication.

Thanks once again for help.

Regards
Rakesh

----- Original Message -----
From: “Kommuri, Chakradhar” <chakradhar.kommuri>
To: “NT Developers Interest List”
Sent: Friday, October 25, 2002 6:40 PM
Subject: [ntdev] RE: duplication error in ntddk.h and ndis.h

> Yes, you cannot use ndis.h and ntddk.h together unless you are writing an NDIS_WDM driver with NDIS_WDM flag set in the compiler options. The most probable guess I would think of it is a missing semicolon or closed bracket before the statement. Check that your syntax is correct.
>
> -----Original Message-----
> From: Rakesh A. Ughreja [mailto:xxxxx@india.ti.com]
> Sent: Friday, October 25, 2002 6:02 AM
> To: NT Developers Interest List
> Subject: [ntdev] duplication error in ntddk.h and ndis.h
>
>
> I am developing a Miniport driver and I included <ndis.h> for that. It was giving an error
>
> test.h(45) : error C2081: ‘PIRP’ : name in formal parameter list illegal
>
> I suspected that it was not able to find the typedef of PIRP so I included ntddk.h also in the following order.
>
> #include <ntddk.h>
> #include <ndis.h>
>
> When I recompiled it gave me lots of duplication errors. So I changed the order of the files as
>
> #include <ndis.h>
> #include <ntddk.h>
>
> But then again the previous error of PIRP came.
>
> I don’t know what I am missing here. Whats the problem in including the header files.
>
> Can anyone help me in this regards ?
>
> Regards
> Rakesh
> b‹­ç®·¶\¹»®&vÚµ×jÇjJv’‰º¸¥ÊN‹²ær¸zÇu¦jy™¨¶‰j÷µ×÷Þ.X¶Ê­Ê
> آy +.n+lju ڳ ! v&/ d{.n +zwZnV隊[h{ u M5 l + &
></ntddk.h></ndis.h></ndis.h></ntddk.h></ndis.h></chakradhar.kommuri>

Use -DNDIS_WDM=1 as a compile flag. This will bring in the definitions to
allow IRP processing.

Look at Section 12.6 Compile Flags for WDM Lower Edge.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Rakesh A. Ughreja
Sent: Friday, October 25, 2002 4:02 AM
To: NT Developers Interest List
Subject: [ntdev] duplication error in ntddk.h and ndis.h

I am developing a Miniport driver and I included <ndis.h> for that. It was
giving an error

test.h(45) : error C2081: ‘PIRP’ : name in formal parameter list illegal

I suspected that it was not able to find the typedef of PIRP so I included
ntddk.h also in the following order.

#include <ntddk.h>
#include <ndis.h>

When I recompiled it gave me lots of duplication errors. So I changed the
order of the files as

#include <ndis.h>
#include <ntddk.h>

But then again the previous error of PIRP came.

I don’t know what I am missing here. Whats the problem in including the
header files.

Can anyone help me in this regards ?

Regards
Rakesh
b??(r)???"(r)&vڵ?j?j?zz?x??N???r??zǧu??jy-™???^j???ׯ?}vX???,?&</ntddk.h></ndis.h></ndis.h></ntddk.h></ndis.h>