- How to include ntddk.h in NDIS Intermediate Driver
- Posted by Xieshumin on June 2nd, 2004
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.
- Posted by Thomas F. Divine [DDK MVP] on June 2nd, 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...
- Posted by Spiro Trikaliotis on June 2nd, 2004
Hello,
Xieshumin <xieshumin@sobey.com> wrote:
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/
- Posted by Arkady Frenkel on June 2nd, 2004
And use ntddndis.h
Arkady
"Thomas F. Divine [DDK MVP]" <tdivine@NOpcausaSPAM.com> wrote in message
news:%23xHr4vESEHA.3716@TK2MSFTNGP09.phx.gbl...