; /****************************************************************************
; ** JMCCGP_SY.INF                                                           **
; **                                                                         **
; ** COPYRIGHT (C) JMICRON 2008                                              **
; **                                                                         **
; ** JMB31x USB Generic Parent Lower Filter Driver INF File for SuYin        **
; ****************************************************************************/
[Version]
Signature="$Windows NT$"
Class=USB
ClassGUID={36FC9E60-C465-11CF-8056-444553540000}
Provider=%JM%
LayoutFile=Layout.inf
CatalogFile=jmccgp.cat
DriverVer=12/03/2009, 1.0.7.1

[SourceDisksNames]
1 = %InstallDisk%

[SourceDisksFiles.x86]
jmccgp.sys      = 1, x32
jmccgpInst.dll  = 1, x32

[SourceDisksFiles.amd64]
jmccgp.sys      = 1, x64
jmccgpInst.dll  = 1, x64

[DestinationDirs]
DefaultDestDir  = 12
JMCCGP_Copy     = 12
JMCCGP_Inst_Copy= 11

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%JM%=JM.Mfg, NTx86.5.1, NTamd64

[JM.Mfg.NTx86.5.1]
; JMicron's vid/pid
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_152D&PID_0310
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_152D&PID_0311
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_152D&PID_0312
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_152D&PID_0313
; SuYin's vid/pid
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F100
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F101
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_A125
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F205
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F206
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_17EF&PID_481D
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F207
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F208
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F210
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F211
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F216
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F217
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F219
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F220
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F221
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F222
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F223
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F224
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F225
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F226
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F227
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F228
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F229
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F22A
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F22B
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F22C
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F22D
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F22E
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F22F
; SuYin's USB 2.0 Camera vid/pid
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F240
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F241
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F242
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F243
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F244
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F245
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F246
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F247
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F248
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F249
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F24A
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F24B
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F24C
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F24D
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F24E
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F24F

[JM.Mfg.NTamd64]
; JMicron's vid/pid
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_152D&PID_0310
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_152D&PID_0311
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_152D&PID_0312
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_152D&PID_0313
; SuYin's vid/pid
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F100
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F101
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_A125
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F205
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F206
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_17EF&PID_481D
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F207
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F208
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F210
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F211
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F216
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F217
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F219
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F220
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F221
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F222
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F223
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F224
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F225
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F226
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F227
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F228
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F229
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F22A
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F22B
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F22C
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F22D
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F22E
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F22F
; SuYin's USB 2.0 Camera vid/pid
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F240
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F241
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F242
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F243
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F244
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F245
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F246
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F247
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F248
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F249
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F24A
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F24B
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F24C
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F24D
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F24E
%JMCCGP_DeviceDesc%=JMCCGP, USB\VID_064E&PID_F24F

[JMCCGP.NTx86]
Include=USB.inf
Needs=Composite.Dev.NT
CopyFiles=JMCCGP_Copy, JMCCGP_Inst_Copy
AddReg=JMCCGP_AddReg, JMCCGP_InstPostProc

[JMCCGP.NTamd64]
Include=USB.inf
Needs=Composite.Dev.NT
CopyFiles=JMCCGP_Copy, JMCCGP_Inst_Copy
AddReg=JMCCGP_AddReg, JMCCGP_InstPostProc

[JMCCGP_AddReg]

[JMCCGP.NTx86.Services]
AddService = usbccgp, 0x00000002, CommonClassParent.AddService
AddService = JmUsbCcgp, 0x00000000, JMCCGP_ServiceInstall

[JMCCGP.NTamd64.Services]
AddService = usbccgp, 0x00000002, CommonClassParent.AddService
AddService = JmUsbCcgp, 0x00000000, JMCCGP_ServiceInstall

[CommonClassParent.AddService]
DisplayName    = %GenericParent.ServiceDesc%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_NORMAL%
ServiceBinary  = %12%\usbccgp.sys
LoadOrderGroup = Base

[JMCCGP_ServiceInstall]
Displayname   = %ServiceDisplayName%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\jmccgp.sys

[JMCCGP.NTx86.HW]
AddReg = JMCCGP_HW_AddReg

[JMCCGP.NTamd64.HW]
AddReg = JMCCGP_HW_AddReg

[JMCCGP_HW_AddReg]
HKR,,"LowerFilters",0x00010008, JmUsbCcgp

[JMCCGP_InstPostProc]
HKLM,%RunOnceKey%,JmccgpPostInst,,"Rundll32.exe jmccgpInst.dll,Install %01%\jmccgp_sy.inf"

[JMCCGP_Copy]
jmccgp.sys

[JMCCGP_Inst_Copy]
jmccgpInst.dll

[Strings]
;-----------------
; Non-Localizable
;-----------------
SERVICE_KERNEL_DRIVER=1
SERVICE_DEMAND_START=3
SERVICE_ERROR_NORMAL=1
GenericParent.ServiceDesc="Microsoft USB Generic Parent Driver"
RunOnceKey="Software\Microsoft\Windows\CurrentVersion\RunOnce"


;------------
;Localizeable
;------------
JM="JMicron"
JMCCGP_DeviceDesc="USB Composite Device"
ServiceDisplayName="JMicron USB Composite Device Lower Filter Driver"
InstallDisk="JMicron 31x Installation Disc"
