;*****************************************************************************
; INF for Apple Multitouch
; Copyright © 2007-2012 Apple Inc. All Rights Reserved.
;*****************************************************************************

[Version]
Signature="$WINDOWS NT$"
Class=HIDClass
ClassGUID={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%AAPL%
DriverPackageDisplayName="Apple Multitouch Mouse"
DriverPackageType=PlugAndPlay
DriverVer=09/11/2012,4.0.3.0
;*****************************************
; Catalog files need to be unique names
;*****************************************
CatalogFile=applemtm64.cat

[DestinationDirs]
DefaultDestDir = 12
MultitouchMouse_CoInstaller_CopyFiles = 11

;*****************************************************************************
; MultitouchMouse Device Filter Install Section
;*****************************************************************************


[Manufacturer]
%MfgName%=Apple, NTamd64


;=============================================================================
;Windows XP (AMD64 architecture)
[Apple.NTamd64]
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0223&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0224&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0225&MI_02

%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0230&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0231&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0232&MI_02

%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0236&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0237&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0238&MI_02

%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_023F&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0240&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0241&MI_02

%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0242&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0243&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0244&MI_02

%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0245&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0246&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0247&MI_02

%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0249&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_024A&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_024B&MI_02

%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_024C&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_024D&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_024E&MI_02

%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0252&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0253&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0254&MI_02

%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0259&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_025A&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_025B&MI_02

%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0262&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0263&MI_02
%MultitouchMouse.DeviceDesc%=MultitouchMouse,   USB\Vid_05ac&Pid_0264&MI_02

;*****************************************************************************
; MultitouchMouse Filter Section
;*****************************************************************************
[MultitouchMouse.NT]  
Include=input.inf
Needs=HID_Inst.NT
CopyFiles=MultitouchMouse.NT.Copy
AddReg=MultitouchMouse.NT.AddReg

[MultitouchMouse.NT.Copy]
applemtm.sys

[MultitouchMouse.NT.AddReg]                            
HKLM,%BOOTCAMP_KEY%,"MultitouchMouse",,"4.0.2.0"

[MultitouchMouse.NT.HW]
;================ Add our own stuff
AddReg = MultitouchMouse.NT.HW.AddReg

;================ Add in the standard stuff provided by HID
Include = input.inf
Needs = HID_Inst.NT.HW

[MultitouchMouse.NT.HW.AddReg]  
HKR,,"LowerFilters",0x00010000,"applemtm"


;*****************************************************************************
; MultitouchMouse Device Filter Service Section
;*****************************************************************************
;
; This will add applemtm as the service and make sure that applemtm.sys has
; been installed.
;
; Do not specify SPSVCINST_ASSOCSERVICE on filter drivers. 
;
[MultitouchMouse.NT.Services]
Include=Input.inf
Needs=HID_Inst.NT.Services
AddService = applemtm,, MultitouchMouse_Service_Inst 

[MultitouchMouse_Service_Inst]
DisplayName    = %MultitouchMouse.SvcDesc%                            
ServiceType    = %SERVICE_KERNEL_DRIVER% 
StartType      = %SERVICE_DEMAND_START% 
ErrorControl   = %SERVICE_ERROR_IGNORE% 
ServiceBinary  = %12%\applemtm.sys                            

[MultitouchMouse.NT.CoInstallers]
AddReg=MultitouchMouse_CoInstaller_AddReg
CopyFiles=MultitouchMouse_CoInstaller_CopyFiles

[MultitouchMouse_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,"WdfCoInstaller01005.dll,WdfCoInstaller"

[MultitouchMouse_CoInstaller_CopyFiles]
WdfCoInstaller01005.dll

[MultitouchMouse.NT.Wdf]
KmdfService = applemtm, MultitouchMouse_wdfsect

[MultitouchMouse_wdfsect]
KmdfLibraryVersion = 1.5


;*****************************************************************************
; Source file information
;*****************************************************************************

[SourceDisksNames]
1 = %DiskId1%,,,""

[SourceDisksFiles]
applemtm.sys  = 1,,
wdfcoinstaller01005.dll=1 ; make sure the number matches with SourceDisksNames


;*****************************************************************************
; String Secion
;*****************************************************************************
[Strings]
;
; Strings or constants that can be localized
;
AAPL    = "Apple Inc."
MfgName = "Apple Inc."

DiskId1                    = "Apple Drivers Disk"
MultitouchMouse.DeviceDesc = "Apple Multitouch Mouse"

MultitouchMouse.SvcDesc    = "Apple Multitouch Mouse"
BOOTCAMP_KEY               = "SOFTWARE\Apple Inc.\Boot Camp\Versions"

;
; Strings or constants that can NOT be localized
;
SPSVCINST_ASSOCSERVICE = 0x00000002
SERVICE_BOOT_START     = 0x0 
SERVICE_SYSTEM_START   = 0x1 
SERVICE_AUTO_START     = 0x2 
SERVICE_DEMAND_START   = 0x3 
SERVICE_DISABLED       = 0x4 

SERVICE_KERNEL_DRIVER  = 0x1 
SERVICE_ERROR_IGNORE   = 0x0 
SERVICE_ERROR_NORMAL   = 0x1 
SERVICE_ERROR_SEVERE   = 0x2 
SERVICE_ERROR_CRITICAL = 0x3 

REG_EXPAND_SZ          = 0x00020000 
REG_DWORD              = 0x00010001 
REG_MULTI_SZ           = 0x00010000
REG_BINARY             = 0x00000001
REG_SZ                 = 0x00000000
