Tech Support > Microsoft Windows > Drivers > WDM driver instalation
WDM driver instalation
Posted by Eugene on July 29th, 2003


I have simple audio WDM driver that I install it with an
INF file. I specify in my INF file StartType of 3 wich
means SERVICE_DEMAND_START. After instalation I get these
registry keys in
HKLM\System\CurrentControlSet\Service\MyAudioWMD

Start 3
Type 1
ErrorControl 1

The problem is when I restart my computer, my driver is
loaded at system startup not as it is specified in Start
option at demand start. When I set Start type to
SERVICE_DISABLED (0x4) the driver is not loaded at system
startup, which is the expected behaviour. Is there anybody
that experienced this problem ? I suppose that PnP manager
is involved at sometime or may be LoadOrder key in
registry, but how can I control and instruct them ? The
[Vesrion] section of my INF file is :

[Version]
Signature=$Windows NT$
Provider=%Provider%
Class = Media
ClassGuid = {4d36e96c-e325-11ce-bfc1-08002be10318}
DriverVer=07/28/2003,5,0,1636,1

and the service section is :

[DriverService]
DisplayName = "WDM Audio driver"
ServiceType=1

StartType=3

ErrorControl=1

ServiceBinary=%10%\system32\drivers\wdmaudio.sys



Thanks
Eugene

Posted by Bill McKenzie on July 29th, 2003


From the DDK documentation:

After all the boot drivers have loaded and the boot devices are started, the
PnP Manager configures the rest of the PnP devices and loads their drivers.

As it configures these devices, the PnP Manager loads the drivers for the
devices, regardless of the drivers' StartType values, and starts the
devices. Many of these drivers are SERVICE_DEMAND_START drivers, but they
can have any StartType.
The PnP Manager ignores registry entries that were created as a result of
INF Dependencies entries and LoadOrderGroup entries for drivers that it
loads in this step. The load ordering is based on the physical device
hierarchy.

--
Bill McKenzie
Compuware Corporation
Watch your IRPs/IRBs/URBs/SRBs/NDIS pkts with our free WDMSniffer tool:
http://frontline.compuware.com/nashu...es/utility.htm


"Eugene" <dichev@code.bg> wrote in message
news:0ade01c355c0$9ad64000$a101280a@phx.gbl...


Posted by Maxim S. Shatskih on July 29th, 2003


Also:
- this occurs before the non-PnP System drivers are loaded. So, all PnP drivers
are System by definition.

Max



Posted by Eugene on July 30th, 2003


So, the question now is how can I instruct PnP Manager to
not load my driver at system startup?

Thanks,
Eugene

Posted by Maxim S. Shatskih on July 30th, 2003


Mark the devnode as disabled.

"Eugene" <dichev@code.bg> wrote in message
news:098601c3566c$6c61eec0$a301280a@phx.gbl...



Similar Posts