Problem with Ndis in NT.

Hi Devs,

I have a problem with Ndis in NT.
From Ndis.h, i learned that BINARY_COMPATIBLE should
be set for miniport on x86. (My driver is a Ndis
miniport for x86).

  1. In NT, Ndis defines ‘NdisGetFirstBufferFromPacket’
    as a macro in which it calls MmGetMdlVirtualAddress
    and MmGetMdlByteCount.
    a) Now if i set this flag to 1, and compile my code i
    get linker errors for MmGetMdlVirtualAddress &
    MmGetMdlByteCount.
    b) If i set this flag to 0, there are no linker errors

2)NdisInterlockedXXX calls are defined as both Macros
& function calls based on the BINARY_COMPATIBLE flags.
Trrespective of whether the flag is set or not, i get
linker errors for the NdisInterlockedXXX calls too.
I also observed that NdisInterlocked is not to be
found in ndis.lib

Now what should i do if i want my driver to be binary
compatible & compile my code with no linker errors
???

Regards
ME


Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.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