;@@@ESICoIn@@@
;Copyright (c) 2014 ESI Originals Corporation All rights Reserved
;
; ESI Originals MARA22XTU
;==============================================================
[Version]
Signature="$WINDOWS NT$"
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%Provider%
CatalogFile.NTx86  = x86.cat
CatalogFile.NTAMD64 = amd64.cat
DriverVer=12/07/2014,1.3.0

;==============================================================
[SourceDisksNames]
111 = %DiskDescription%,,,
222 = %DiskDescription%,,,\X64
333 = %DiskDescription%,,,\win32

[SourceDisksFiles.amd64]
M22XDRV.sys      = 222
M22Xasio.dll    = 222
M22Xasio32.dll  = 222
M22XPan.exe     = 222
esio.ico = 111

[SourceDisksFiles.X86]
M22XDRV.sys     = 333
M22Xasio.dll    = 333
M22XPan.exe     = 333
esio.ico = 111

;==============================================================
[EWDM.CopyList]
M22XDRV.sys

[EWDM.App.CopyList]
M22Xasio.dll
M22XPan.exe
esio.ico

[EWDM.Wow.CopyList]
M22Xasio32.dll

[DestinationDirs]
EWDM.CopyList=10,system32\drivers
EWDM.App.CopyList=10,system32
EWDM.Wow.CopyList=10,SysWow64

;==============================================================
[Manufacturer]
"ESIO"=DEVICES,NTx86,NTamd64

[DEVICES]
%DESC_DEVICE_AA%=DEVICE_BB, %PNPID_DEVICE_AA%

[DEVICES.NTx86]
%DESC_DEVICE_AA%=DEVICE_AA, %PNPID_DEVICE_AA%

[DEVICES.NTamd64]
%DESC_DEVICE_AA%=DEVICE_BB, %PNPID_DEVICE_AA%

;==============================================================
; DEVICE_AA (32bit platform)
;==============================================================
[DEVICE_AA]
CopyFiles=EWDM.CopyList,EWDM.App.CopyList
AddReg=DEVICE_AA.ASIO.AddReg,DEVICE_AA.PANEL.AddReg

[DEVICE_AA.ASIO.AddReg]
HKLM,SOFTWARE\ASIO\%ASIO_DriverNAME%,CLSID,,%ASIO_DriverGUID%
HKCR,CLSID\%ASIO_DriverGUID%,,,%ASIO_DriverNAME%
HKCR,CLSID\%ASIO_DriverGUID%\InProcServer32,,,"%10%\system32\%FILE.ASIO%"
HKCR,CLSID\%ASIO_DriverGUID%\InProcServer32,ThreadingModel,,"Apartment"

[DEVICE_AA.PANEL.AddReg]
HKLM,Software\Microsoft\Windows\CurrentVersion\Run,%FILE.TITLE%,,%FILE.PANEL%

[DEVICE_AA.Services]
AddService = %SEVICENAMES%, 0x00000002, DEVICE_AA_Service_Inst

[DEVICE_AA_Service_Inst]
DisplayName   = %DEVICE_AA.SvcDesc%
ServiceType   = 1                  
StartType     = 3                  
ErrorControl  = 1                  
ServiceBinary = %12%\%FILE.EWDM%

;==============================================================
; DEVICE_BB (amd64 platform)
;==============================================================
[DEVICE_BB]
CopyFiles=EWDM.CopyList,EWDM.App.CopyList,EWDM.Wow.CopyList
AddReg=DEVICE_AA.ASIO.AddReg, DEVICE_BB.WOW.ASIO.AddReg, DEVICE_AA.PANEL.AddReg

[DEVICE_BB.WOW.ASIO.AddReg]
; Wow64 ASIO
HKLM,SOFTWARE\Wow6432Node\ASIO\%ASIO_DriverNAME%,CLSID,,%ASIO_DriverGUID%
HKCR,Wow6432Node\CLSID\%ASIO_DriverGUID%,,,%ASIO_DriverNAME%
HKCR,Wow6432Node\CLSID\%ASIO_DriverGUID%\InProcServer32,,,"%10%\system32\%FILE.WOW.ASIO%"
HKCR,Wow6432Node\CLSID\%ASIO_DriverGUID%\InProcServer32,ThreadingModel,,"Apartment"

[DEVICE_BB.Services]
AddService = %SEVICENAMES%, 0x00000002, DEVICE_AA_Service_Inst


;====================== Strings ===============================
[Strings]

Provider				="ESI Originals"
DiskDescription         ="MARA22XTU Installation Disk"
DESC_DEVICE_AA			="MARA22XTU Controller driver"
PNPID_DEVICE_AA			="USB\VID_0A92&PID_A031&REV_0001&MI_01"
DEVICE_AA.SvcDesc       ="Service for ESIO MARA22XTU Controller driver"

ASIO_DriverGUID         ="{F5F260C6-9C08-47f6-806E-8826FAC381BE}"
ASIO_DriverNAME         ="ASIO 2.0 - ESIO MARA22XTU"

SEVICENAMES				="MAYA22XTU_AA"

FILE.EWDM				="M22XDRV.sys"
FILE.ASIO				="M22Xasio.dll"
FILE.WOW.ASIO			="M22Xasio32.dll"
FILE.PANEL				="M22XPan.exe"
FILE.TITLE				="MARA22XTU PANEL"
