Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

question on device tree

11 views
Skip to first unread message

qwert

unread,
Jul 8, 2008, 1:20:01 AM7/8/08
to
I have a driver that I install using inf file.
when I tried to check whether the driver is installed and loaded perfectly
using device Tree,I see that in device Tree there are two views.
one is driver view and the other is pnp view.
I can see my driver only in driver view and not in pnp view.
why is that????
I have also attached my inf file below.pls let me know if I have gone wrong
anywhere
also let me know if the class and classguid entry in the inf file mandatory.
My driver doesnt belong to any class.
Is it ok if I give the class guid like the one below???
Thanks in advance

[Version]
signature = "$Windows NT$"
Provider = %Company%
ClassGuid = {00000000-0000-0000-0000-000000000000}
DriverVer = 07/07/2008,1.0.0.1
CatalogFile = mydriver.cat

[DestinationDirs]
DefaultDestDir = 12
mydriver.DriverFiles = 12

[SourceDisksNames]
1 = %Disk1%

[SourceDisksFiles]
mydriver.sys = 1

[DefaultInstall]
OptionDesc = %mydriverServiceDesc%
CopyFiles = mydriver.DriverFiles

[DefaultInstall.Services]
AddService = %mydriverServiceName%,,mydriver.Service
AddReg = mydriver.AddRegistry

[DefaultUninstall]
DelFiles = mydriver.DriverFiles
DelReg = mydriver.DelRegistry

[DefaultUninstall.Services]
DelService = mydriver,0x200 ; Flags note to stop service first

[mydriver.Service]
DisplayName = %mydriverServiceName%
Description = %mydriverServiceDesc%
ServiceBinary = %12%\mydriver.sys
ServiceType = 1 ;SERVICE_KERNEL_DRIVER
StartType = 2 ;SERVICE_AUTO_START
ErrorControl = 0 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = "ndis"
Dependencies = "pnp_tdi"
AddReg = mydriver.AddRegistry

[mydriver.AddRegistry]
/*added few registry entries */

[mydriver.DelRegistry]
/*deleted few registry entries*/

[mydriver.DriverFiles]
mydriver.sys

[Strings]
Company = "xyz"
mydriverServiceDesc = "My Driver"
mydriverServiceName = "mydriver"
mydriverReg = "system\currentcontrolset\services\mydriver"
mydriverRegParameter = "system\currentcontrolset\services\mydriver\Parameters"
Disk1 ="mydriver Source Media"

Tim Roberts

unread,
Jul 10, 2008, 2:57:24 AM7/10/08
to
qwert <qw...@discussions.microsoft.com> wrote:
>
>I have a driver that I install using inf file.
>when I tried to check whether the driver is installed and loaded perfectly
>using device Tree,I see that in device Tree there are two views.
>one is driver view and the other is pnp view.
>I can see my driver only in driver view and not in pnp view.
>why is that????

Because yours is not a PnP driver. Did you think it was?

>also let me know if the class and classguid entry in the inf file mandatory.
>My driver doesnt belong to any class.
>Is it ok if I give the class guid like the one below???

No, if your driver doesn't fit in one of the standard classes, you should
make one up, but create your own GUID with guidgen.
--
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.

qwert

unread,
Jul 10, 2008, 11:51:00 PM7/10/08
to
I know that my driver is not a pnp driver.
But I see entries of legacy driver in the pnp driver view.
I wonder why my driver is not getting listed in that list.
My driver is a legacy driver.

Tim Roberts

unread,
Jul 11, 2008, 11:24:02 PM7/11/08
to
qwert <qw...@discussions.microsoft.com> wrote:
>
>I know that my driver is not a pnp driver.
>But I see entries of legacy driver in the pnp driver view.
>I wonder why my driver is not getting listed in that list.
>My driver is a legacy driver.

Why do you care?

qwert

unread,
Jul 14, 2008, 12:33:00 AM7/14/08
to
I dont understand why I shouldnt care about that????
I see LEGACY_DRIVER entry in the enum key of my driver.
But why it is not coming in the pnp view??????????

qwert

unread,
Jul 14, 2008, 12:38:00 AM7/14/08
to
I see my driver getting listed in th pnp view in few machines.
I have many setup of windows server 2003.few have entry in pnp view of the
device tree,few doesnt have.

Tim Roberts

unread,
Jul 16, 2008, 1:06:32 AM7/16/08
to
qwert <qw...@discussions.microsoft.com> wrote:
>
>I dont understand why I shouldnt care about that????

Because it doesn't matter. Does the driver work? Then what's the problem?

>I see LEGACY_DRIVER entry in the enum key of my driver.
>But why it is not coming in the pnp view??????????

Because it's not a PnP driver.

qwert

unread,
Jul 16, 2008, 8:50:39 AM7/16/08
to
The driver works.I have no problem with that.
I see that my driver is not listed in non plug and play drivers section
device manager.
I see the entry in few machines and few machines dont have the entry in
device manager.
I am given the task of fixing the issue.
Thats why I am keen to know the problem that causes this issue.

Thanks in advance

0 new messages