Re: NDIS Version question.



If your driver is to run on Windows 2000 and higher, build like the DDK sources file says. Your driver will actually be compatible with NDIS 5.

Of your driver is to run only on Windows XP or higher, build like the DDK sources file says. Your driver will actually be compatible with NDIS 5.1.

Thomas F. Divine, Windows DDK MVP.
http://www.pcausa.com

<DIV>&quot;mirage2k2&quot; &lt;mirage2k2@xxxxxxxxxxxxxxxxxxxxxxxxx&gt; wrote in message news:59344B65-C08E-45A0-B7CA-A6D99BEAF6E1@xxxxxxxxxxxxxxxx</DIV>> Looking at the sources file for passthru example im driver in the 2003 ddk,
it is evident that for a w2k build ndis 4.0 will be used and for xp/2003 ndis
5.1 will be used.

I just spent some time researching the different versions of ndis and its
seems ndis 4.0 is real old and ndis 5.0 was introduced in w2k. Why then does
passthru want to be built using ndis 4.0 for w2k and not ndis 5.0?

The sources file looks like this ...

!if "$(DDK_TARGET_OS)"=="Win2K"
#
# The driver is built in the Win2K build environment
#
C_DEFINES=$(C_DEFINES) -DNDIS40_MINIPORT=1
C_DEFINES=$(C_DEFINES) -DNDIS40=1
!else
#
# The driver is built in the XP or .NET build environment
# So let us build NDIS 5.1 version.
#
C_DEFINES=$(C_DEFINES) -DNDIS51_MINIPORT=1
C_DEFINES=$(C_DEFINES) -DNDIS51=1
!endif

I am tempted to change it to ...

!if "$(DDK_TARGET_OS)"=="Win2K"
#
# The driver is built in the Win2K build environment
#
C_DEFINES=$(C_DEFINES) -DNDIS50_MINIPORT=1
C_DEFINES=$(C_DEFINES) -DNDIS50=1
!else
...

Can anyone help me out here?

.



Relevant Pages

  • Re: Incorrect server name
    ... There is no primary WINS server defined for this adapter. ... Broadcom BCM5708C NetXtreme II GigE (NDIS VBD Client) ... Network Monitor Driver ...
    (microsoft.public.windows.server.general)
  • Re: Question about FILE_OBJECT
    ... NDIS IM is a driver that fully conforms to the model, ... I.E. every time they allocated a new context object they ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Running NDISTest on Vista with an NDIS IM Driver
    ... I had a quick look at the ndistest stuff in the WLK1.0c, ... actually some ndis driver in the ... I tried using the version that comes with WLK/DTM on PassThru (NDIS IM ...
    (microsoft.public.development.device.drivers)
  • Re: NDIS functionality details
    ... In my driver I need to decompress compressed video data and provide ... >> NDIS subsystem exports a lot of functions with Ndis* prefix. ... >> DDK says, that there is two ways, one is to copy each packet to driver ...
    (microsoft.public.development.device.drivers)
  • Re: NDIS Intermediate (passthru) communicates with second driver
    ... already occupied by NDIS. ... Now PASSTHRU is an NDIS intermediate driver, ... implements both an NDIS miniport and an NDIS protocol. ... device object via IoCreateDevicein the standard way in your IM. ...
    (microsoft.public.development.device.drivers)

Loading