Hi

Thanks in advance for any input!

I compiled the WDK sample "ndis FILTER driver" in VISTA. compiled and
linked fine.

But I couldn't add addtional headers like windows.h, winreg.h etc. to
the code.
They are clashing with "ndis.h" and throws zillon errors!
The compiler output log shows the include path is fine -> \\WinDDK
\6000\inc\api\*.*

Any compiler flag or env setting wrong? Any suggestions please?

Thanks much again
Ganesan

RE: Ndis 'filter' driver compile problem in VISTA by AntonBassov

AntonBassov
Wed Jul 04 21:44:01 CDT 2007

> But I couldn't add addtional headers like windows.h, winreg.h etc. to
> the code.
> They are clashing with "ndis.h" and throws zillon errors!

ndis.h is kernel-mode header, and windows.h, winreg.h etc. are user-mode
headers. You cannot use user-mode headers in kernel-mode drivers. Period.

Anton Bassov

"gxn" wrote:

> Hi
>
> Thanks in advance for any input!
>
> I compiled the WDK sample "ndis FILTER driver" in VISTA. compiled and
> linked fine.
>
> But I couldn't add addtional headers like windows.h, winreg.h etc. to
> the code.
> They are clashing with "ndis.h" and throws zillon errors!
> The compiler output log shows the include path is fine -> \\WinDDK
> \6000\inc\api\*.*
>
> Any compiler flag or env setting wrong? Any suggestions please?
>
> Thanks much again
> Ganesan
>
>

RE: Ndis 'filter' driver compile problem in VISTA by kuasha

kuasha
Sun Jul 08 00:54:01 CDT 2007

What you really want to do with them? You can not use Win32 API's. You have a
set of API for driver development. You can get a list here:

http://msdn2.microsoft.com/en-us/library/ms795146.aspx


--
--
Sincerely,
Maruf Maniruzzaman,
Software Engineer,
KAZ Software Limited,
Dhaka, Bangladesh.
http://www.kaz.com.bd
http://www.kuashaonline.com



"gxn" wrote:

> Hi
>
> Thanks in advance for any input!
>
> I compiled the WDK sample "ndis FILTER driver" in VISTA. compiled and
> linked fine.
>
> But I couldn't add addtional headers like windows.h, winreg.h etc. to
> the code.
> They are clashing with "ndis.h" and throws zillon errors!
> The compiler output log shows the include path is fine -> \\WinDDK
> \6000\inc\api\*.*
>
> Any compiler flag or env setting wrong? Any suggestions please?
>
> Thanks much again
> Ganesan
>
>