[Version]
Signature   = "$WINDOWS NT$"
Class       = SoftwareComponent
ClassGuid   = {5c4c3332-344d-483c-8739-259e934c9cc8}
Provider    = %ProviderName%
DriverVer = 08/01/2018,8.0.1.0
CatalogFile = YamahaAE.cat

[SourceDisksNames]
222="Yamaha APO Installation Disk",,,

[SourceDisksFiles]
YamahaAE3.dll=222

[DestinationDirs]
SfxFx.CopyList=11 ; %windir%\system32

[SignatureAttributes]
YamahaAE3.dll=SignatureAttributes.PETrust

[SignatureAttributes.PETrust]
PETrust=true

[Manufacturer]
%MfgName% = ApoComponents,NTamd64

[ApoComponents.NTamd64]
%Apo.ComponentDesc% = ApoComponent_Install,SWC\VEN_YAMAHA&AID_YAP0

[ApoComponent_Install]
CopyFiles = SfxFx.CopyList
AddReg    = YamahaAPO.AddReg

[ApoComponent_Install.Services]
AddService = ,2    ; no function driver

[SfxFx.CopyList]
YamahaAE3.dll

[YamahaAPO.AddReg]
; YamahaAE Mode effect APO COM registration
HKCR,CLSID\%YAMAHA_FX_MODE_CLSID%,,,%MFX_FriendlyName%
HKCR,CLSID\%YAMAHA_FX_MODE_CLSID%\InProcServer32,,0x00020000,%%SystemRoot%%\System32\YamahaAE3.dll
HKCR,CLSID\%YAMAHA_FX_MODE_CLSID%\InProcServer32,ThreadingModel,,"Both"

; YamahaAE Mode effect APO registration
HKCR,AudioEngine\AudioProcessingObjects\%YAMAHA_FX_MODE_CLSID%, "FriendlyName", ,%MFX_FriendlyName%
HKCR,AudioEngine\AudioProcessingObjects\%YAMAHA_FX_MODE_CLSID%, "Copyright", ,%MsCopyRight%
HKCR,AudioEngine\AudioProcessingObjects\%YAMAHA_FX_MODE_CLSID%, "MajorVersion", 0x00010001, 1
HKCR,AudioEngine\AudioProcessingObjects\%YAMAHA_FX_MODE_CLSID%, "MinorVersion", 0x00010001, 1
HKCR,AudioEngine\AudioProcessingObjects\%YAMAHA_FX_MODE_CLSID%, "Flags", 0x00010001, %APO_FLAG_DEFAULT%
HKCR,AudioEngine\AudioProcessingObjects\%YAMAHA_FX_MODE_CLSID%, "MinInputConnections", 0x00010001, 1
HKCR,AudioEngine\AudioProcessingObjects\%YAMAHA_FX_MODE_CLSID%, "MaxInputConnections", 0x00010001, 1
HKCR,AudioEngine\AudioProcessingObjects\%YAMAHA_FX_MODE_CLSID%, "MinOutputConnections", 0x00010001, 1
HKCR,AudioEngine\AudioProcessingObjects\%YAMAHA_FX_MODE_CLSID%, "MaxOutputConnections", 0x00010001, 1
HKCR,AudioEngine\AudioProcessingObjects\%YAMAHA_FX_MODE_CLSID%, "MaxInstances", 0x00010001, 0xffffffff
HKCR,AudioEngine\AudioProcessingObjects\%YAMAHA_FX_MODE_CLSID%, "NumAPOInterfaces", 0x00010001, 1
HKCR,AudioEngine\AudioProcessingObjects\%YAMAHA_FX_MODE_CLSID%, "APOInterface0", ,"{FD7F2B29-24D0-4B5C-B177-592C39F9CA10}"

[Strings]
Apo.ComponentDesc = "Yamaha Audio Effects Component"

YAMAHA_FX_MODE_CLSID = "{84CC109C-FE50-4BB2-9803-EF20634AA22F}"

FX_UI_CLSID                = "{19166F23-5F08-47F9-BB57-9F57A977D88E}"
AUDIOENDPOINT_EXT_UI_CLSID = "{6C57B2A2-91F5-4b90-93D5-FAB82485ECA6}"

MFX_FriendlyName = "Audio Proxy Yamaha APO (mode effect)"

ProviderName = "Yamaha"
MfgName      = "Yamaha"
MsCopyRight  = "Copyright(c) 2017-2019 Yamaha Corporation"

APO_FLAG_DEFAULT = 0x0000000e

REG_BINARY = 0x00000001
REG_DWORD = 0x00010001
REG_MULTI_SZ = 0x00010000
