; Installation inf for the QUAD-CAPTURE
;
; Copyright (c) 2013 Roland Corporation
;
[Version]
Signature="$Windows NT$"
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%MfgName%
CatalogFile=RDID1117.CAT
DriverVer=10/11/2013,1.05.02.0000

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

[DestinationDirs]
RDID0117.Files.Asio	= 11
RDID0117.Files.User	= 11
RDID0117.Files.Inst	= 11
RDID0117.Files.As32	= 10,syswow64
RDID0117.Files.Ext	= 10,system32\drivers ; %SystemRoot%\system32\drivers
DefaultDestDir 	    = 10,system32\drivers ; %SystemRoot%\system32\drivers

[SourceDisksNames]
1=%RDID0117DiskName%,,

[SourceDisksFiles]
RDWM1117.SYS=1
RDCP1117.CPL=1
RDDP1117.EXE=1
RDCI1117.DLL=1
RDAS1117.DLL=1
RDAW1117.DLL=1
RDAH1117.DAT=1

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

[Manufacturer]
%MfgName%=Roland,NTamd64.6.2,NTamd64.7

;[ControlFlags]
;ExcludeFromSelect=*

[Roland]
;; Windows7 - Windows XP 64
;; not supported

[Roland.NTamd64.6.2]
;; Windows8
%RDID0117DeviceDesc%=RDID0117Install, USB\VID_0582&PID_012F ; QUAD-CAPTURE

[Roland.NTamd64.7]
;; not supported

;===============================================================;

[RDID0117Install.NTamd64]
Include=ks.inf,wdmaudio.inf
Needs=KS.Registration,WDMAUDIO.Registration
CopyFiles=RDID0117.Files.User,RDID0117.Files.Ext,RDID0117.Files.Asio,RDID0117.Files.As32
AddReg=RDID0117AddReg

[RDID0117Install.NTamd64.CoInstallers]
AddReg=RDID0117CoInstallers.AddReg
CopyFiles=RDID0117.Files.Inst

[RDID0117CoInstallers.AddReg]
HKR,,CoInstallers32,%REG_MSZ%,"RdCi1117.dll,ProcCoInst"

[RDID0117AddReg]
HKR,,DevLoader,,"*ntkern"
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,rdwm1117.sys
HKR,,NTMPDriver,,"rdwm1117.sys"

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

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

HKR,Drivers\wave\wdmaud.drv,Description,,%RDID0117DeviceDesc%
HKR,Drivers\midi\wdmaud.drv, Description,,%RDID0117DeviceDesc%
HKR,Drivers\mixer\wdmaud.drv,Description,,%RDID0117DeviceDesc%

HKLM,%MediaCategories%\%WDM.Tp11.szPname.GUID%,Name,,%WDM.Tp11.szPname%
HKLM,%MediaCategories%\%WDM.Tp11.szPname.GUID%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%WDM.Tp12.szPname.GUID%,Name,,%WDM.Tp12.szPname%
HKLM,%MediaCategories%\%WDM.Tp12.szPname.GUID%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%WDM.Tp13.szPname.GUID%,Name,,%WDM.Tp13.szPname%
HKLM,%MediaCategories%\%WDM.Tp13.szPname.GUID%,Display,1,00,00,00,00

[RDID0117Install.NTamd64.Services]
AddService = RDID1117, 0x00000002, RDID0117_Service_Inst

[RDID0117_Service_Inst]
DisplayName   = %RDID0117DeviceDesc%
ServiceType   = 1                  ; SERVICE_KERNEL_DRIVER
StartType     = 3                  ; SERVICE_DEMAND_START
ErrorControl  = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\system32\Drivers\rdwm1117.sys

;;;
;;
[RDID0117.Files.Ext]
RDWM1117.sys

[RDID0117.Files.User]
RDCP1117.CPL
RDDP1117.EXE

[RDID0117.Files.Inst]
RDCI1117.DLL

[RDID0117.Files.Asio]
RDAS1117.DLL

[RDID0117.Files.As32]
RDAW1117.DLL
RDAH1117.DAT

[RDID0117Install.NTamd64.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wv11%, WDM.Interface.Wv11
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wv11%, WDM.Interface.Wv11
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wv11%, WDM.Interface.Wv11
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wv12%, WDM.Interface.Wv12
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wv12%, WDM.Interface.Wv12
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wv12%, WDM.Interface.Wv12
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wv13%, WDM.Interface.Wv13
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wv13%, WDM.Interface.Wv13
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wv13%, WDM.Interface.Wv13

AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Md11%, WDM.Interface.Md11
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Md11%, WDM.Interface.Md11
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Md11%, WDM.Interface.Md11

AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Topology%,  WDM.Interface.Topology

[WDM.Interface.Wv11]
AddReg=WDM.Interface.Wv11.AddReg
[WDM.Interface.Wv11.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wv11.szPname%
[WDM.Interface.Wv12]
AddReg=WDM.Interface.Wv12.AddReg
[WDM.Interface.Wv12.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wv12.szPname%
[WDM.Interface.Wv13]
AddReg=WDM.Interface.Wv13.AddReg
[WDM.Interface.Wv13.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wv13.szPname%

[WDM.Interface.Md11]
AddReg=WDM.Interface.Md11.AddReg
[WDM.Interface.Md11.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Md11.szPname%

[WDM.Interface.Topology]
AddReg=WDM.Interface.Topo.AddReg
;; warning!! must be "Topo" because "Topology" is too long
[WDM.Interface.Topo.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Topology.szPname%

;---------------------------------------------------------------;
[Strings]
MfgName="Roland"

RDID0117DiskName="QUAD-CAPTURE Driver Installation disk"
RDID0117DeviceDesc="QUAD-CAPTURE"

Proxy.CLSID="{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}"

KSNAME_Wv11="Wave1-1"
KSNAME_Wv12="Wave1-2"
KSNAME_Wv13="WaveIn1-1"

WDM.Wv11.szPname="1-2 (QUAD-CAPTURE)"
WDM.Wv12.szPname="3-4 (QUAD-CAPTURE)"
WDM.Wv13.szPname="MAIN (QUAD-CAPTURE)"

KSNAME_Md11="Midi1-1"
WDM.Md11.szPname="QUAD-CAPTURE"

KSNAME_Topology="Topology"
WDM.Topology.szPname="QUAD-CAPTURE Mixer"

MediaCategories="SYSTEM\CurrentControlSet\Control\MediaCategories"

WDM.Tp11.szPname="1-2"
WDM.Tp12.szPname="3-4"
WDM.Tp13.szPname="MAIN"

WDM.Tp11.szPname.GUID = "{99E8F511-96C8-4444-B891-CFAE2EF8DA42}"
WDM.Tp12.szPname.GUID = "{37F2904F-D849-493C-870B-DD4976606CB9}"
WDM.Tp13.szPname.GUID = "{91F26B1C-B179-47D1-BB60-8A3BEE5D1F20}"

REG_MSZ = 0x00010000
