From: isenhand on
Ok, I'm now at the point where I can get the driver loaded but I'm still
having a few problems.

I get no errors during installation but I notice the device gets installed
as "unknown device" and when I check properties for the device I get "No
drivers are installed for this device." However, all the files I think should
end up in the drivers directory do appear to have ended up there.

If I disable the driver and then enable it it changes from "unknown device"
to the correct name but still no drivers installed. So, what am I looking at?
Error in the inf file or something wrong with the code?

Thanks

From: Lost Soul on
On Apr 19, 1:02 pm, isenhand <isenh...(a)discussions.microsoft.com>
wrote:
> Ok, I'm now at the point where I can get the driver loaded but I'm still
> having a few problems.
>
> I get no errors during installation but I notice the device gets installed
> as "unknown device" and when I check properties for the device I get "No
> drivers are installed for this device." However, all the files I think should
> end up in the drivers directory do appear to have ended up there.
>
> If I disable the driver and then enable it it changes from "unknown device"
> to the correct name but still no drivers installed. So, what am I looking at?
> Error in the inf file or something wrong with the code?
>
> Thanks

What driver it is ??
From: Pavel A. on
What you disable (in the dev. manager) is a device instance, not a driver.
And if this show up as unknown device with no drivers installed - your
driver won't load.
Yes, maybe this is INF problem.
--pa


"isenhand" <isenhand(a)discussions.microsoft.com> wrote in message
news:BE794606-0B44-4B5E-9B3A-AF06573B1AD8(a)microsoft.com...
> Ok, I'm now at the point where I can get the driver loaded but I'm still
> having a few problems.
>
> I get no errors during installation but I notice the device gets installed
> as "unknown device" and when I check properties for the device I get "No
> drivers are installed for this device." However, all the files I think
> should
> end up in the drivers directory do appear to have ended up there.
>
> If I disable the driver and then enable it it changes from "unknown
> device"
> to the correct name but still no drivers installed. So, what am I looking
> at?
> Error in the inf file or something wrong with the code?
>
> Thanks
>
From: isenhand on
Well, I keep think its the inf file but I can't see why. I've looked at the
examples and the book.

Here's the inf file anyway:

; axissnd.inf - Install the AxisSnd driver
;

[Version]
Signature="$Windows NT$"
Class = Media
ClassGuid = {4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%MSFTUMDF%
DriverVer=02/22/2010,6.1.7600.16385
CatalogFile=AxisSnd.cat

[Manufacturer]
%MSFTUMDF%=Psychology,NTAMD64

[Psychology.NTAMD64]
%AxisSndDeviceName%=AxisSnd_Install, media\Vid_045e&Pid_94aa&mi_00
%AxisSndDeviceName%=AxisSnd_Install, media\VID_0547&PID_1002

[ClassInstall32]
AddReg=AxisSndClass_RegistryAdd

[AxisSndClass_RegistryAdd]
HKR,,,,%ClassName%
HKR,,Icon,,"-10"

[SourceDisksFiles]
AxisSnd.dll=1
Audio.dll=1
AxisMediaControl.dll=1
WudfUpdate_01009.dll=1
;WdfCoInstaller01009.dll=1
;WinUsbCoinstaller2.dll=1

[SourceDisksNames]
1 = %MediaDescription%

;[DestinationDirs]
;DefaultDestDir=12 ; dirid = \Drivers on WinNT platforms

; =================== UMDF AxisSnd Device ==================================

[AxisSnd_Install.NTAMD64]
CopyFiles=UMDriverCopy
;Include=WINUSB.INF ; Import sections from WINUSB.INF
;Needs=WINUSB.NT ; Run the CopyFiles & AddReg
directives for ;WinUsb.INF

[AxisSnd_Install.NTAMD64.hw]
AddReg=AxisSnd_Device_AddReg

[AxisSnd_Install.NTAMD64.Services]
AddService=WUDFRd,0x000001f8,WUDFRD_ServiceInstall ; flag 0x2 sets this as
the service for the device
;AddService=WinUsb,0x000001f8,WinUsb_ServiceInstall ; this service is
installed because its a filter.

[AxisSnd_Install.NTAMD64.CoInstallers]
CopyFiles=CoInstallers_CopyFiles
AddReg=CoInstallers_AddReg

[AxisSnd_Install.NTAMD64.Wdf]
;KmdfService = WINUSB, WinUsb_Install
UmdfService = UMDFAxisSnd, UMDFAxisSnd_Install
UmdfServiceOrder = UMDFAxisSnd

;[WinUsb_Install]
;KmdfLibraryVersion = 1.9

[UMDFAxisSnd_Install]
UmdfLibraryVersion=1.9.0
DriverCLSID="{d4112073-d09b-458f-a5aa-35ef21eef5de}"
ServiceBinary="AxisSnd.dll"

[AxisSnd_Device_AddReg]
HKR,,DeviceType,0x10001, FILE_DEVICE_SOUND

[WUDFRD_ServiceInstall]
DisplayName = %WudfRdDisplayName%
ServiceType = 1
StartType = 3
ErrorControl = 1
%ServiceBinary = %12%\WUDFRd.sys
ServiceBinary = %12%\umdf\AxisSnd.dll
%LoadOrderGroup = Base


;[WinUsb_ServiceInstall]
;DisplayName = %WinUsb_SvcDesc%
;ServiceType = 1
;StartType = 3
;ErrorControl = 1
;ServiceBinary = %12%\WinUSB.sys

[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WudfUpdate_01009.dll", "WdfCoInstaller"

[CoInstallers_CopyFiles]
WUDFUpdate_01009.dll
;WdfCoInstaller01009.dll
;WinUsbCoinstaller2.dll

[UMDriverCopy]
AxisSnd.dll
Audio.dll
AxisMediaControl.dll

[DestinationDirs]
CoInstallers_CopyFiles=11 ; copy to system32
UMDriverCopy=12,UMDF ; copy to drivers/umdf

; =================== Generic ==================================

[Strings]
MSFTUMDF="Psychology"
MediaDescription="C drive"
ClassName="AxisSnd"
WudfRdDisplayName="AxisSnd Driver"
AxisSndDeviceName="AxisSndDriver"
WinUsb_SvcDesc="WinUSB Driver"





"Pavel A." wrote:

> What you disable (in the dev. manager) is a device instance, not a driver.
> And if this show up as unknown device with no drivers installed - your
> driver won't load.
> Yes, maybe this is INF problem.
> --pa
>
>
> "isenhand" <isenhand(a)discussions.microsoft.com> wrote in message
> news:BE794606-0B44-4B5E-9B3A-AF06573B1AD8(a)microsoft.com...
> > Ok, I'm now at the point where I can get the driver loaded but I'm still
> > having a few problems.
> >
> > I get no errors during installation but I notice the device gets installed
> > as "unknown device" and when I check properties for the device I get "No
> > drivers are installed for this device." However, all the files I think
> > should
> > end up in the drivers directory do appear to have ended up there.
> >
> > If I disable the driver and then enable it it changes from "unknown
> > device"
> > to the correct name but still no drivers installed. So, what am I looking
> > at?
> > Error in the inf file or something wrong with the code?
> >
> > Thanks
> >
From: isenhand on
> What driver it is ??


At the moment its the mainly just the UMFD skeleton driver but hoping to use
that as the basis for my won driver so I have renamed it.