;---------------------------------------------------------------------------;
;                                                                           ;
; Copyright (C) 2004  YAMAHA Corporation  All rights reserved.              ;
;                                                                           ;
;---------------------------------------------------------------------------;

[Version]
;<This needs to change for each WHQL submission.>
CatalogFile=YVMIDI.cat
Signature="$CHICAGO$"
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
provider=%YMH%
;LayoutFile=layout.inf
DriverVer = 07/20/2004, 6.13.10.0001

[SourceDisksNames]
77 = %YMHDISK%,,,""

[SourceDisksFiles]
YVMIDI.SYS   = 77

[Manufacturer]
%YamahaMfg%=Yamaha

[Yamaha]
%WDM_MOTOMI.DeviceDesc% = WDM_MOTOMI, SW\{2654E0AD-2D47-4c44-903D-40D2F278B386}

[DestinationDirs]
DefaultDestDir         = 11
WDM_MOTOMI.CopyList = 10,system32\drivers ; %SystemRoot%\system32\drivers


;;**************************************************************************;;
;;            Windows 98/Me Install Section
;;**************************************************************************;;

;;--------------------------------------------------------------------------
;;            From MIDIOut to MIDIIn for Win98/Me
;;--------------------------------------------------------------------------      
[WDM_MOTOMI]
AlsoInstall=KS.Registration(ks.inf), WDMAUDIO.Registration(wdmaudio.inf),wdmaudio.fdma(wdmaudio.inf)
CopyFiles=WDM_MOTOMI.CopyList
AddReg=WDM_MOTOMI.AddReg

[WDM_MOTOMI.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Uart0%,WDM.Interface.Uart0
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Uart0%,WDM.Interface.Uart0
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_Uart0%,WDM.Interface.Uart0
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Uart1%,WDM.Interface.Uart1
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Uart1%,WDM.Interface.Uart1
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_Uart1%,WDM.Interface.Uart1
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Uart2%,WDM.Interface.Uart2
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Uart2%,WDM.Interface.Uart2
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_Uart2%,WDM.Interface.Uart2
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Uart3%,WDM.Interface.Uart3
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Uart3%,WDM.Interface.Uart3
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_Uart3%,WDM.Interface.Uart3

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

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

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

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

[WDM_MOTOMI.AddReg]
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,YVMIDI.SYS
HKR,,NTMPDriver,,"YVMIDI.SYS,sbemul.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,,%WDM_MOTOMI.DeviceDesc%
HKR,Drivers\midi\wdmaud.drv,Description,,%WDM_MIDI%
HKR,Drivers\mixer\wdmaud.drv,Description,,%WDM_MOTOMI.DeviceDesc%


;;**************************************************************************;;
;;            Windows2000/Xp Install Section
;;**************************************************************************;;

;;--------------------------------------------------------------------------
;;            From MIDIOut to MIDIIn for Win2000/Xp
;;--------------------------------------------------------------------------   
[WDM_MOTOMI.NT]
Include=ks.inf
Include=wdmaudio.inf
Needs=KS.Registration, WDMAUDIO.Registration

CopyFiles = WDM_MOTOMI.CopyList
AddReg    = WDM_MOTOMI_2K.AddReg

[WDM_MOTOMI.NT.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Uart0%,WDM.Interface.Uart0
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Uart0%,WDM.Interface.Uart0
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_Uart0%,WDM.Interface.Uart0
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Uart1%,WDM.Interface.Uart1
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Uart1%,WDM.Interface.Uart1
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_Uart1%,WDM.Interface.Uart1
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Uart2%,WDM.Interface.Uart2
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Uart2%,WDM.Interface.Uart2
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_Uart2%,WDM.Interface.Uart2
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Uart3%,WDM.Interface.Uart3
AddInterface=%KSCATEGORY_RENDER%,%KSNAME_Uart3%,WDM.Interface.Uart3
AddInterface=%KSCATEGORY_CAPTURE%,%KSNAME_Uart3%,WDM.Interface.Uart3

[WDM_MOTOMI.NT.Services]
AddService = MOTOMI, 0x00000002, MOTOMI_Service_Inst

[MOTOMI_Service_Inst]
DisplayName    = %WDM_MOTOMI.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\system32\drivers\YVMIDI.SYS

[WDM_MOTOMI_2K.AddReg]
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,YVMIDI.SYS
HKR,,NTMPDriver,,"YVMIDI.SYS,sbemul.sys"
HKR,Drivers,SubClasses,,"midi"
HKR,Drivers\midi\wdmaud.drv, Driver,,wdmaud.drv
HKR,Drivers\midi\wdmaud.drv,Description,,%WDM_MIDI%


;;--------------------------------------------------------------------------
;;            Common Section
;;--------------------------------------------------------------------------      
[WDM_MOTOMI.CopyList]
YVMIDI.SYS,,,0X40  ;;copyflg_overwrite_older_only


;;--------------------------------------------------------------------------
;;            String Section
;;--------------------------------------------------------------------------      
[Strings]
;;-----------------------------------------
;;      Non Localized ("must not" modify)
;;-----------------------------------------
YMH="YAMAHA Corporation"
YMHDISK="YAMAHA Driver Disk"
YamahaMfg="YAMAHA Corporation"

WDM_MOTOMI.DeviceDesc = "YAMAHA Virtual MIDI Driver"
KSNAME_Uart0   = "Uart0"
KSNAME_Uart1   = "Uart1"
KSNAME_Uart2   = "Uart2"
KSNAME_Uart3   = "Uart3"

WDM_MIDI="WDM-based Device"
KSCATEGORY_AUDIO    = "{6994AD04-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_RENDER   = "{65E8773E-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_CAPTURE  = "{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_TOPOLOGY = "{DDA54A40-1E4C-11D1-A050-405705C10000}"
Proxy.CLSID         = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"

;;Device Name
WDM.Uart0.szPname   = "YAMAHA Virtual MIDI Device 0"
WDM.Uart1.szPname   = "YAMAHA Virtual MIDI Device 1"
WDM.Uart2.szPname   = "YAMAHA Virtual MIDI Device 2"
WDM.Uart3.szPname   = "YAMAHA Virtual MIDI Device 3"

WDM_MOTOMI.SvcDesc  = "YAMAHA Virtual MIDI Device"
