Thanks David for your clarification!
My NDIS IM driver was not marked as mandatory in INF, so I’m going to attach
network stack in any case and act as a passthru driver if my DriverEntry
initialization routine fails.
Thanks,
Petr
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of David R. Cattley
Sent: 5. ?ervna 2009 18:31
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] DriverEntry of NDIS IM
Sure, that is true, the driver will not remain loaded.
What you fail to realize is the consequences of *not* loading that an IM
driver has on the system network stack.
What you have created is a situation where the IM driver is ‘bound’ into the
logical stack of drivers for a network interface. The IM driver is not
starting and you are expecting it to have no effect. That is not how it
works.
When an IM driver is bound to an adapter, the IM driver protocol edge
becomes exclusively bound to the adapter and a new ‘virtual’ adapter is
created by the miniport edge of the IM driver. This new virtual miniport is
where protocols are bound.
If the IM driver does not load that virtual miniport does not ever start and
as far as the system is concerned, the network adapter is not started.
If an IM driver is *bound* to an adapter, the IM driver becomes a critical
component for that logical interface.
That is just the way it works.
Good Luck,
Dave Cattley
Consulting Engineer
Systems Software Development
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Petr Kurtin
Sent: Friday, June 05, 2009 11:19 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] DriverEntry of NDIS IM
Hello,
I have modified passthru sample from the latest WDK on WinXP SP2 platfom.
The only change was that I’ve inserted “return STATUS_UNSUCCESSFUL” (=
NDIS_STATUS_FAILURE) at the first line in DriverEntry. After that, computer
was unable to get IP address and connect to net. I thought if DriverEntry
fails initialization, the driver will not remain loaded and that’s all… or
am I wrong?
Thanks,
Petr
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer