; Copyright: (c) 2016 Razer Inc. All rights reserved

[Version]
Signature   = "$WINDOWS NT$"
Class       = Keyboard
ClassGuid   = {4D36E96B-E325-11CE-BFC1-08002BE10318}
Provider    = %Razer%
DriverVer=07/20/2016,6.2.9200.16385
;CatalogFile = rz021fkb.cat
CatalogFile.NTx86 = rz021fkb.cat
CatalogFile.NTAMD64 = rz021fkb_64.cat

[DestinationDirs]
DefaultDestDir = 12
Razer_CoInstaller_CopyFiles = 11

[Manufacturer]
%Razer%=Standard,NTAMD64,NTAMD64.6.2

[Standard.NTAMD64]
%Razer021F.DeviceDesc%=Razer.6.1, HID\Vid_1532&Pid_021F&MI_01&Col01

[Standard.NTAMD64.6.2]
%Razer021F.DeviceDesc%=Razer, HID\Vid_1532&Pid_021F&MI_01&Col01

[Razer.NT]  
Include = keyboard.inf
Needs = HID_Keyboard_Inst.NT
CopyFiles = Razer.NT.Copy

[Razer.6.1.NT]  
Include = keyboard.inf
Needs = HID_Keyboard_Inst.NT
CopyFiles = Razer.NT.Copy

[Razer.NT.Copy]
rzudd.sys

[Razer.NT.HW]
Include=keyboard.inf
Needs=HID_Keyboard_Inst.NT.HW
AddReg = Razer.NT.HW.AddReg

[Razer.6.1.NT.HW]
Include=keyboard.inf
Needs=HID_Keyboard_Inst.NT.HW
AddReg = Razer.NT.HW.AddReg

[Razer.NT.HW.AddReg]  
HKR,,"UpperFilters",0x00010000,"rzudd"
;; 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)"

[Razer.NT.Services]
AddService      = rzudd,, Razer_Service_Inst 
Include=keyboard.inf
Needs=HID_Keyboard_Inst.NT.Services

[Razer.6.1.NT.Services]
AddService      = rzudd,, Razer_Service_Inst 
Include=keyboard.inf
Needs=HID_Keyboard_Inst.NT.Services

[Razer_Service_Inst]
DisplayName     = %Razer.SvcDesc%                            
ServiceType     = 1                  ; SERVICE_KERNEL_DRIVER
StartType       = 3                  ; SERVICE_DEMAND_START
ErrorControl    = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary   = %12%\rzudd.sys                            

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

[SourceDisksFiles]
rzudd.sys    = 1,,
WdfCoInstaller01009.dll=1

[Razer.6.1.NT.CoInstallers]
AddReg          = Razer_CoInstaller_AddReg
CopyFiles       = Razer_CoInstaller_CopyFiles

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

[Razer_CoInstaller_CopyFiles]
WdfCoInstaller01009.dll

[Razer.6.1.NT.Wdf]
KmdfService              = rzudd,  rzudd_wdfsect

[rzudd_wdfsect]
KmdfLibraryVersion       = 1.9

[Strings]
Razer                    = "Razer Inc"
DiskId1                  = "Razer Installer"
Razer.SvcDesc            = "Razer Keyboard Driver"

Razer021F.DeviceDesc     = "Razer DeathStalker"
