
;==============================================================================
; SnakeEyes.inf for Win7
; Copyright (c) 2010 G-SPY Inc.
;==============================================================================

[Version]
Signature   = "$Windows NT$"
Class       = HIDClass
ClassGuid   = {745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider    = %Provider%
DriverVer   = 03/11/2013,1.0.0.0
CatalogFile = CORM4032.cat


[SourceDisksNames]
99=%DiskName%,,

[SourceDisksFiles]
CORM40.sys = 99

[DestinationDirs]
DefaultDestDir  = 12
CopyUSBFilter 	= 10,system32\drivers

[ControlFlags]
ExcludeFromSelect = *

[Manufacturer]
%Provider%    = CorsUSB

[CorsUSB]
%DEVICENAME% = HidInst00,USB\Vid_1b1c&Pid_1b10&MI_00




; ---------------------------------------------------------       
[HidInst00]
Include     = input.inf
Copyfiles   = CopyUSBFilter


[CopyUSBFilter]
CORM40.sys

[HidInst00.HW]
AddReg = Filter.AddReg.HW

[Filter.AddReg.HW]
HKR,,"LowerFilters",%REG_MULTI_SZ%,"CORM40"

[HidInst00.Services]
AddService = HidUsb,%SPSVCINST_ASSOCSERVICE%,HIDUSB_Service_Inst
AddService  = CORM40,,CORM40_Service_Inst
;Include     = input.inf
;Needs       = HID_Inst.NT.Services

; ---------------------------------------------------------       
[CORM40_Service_Inst]
DisplayName     = %SvcDispName%
ServiceType     = %SERVICE_KERNEL_DRIVER%
StartType       = %SERVICE_DEMAND_START%
ErrorControl    = %SERVICE_ERROR_IGNORE%
ServiceBinary   = %10%\System32\Drivers\CORM40.sys
LoadOrderGroup  = Extended Base

[HIDUSB_Service_Inst]
DisplayName    = %HID.SvcDesc%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_AUTO_START%
ErrorControl   = %SERVICE_ERROR_IGNORE%
ServiceBinary  = %10%\system32\drivers\hidusb.sys
LoadOrderGroup = extended base
; ---------------------------------------------------------       
[Strings]
Provider    = "Corsair"
DiskName    = "Driver Disk"
SvcDispName = "Corsair M40 Gaming Mouse"
DEVICENAME  = "Corsair M40 Gaming Mouse"
HID.SvcDesc = "HID Class Driver"


SPSVCINST_ASSOCSERVICE = 0x00000002
SERVICE_KERNEL_DRIVER  = 0x00000001
SERVICE_DEMAND_START   = 0x00000003
SERVICE_ERROR_IGNORE   = 0x00000000
SERVICE_AUTO_START     = 0x00000003
REG_MULTI_SZ           = 0x00010000

