NdisDeregisterProtocol - Differences in W2k and Whistler ?

Have a NDIS 5.0 protocol driver that I want to use on W2K & Whistler32.
The NdisDeregisterProtocol () call is giving problem in W2k but is working
fine in Whistler32.

If I remove all the bindings, by calling the ProtocolUnbindAdapter handler,
before calling NdisDeregisterProtocol (), the OS hangs.
If I call NdisDeregisterProtocol () without removing the bindings my self,
the driver does not get unloaded and I continue to get the Status
indications given by the miniport.

The NdisDeregisterProtocol () is called from within the handler for
DriverObject->DriverUnload.

I could find the the NdisCloseAdapter call does get completed, when I
remove the bindings myself, before the NdisDeRegisterProtocol () call is
made.

I have seen this behaviour when I do a “net stop mydriver”.
Starting the driver with “net start mydriver” works fine.

Things work fine with Whistler32.

I have referred to implementations of packet and ndisuio drivers from the
ddk.

Any clues will be of great help.

Thanks & Regards,
Nitin


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