;/*++
;
;Copyright (c) GuanXin Corporation.  All rights reserved.
;
;   THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
;   KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
;   IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
;   PURPOSE.
;
;Module Name:
;
;    GxUsb.INF
;
;Abstract:
;    Installation inf for the GuanXin USB recorder device.
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=GxUsb2
ClassGUID={159603F7-C182-4617-A489-0A596E2262DD}
Provider=%MSFT%
DriverVer=11/08/2011,6.1.7600.16385
CatalogFile=gxusb.cat


; ================= Class section =====================

[ClassInstall32]
Addreg=GxUsb2ClassReg     

[GxUsb2ClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-5

[DestinationDirs]
DefaultDestDir = 12
DefaultDestDir.CopyFiles.DllAndBin = 10

; ================= Device section =====================

[Manufacturer]
%MfgName%=GuanXin,NTx86, NTia64,NTamd64

; For Win2K
[GuanXin]
%USB\VID_4758&PID_0101.DeviceDesc%=GxUsb.Dev, USB\VID_4758&PID_0101

; For XP and later
[GuanXin.NTx86]
%USB\VID_4758&PID_0101.DeviceDesc%=GxUsb.Dev, USB\VID_4758&PID_0101

[GuanXin.NTia64]
%USB\VID_4758&PID_0101.DeviceDesc%=GxUsb.Dev, USB\VID_4758&PID_0101

[GuanXin.NTamd64]
%USB\VID_4758&PID_0101.DeviceDesc%=GxUsb.Dev, USB\VID_4758&PID_0101

[GxUsb.Dev]
CopyFiles=GxUsb.CopyFiles, DefaultDestDir.CopyFiles.DllAndBin

[GxUsb.Dev.Services]
Addservice = GxUsb, 0x00000002, GxUsb.Service

[GxUsb.Service]
DisplayName    = %GxUsb.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\GxUsb.sys
AddReg         = GxUsb.AddReg
LoadOrderGroup = Base

[GxUsb.AddReg]
HKR,"Parameters","MaximumTransferSize",0x10001,65536
HKR,"Parameters","DebugLevel",0x10001,2

[SourceDisksNames.x86]
1=%Disk_Description%,,,\i386
2 = %DISK_NAME%,,,

[SourceDisksNames.ia64]
1=%Disk_Description%,,,\ia64
2 = %DISK_NAME%,,,

[SourceDisksNames.amd64]
1=%Disk_Description%,,,\amd64
2 = %DISK_NAME%,,,

[SourceDisksFiles]
GxUsb.sys = 1
GxUsb.dll = 2
Gxu2_add.dll = 2
AGC_DLL.dll = 2
mp3enc.dll = 2

[GxUsb.CopyFiles]
GxUsb.sys,,,1

[DefaultDestDir.CopyFiles.DllAndBin]
GxUsb.dll
Gxu2_add.dll
AGC_DLL.dll
mp3enc.dll

;-------------- WDF Coinstaller installation
[DestinationDirs]
CoInstaller_CopyFiles = 11

[GxUsb.Dev.NTx86.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[GxUsb.Dev.NTia64.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[GxUsb.Dev.NTamd64.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles
[CoInstaller_CopyFiles]
WdfCoInstaller01009.dll

[SourceDisksNames.x86]
1=%Disk_Description%,,,\i386

[SourceDisksNames.ia64]
1=%Disk_Description%,,,\ia64

[SourceDisksNames.amd64]
1=%Disk_Description%,,,\amd64
[SourceDisksFiles]
WdfCoInstaller01009.dll=1 ; make sure the number matches with SourceDisksNames

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

[GxUsb.Dev.NT.Wdf]
KmdfService = GxUsb, GxUsb_wdfsect

[GxUsb_wdfsect]
KmdfLibraryVersion = 1.9

;---------------------------------------------------------------;

[Strings]
MSFT            = "ADMIN"
MfgName         = "ADMIN CO., LTD."
Disk_Description= "ADMIN GxUsb2 Installation Disk"
GxUsb.SvcDesc = "ADMIN Voice 2 Channels(USB) Driver"
ClassName       = "GxUsb2"
USB\VID_4758&PID_0101.DeviceDesc="ADMIN Voice 2 Channels(USB)"



