Hi All,
How to include ndis.h and ntddk.h in NDIS driver? my driver requires kernel mode API’s supported in ntddk.h.
if i include both i’m getting redefination error, and unable to build the driver. The platform is Windows NT
Is there any variable to be set? please do reply.
Thanks in advance,
Vishu
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
refer to
http://support.microsoft.com/support/kb/articles/Q224/7/84.ASP
Place NDIS and WDM code in separate source files. There are several token definition conflicts between Ndis.h and Wdm.h.
maram vishwanath wrote:
Hi All,
How to include ndis.h and ntddk.h in NDIS driver? my driver requires kernel mode API’s supported in ntddk.h.
if i include both i’m getting redefination error, and unable to build the driver. The platform is Windows NT
Is there any variable to be set? please do reply.
Thanks in advance,
Vishu
—
You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
---------------------------------
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
hi,
you can see ndis.h in the ntddk.
"
#if (BINARY_COMPATIBLE && !NDIS_WDM)
…
#else
#if !NDIS_WDM
//
// The definitions available in ntddk.h are intended for use only by full
// MAC drivers. They must not be used directly by miniport drivers.
//
#include <ntddk.h>
#else
#include <wdm.h>
#endif
#endif
"
you can use “#define NDIS_WDM 0”.
Good luck.
_________________________________________________________________
Äú¿ÉÒÔÔÚ MSN Hotmail Õ¾µã http://www.hotmail.com/cn Ãâ·ÑÊÕ·¢µç×ÓÓʼþ
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</wdm.h></ntddk.h>
Hi,
Thanks for the reply.
We have done this on 2K by setting NDIS_WDM, how to achive the same on NT as there is no support for WDM. Please do reply.
thanks again,
Vishu
Subject: Re: how to include ndis.h & ntddk.h
From: “=?gb2312?B?1dT04SDV1PTh?=”
Date: Wed, 28 Nov 2001 16:42:35 +0800
X-Message-Number: 4
hi,
you can see ndis.h in the ntddk.
"
#if (BINARY_COMPATIBLE && !NDIS_WDM)
…
#else
#if !NDIS_WDM
//
// The definitions available in ntddk.h are intended for use only by
full
// MAC drivers. They must not be used directly by miniport drivers.
//
#include <ntddk.h>
#else
#include <wdm.h>
#endif
#endif
"
you can use “#define NDIS_WDM 0”.
Good luck.
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</wdm.h></ntddk.h>
Surprisingly, #define BINARY_COMPATIBLE 0
It is IMHO correct also for w2k; NDIS_WDM 0 works only by accident. It is
corrected in XP DDK ndis.h, try to open it and read comment in the first 30
- 40 lines. Both BINARY_COMPATIBLE and NDIS_WDM should be set appropriate
way.
Best regards,
Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]
From: xxxxx@rediffmail.com[SMTP:xxxxx@rediffmail.com]
Reply To: xxxxx@lists.osr.com
Sent: Thursday, November 29, 2001 6:45 AM
To: xxxxx@lists.osr.com
Subject: [ntdev] Re: how to include ndis.h & ntddk.h
Hi,
Thanks for the reply.
We have done this on 2K by setting NDIS_WDM, how to achive the same on NT
as there is no support for WDM. Please do reply.
thanks again,
Vishu
Subject: Re: how to include ndis.h & ntddk.h
>From: “=?gb2312?B?1dT04SDV1PTh?=”
>
> Date: Wed, 28 Nov 2001 16:42:35 +0800
>
> X-Message-Number: 4
>
>
>
> hi,
>
> you can see ndis.h in the ntddk.
>
> "
>
> #if (BINARY_COMPATIBLE && !NDIS_WDM)
>
> …
>
> #else
>
> #if !NDIS_WDM
>
> //
>
> // The definitions available in ntddk.h are intended for use only by
>
> full
>
> // MAC drivers. They must not be used directly by miniport drivers.
>
> //
>
> #include <ntddk.h>
>
> #else
>
> #include <wdm.h>
>
> #endif
>
> #endif
>
> "
>
> you can use “#define NDIS_WDM 0”.
>
> Good luck.
>
>
>
>
> —
> You are currently subscribed to ntdev as: michal.vodicka@st.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com</wdm.h></ntddk.h>