[wdmaudiodev] Re: AW: Re: Inf2Cat does not use String-expansion [bcc][faked-from]

  • From: wade dawson <wdawson61@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Wed, 5 Feb 2014 08:20:21 -0500

Hi Børge.

I also tried to do as you mention, to have one .inx-file that I could
simply change a [strings] constant in to support multi-branding of the
driver package.  I got very close. however, the lines:
 [SourceDisksFiles]

%SysfileBase%.sys = 1


seem to choke the package builder:


------ Build started: Project: UAC2AudioDriver-pkg, Configuration: Release
x64 ------

  .........................

  Signability test failed.



  Errors:

  22.9.10: %sysfilebase%.sys in [sysfiles.copylist] is missing from
[SourceDisksFiles] section in \_uac2audio.inf; driver may not sign
correctly until this is resolved.



. . I guess it doesn't (and probably shouldn't) do string substitutions.


Since I'm relying on the package project to create, well, the driver
package, I never went on to test wether PnP would actually load the
driver... My guess is that it would...


I have posted my .inx with any brand/product specific info removed for your
perusal.

Initially I thought I might be able to pull in the [strings] section using
the equivalent of a C #include... If its possible, I couldn't figure it
out,,,

Good Luck!


----  BEGIN INX FILE ----

;-------------------------------------------------------------------------


[Version]

Signature="$WINDOWS NT$"

Class=MEDIA

ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}

DriverVer=11/20/2013,00.00.00.000

Provider=%Provider%

DriverPackageDisplayName=%DriverName%

DriverPackageType=PlugAndPlay

CatalogFile   = %SysFileBase%.cat

CatalogFile.ntamd64 = %SysFileBase%_x64.cat


[Manufacturer]

%MfgName%=Models,ntamd64


[Models]

%VID_0000_PID_0000%=DDInstall,USB\VID_0000&PID_0000


[Models.ntamd64]

%VID_0000_PID_0000%=DDInstall,USB\VID_0000&PID_0000


;--------------------


[DDInstall.NT]

Include=ks.inf, wdmaudio.inf

Needs=KS.Registration, WDMAUDIO.Registration

CopyFiles=SysFiles.CopyList

AddReg=Device_AddReg


[DDInstall.NT.Services]

Addservice = %SysFileBase%, 0x00000002, DriverService


[DDInstall.NT.Interfaces]

AddInterface=%KSCATEGORY_AUDIO%,"GLOBAL",Add_Interface_Section,0

AddInterface=%KSCATEGORY_RENDER%,"GLOBAL",Add_Interface_Section,0

AddInterface=%KSCATEGORY_CAPTURE%,"GLOBAL",Add_Interface_Section,0


;--------------------


[Add_Interface_Section]

AddReg=Add_Interface_Section_AddReg


[Add_Interface_Section_AddReg]

HKR,,CLSID,,%CLSID_KSPROXY%

HKR,,FriendlyName,,%Generic.DeviceDesc%

HKR,,"UpperFilters",0x00010000,"ksthunk" ; REG_MULTI_SZ value

;--------------------


[Device_AddReg]

HKR,,DevLoader,,*ntkern

HKR,,NTMPDriver,,%SysFileBase%.sys

HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"

HKR,Drivers,SubClasses,,"wave,midi,mixer"

HKR,Drivers\wave\wdmaud.drv, Driver,,wdmaud.drv

HKR,Drivers\wave\wdmaud.drv,Description,,%Generic.DeviceDesc%

HKR,Drivers\midi\wdmaud.drv,Driver,,wdmaud.drv

HKR,Drivers\midi\wdmaud.drv,Description,,%Generic.DeviceDesc%

HKR,Drivers\mixer\wdmaud.drv,Driver,,wdmaud.drv

HKR,Drivers\mixer\wdmaud.drv,Description,,%Generic.DeviceDesc%


;--------------------


[DriverService]

DisplayName    = %DriverName%

ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER

StartType      = 3                  ; SERVICE_DEMAND_START

ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL

ServiceBinary  = %12%\%SysFileBase%.sys

LoadOrderGroup = Base


;--------------------


[SysFiles.CopyList]

%SysFileBase%.sys


[DestinationDirs]

SysFiles.CopyList = 12


[SourceDisksNames]

1=%DiskName%


[SourceDisksFiles]

MrBlobby_UAC2Audio.sys = 1



;---------------------------------------------------------------;


[Strings]

Provider="MrBlobby"

MfgName="MrBlobby Music"

DriverName="MrBlobby Blob-o-matic UAC2 Driver"

DiskName="MrBlobby Blob-o-matic Driver installation disk"

Generic.DeviceDesc="MrBlobby UAC2 Device"

SysFileBase="MrBlobby_UAC2Audio"

VID_0000_PID_0000="Blob-o-Matic"


CLSID_KSPROXY="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"

KSCATEGORY_AUDIO="{6994AD04-93EF-11D0-A3CC-00A0C9223196}"

KSCATEGORY_RENDER="{65E8773E-8F56-11D0-A3B9-00A0C9223196}"

KSCATEGORY_CAPTURE="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"


---- END INX FILE ----


On Wed, Feb 5, 2014 at 3:33 AM, Børge Strand-Bergesen <
borge.strand@xxxxxxxxx> wrote:

> Thanks Tobias,
>
> I've tried those two steps but my test machine gives error messages
> which make no sense to me. I will post them when I'm back at that
> computer.
>
> Børge
>
> On Wed, Feb 5, 2014 at 9:29 AM, Tobias Erichsen <erichsen@xxxxxxxxxxxxx>
> wrote:
> > I would start taking hints from other devices inf-files and then try
> > to make sense of them by looking at the documentation:
> >
> >
> http://msdn.microsoft.com/en-us/library/windows/hardware/ff549520(v=vs.85).aspx
> >
> > ChkInf in the tools directory of the WDK gives some good feedback about
> > possible errors in your inf-file...
> >
> > Tobias
> >
> ******************
>
> WDMAUDIODEV addresses:
> Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
> Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
> Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
> Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx
>
> URL to WDMAUDIODEV page:
> http://www.wdmaudiodev.com/
>
>


-- 
*Wade Dawson*
*DT Multimedia*

Other related posts: