; Copyright: (c) 2018 Razer Inc. All rights reserved
;
; RzDev_006e_Mou.inf
;

[Version]
Signature   = "$WINDOWS NT$"
Class       = Mouse
ClassGuid   = {4D36E96F-E325-11CE-BFC1-08002BE10318}
Provider    = %ManufacturerName%
CatalogFile = rzdev_006e_mou.cat
DriverVer=04/23/2018,6.2.9200.16384

[DestinationDirs]
DefaultDestDir = 12
RzDev_Device_CoInstaller_CopyFiles = 11

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

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

;*****************************************
; Install Section
;*****************************************

[Manufacturer]
%ManufacturerName%=Standard,NTamd64,NTamd64.6.2

[Standard.NTamd64]
%RzDev.DeviceDesc.006e%=RzDev_Device.6.1,     HID\Vid_1532&Pid_006e&MI_00

[Standard.NTamd64.6.2]
%RzDev.DeviceDesc.006e%=RzDev_Device,         HID\Vid_1532&Pid_006e&MI_00

[RzDev_Device.6.1.NT]
Include = msmouse.inf
Needs = HID_Mouse_Inst.NT
CopyFiles=Drivers_Dir

[RzDev_Device.NT]
Include = msmouse.inf
Needs = HID_Mouse_Inst.NT
CopyFiles=Drivers_Dir

[Drivers_Dir]
RzDev_006e.sys

[RzDev_Device.6.1.NT.HW]
Include=msmouse.inf
Needs=HID_Mouse_Inst.NT.HW
AddReg = RzDev_Device.NT.HW.AddReg

[RzDev_Device.NT.HW]
Include=msmouse.inf
Needs=HID_Mouse_Inst.NT.HW
AddReg = RzDev_Device.NT.HW.AddReg

[RzDev_Device.NT.HW.AddReg]  
HKR,,"UpperFilters",0x00010000,"RzDev_006e"
HKR,,"ControlDevice",0x00010001,1
HKR,,"DeviceType",0x00010001,1
;; FILE_DEVICE_SECURE                         
HKR,,DeviceCharacteristics,0x10001,0x0100         ; Use same security checks on relative opens
; SDDL_DEVOBJ_SYS_ALL_ADM_RWX_WORLD_RWX_RES_RWX
HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GRGWGX;;;BA)(A;;GRGWGX;;;WD)(A;;GRGWGX;;;RC)"

;-------------- Service installation
[RzDev_Device.6.1.NT.Services]
AddService = RzDev_006e,, RzDev_Service_Inst
Include=msmouse.inf
Needs=HID_Mouse_Inst.NT.Services

[RzDev_Device.NT.Services]
AddService = RzDev_006e,, RzDev_Service_Inst
Include=msmouse.inf
Needs=HID_Mouse_Inst.NT.Services

; -------------- RzDev driver install sections
[RzDev_Service_Inst]
DisplayName    = %RzDev.ServiceDesc%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\RzDev_006e.sys

;
;--- RzDev_Device Coinstaller installation ------
;

[RzDev_Device.6.1.NT.CoInstallers]
AddReg=RzDev_Device_CoInstaller_AddReg
CopyFiles=RzDev_Device_CoInstaller_CopyFiles

[RzDev_Device_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01009.dll,WdfCoInstaller"

[RzDev_Device_CoInstaller_CopyFiles]
WdfCoInstaller01009.dll

[RzDev_Device.6.1.NT.Wdf]
KmdfService =  RzDev_006e, RzDev_wdfsect

[RzDev_wdfsect]
KmdfLibraryVersion = 1.9

[Strings]
ManufacturerName="Razer Inc"
DiskName = "Razer 006e Installation Disk"
RzDev.ServiceDesc = "Razer 006e Service"
RzDev.DeviceDesc.006e = "Razer DeathAdder Essential"
