RE: NDIS IM driver DriverEntry called repeatedly with Window 2003

From: Sriram (Sriram_at_discussions.microsoft.com)
Date: 02/09/05


Date: Tue, 8 Feb 2005 18:11:01 -0800

Steve,

Thanks for the quick response.
I have installed clean system. Installed latest DDK that comes along with
RC1 from beta.microsoft.com to compile with the latest binaries, but still
the driver entry is called with every vlan that is created on the adapter.
I understand the driver has to be loaded only once, I am unable to under why
it is getting unloaded and reloaded each time a new VLAN is being created.

This happens in X-86, IA-64 and X-64 (AMD) builds.

I am downloading build 1433 (RC-2) from microsoft site hoping that it will
solve the issue.

Please advice what I need to do to avoid this problem.

- Sriram
"Steve" wrote:

> I have seen this strange behaviour before ... when
> installing IM driver you get the popups saying that
> driver is unsigned (if your system is configured to show
> popups). Popup prompts you to continue installing driver
> or not. There is one popup for each adapter that the IM
> will bind to. If you say yes to some popups and no to
> others, DriverEntry is called more than once.
>
> I am convinced that this type of behaviour is a bug in
> the OS/setup API. Regardless of how many adapters an IM
> will bind to (i.e. how many virtual adapters the IM will
> have), there is only one IM driver that is being
> installed so DriverEntry should only be called once!!!
> So, DriverEntry SHOULD only be called once and your IM
> drivers bind adapter function should be called once for
> each adapter that the IM binds to.
>
> Perhaps someone at MS can explain this strange behaviour.
>
> Sriram, perhaps you should try installing your IM on a
> clean machine ... I have found that after several months
> of development (installs/uninstalls/crashes, etc.) that
> my machine gets into a big mess and I reach a point where
> the IM wont install anymore! Also, make sure you use
> netcfg.exe (ddk example) to install and uninstall - it
> seems to be the only reliable thing that does it
> correctly!
>
> Steve.
>
> >-----Original Message-----
> >We have developed an NDIS intermedoate driver and also
> notify object to
> >support our driver.
> >
> >In build prior to 1289
> >==============
> >When the first virtual adapter is created the Driver
> Entry is called.
> >Thereafter the Driver Entry is not called even if more
> vritual adapter are
> >created.
> >
> >Build 1289 and 1421
> >=============
> >The driver entry is being called when each virtual
> component is being created.
> >
> >With reference to notify object
> after 'ApplyRegistryChanges' and before
> >'ApplyPnpChanges' the IM driver gets triggered.
> >
> >For some reason with build 1289 and 1421 the halt
> routine is being called
> >which triggers the driver being unloaded even though
> there are some VLAN
> >already on the adapter. Thereafter DriverEntry is being
> called once again.
> >
> >This behaviour is not seen in earlier builds of Windows
> 2003
> >
> >MUX behaviour
> >==========
> >I observed the same behaviour even with the mux sample
> in DDK.
> >
> >Please advice as what is the change due to which the
> halt is being called in
> >1289 and above causing the driver Entry being called
> with each VLAN creation.
> >
> >- Sriram.
> >.
> >
>



Relevant Pages

  • Re: Windows CD cant find my hard drives.
    ... Two of them are in a RAID 0 array. ... To quit setup without installing Windows XP, ... driver floppy, it offered a selection of drivers for the RAID. ...
    (microsoft.public.windowsxp.general)
  • Re: Explorer slow to find drives after Cameras installed
    ... Knowing that svchost.exe was the bug, as WIA is started from this, I seached ... This post hinted at a conflict or driver error of a device. ... After installing this ... The registry has been restored to its previous state before cleaning ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Linksys Wireless G USB Adapter issue..
    ... Would anyone know if installing a linksys Wireless G USB adapter could make ... followed your advice and used the same driver that you did. ...
    (microsoft.public.windows.vista.networking_sharing)
  • Re: USB plug-n-play fails on Bluetooth dongle upgrade
    ... Tech support for Linksys says I need to clean the registry and ... > installing the new device. ... Check the installation instructions for the Linksys adapter. ... *require* that the driver be installed before connecting the adapter the ...
    (microsoft.public.windowsxp.hardware)
  • Re: No Sound on IBM ThinkPad T42
    ... The Control Panel for "Sounds and Audio Devices" shows no playback ... "Sound, video and game controllers": ... I figured that all I need to do is re-install my sound card driver. ... I'm not the only person having problems installing SoundMAX ...
    (microsoft.public.windowsxp.general)

Loading