Hi,All:
i'm new to ndis and i have a question.i want to communicate between IM
driver and user application,so i include ntddk.h above ndis.h,it gives me
about more than 35 redefinition error,Is there any special way to include
this file?

thankx in advance.

Re: How to include ntddk.h in NDIS Intermediate Driver by Thomas

Thomas
Tue Jun 01 21:47:22 CDT 2004

See the article "Extending the PassThru NDIS Intermediate Driver Sample" on
the Windows Driver Developer's Digest (WD-3). It is at the URL:

http://www.wd-3.com

Do look in the Archives (Button at top) for Part 1 of the series. Part 1
shows how to add an IOCTL interface between a user-mode application and a
NDIS IM driver.

Good luck,

Thomas F. Divine
http://www.rawether.net

"Xieshumin" <xieshumin@sobey.com> wrote in message
news:%23coDEdESEHA.3344@TK2MSFTNGP12.phx.gbl...
> Hi,All:
> i'm new to ndis and i have a question.i want to communicate between IM
> driver and user application,so i include ntddk.h above ndis.h,it gives me
> about more than 35 redefinition error,Is there any special way to include
> this file?
>
> thankx in advance.
>
>



Re: How to include ntddk.h in NDIS Intermediate Driver by Spiro

Spiro
Wed Jun 02 03:03:23 CDT 2004

Hello,

Xieshumin <xieshumin@sobey.com> wrote:

> i'm new to ndis and i have a question.i want to communicate between IM
> driver and user application,so i include ntddk.h above ndis.h,it gives
> me about more than 35 redefinition error,Is there any special way to
> include this file?

What works: Split anything that does not need ntddk.h in one file ndis.c (as it
is now), and anything that needs ntddk.h in another one (ddk.c).

Now, you don't call the "generic" DDK functions in ndis.c, but you call
the support functions in ddk.c which itself call the generic DDK
functions.

Done that, it worked as expected.

Regards,
Spiro.

--
Spiro R. Trikaliotis
http://www.trikaliotis.net/

Re: How to include ntddk.h in NDIS Intermediate Driver by Arkady

Arkady
Wed Jun 02 08:14:21 CDT 2004

And use ntddndis.h
Arkady

"Thomas F. Divine [DDK MVP]" <tdivine@NOpcausaSPAM.com> wrote in message
news:%23xHr4vESEHA.3716@TK2MSFTNGP09.phx.gbl...
> See the article "Extending the PassThru NDIS Intermediate Driver Sample"
on
> the Windows Driver Developer's Digest (WD-3). It is at the URL:
>
> http://www.wd-3.com
>
> Do look in the Archives (Button at top) for Part 1 of the series. Part 1
> shows how to add an IOCTL interface between a user-mode application and a
> NDIS IM driver.
>
> Good luck,
>
> Thomas F. Divine
> http://www.rawether.net
>
> "Xieshumin" <xieshumin@sobey.com> wrote in message
> news:%23coDEdESEHA.3344@TK2MSFTNGP12.phx.gbl...
> > Hi,All:
> > i'm new to ndis and i have a question.i want to communicate between
IM
> > driver and user application,so i include ntddk.h above ndis.h,it gives
me
> > about more than 35 redefinition error,Is there any special way to
include
> > this file?
> >
> > thankx in advance.
> >
> >
>
>