﻿; Copyright (c) 2011-2012 libusbK (GNU LGPL)
;
; Module Name: FTDI_USB_device.inf
; Description: Installation inf for FTDI USB device device.
;
; 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.

[Strings]
DeviceName = "FTDI USB device"
VendorName = "Future Technology Devices International, Ltd"
SourceName = "FTDI USB device Install Disk"
DeviceID   = "VID_0403&PID_6010&MI_00"
DeviceGUID = "{280C2E13-5BA6-4234-AD30-C6E40C5C0CCC}"

[Version]
Signature   = "$Windows NT$"
Class       = "libusbk devices"
ClassGuid   = {ECFB0CFD-74C4-4f52-BBF7-343461CD72AC}
Provider    = "FTDI USB device"
CatalogFile = FTDI_USB_device.cat
DriverVer   = 10/02/2017, 3.0.7.0

; ============== Class section ==================
[ClassInstall32]
Addreg = LUsbK_Class_AddReg 

[LUsbK_Class_AddReg]
HKR,,,0,"libusbK USB Devices"
HKR,,Icon,,-20

; ============== Device section =================
[Manufacturer]
%VendorName% = LUsbK_DeviceGroup,NTX86,NTAMD64

; For Win2K
[LUsbK_DeviceGroup]
%DeviceName%=LUsbK_Device, USB\%DeviceID%

; For XP and later
[LUsbK_DeviceGroup.NTX86]
%DeviceName%=LUsbK_Device, USB\%DeviceID%

[LUsbK_DeviceGroup.NTAMD64]
%DeviceName%=LUsbK_Device, USB\%DeviceID%

[LUsbK_Device.NT.HW]
AddReg=AddDeviceInterfaceGUID

[LUsbK_Device.NTAMD64.HW]
AddReg=AddDeviceInterfaceGUID

[NoDeviceInterfaceGUID]
; Avoids adding a DeviceInterfaceGUID for generic driver

[AddDeviceInterfaceGUID]
HKR,,DeviceInterfaceGUIDs, 0x10000,%DeviceGUID%

; ========== Driver/Servce section ==============
[LUsbK_Device.NT.Services]
Addservice=libusbK,2,LUsbK_AddService

[LUsbK_Device.NTAMD64.Services]
Addservice=libusbK,2,LUsbK_AddService

[LUsbK_AddService]
DisplayName="libusbK USB Driver 10/02/2017 - 3.0.7.0"
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\libusbK.sys
AddReg=LUsbK_Driver_AddReg

; This optional entry identifies the load order group of which this driver is a member.
; LoadOrderGroup=Base

[LUsbK_Driver_AddReg]
HKR,"Parameters","DebugLevel",0x10001,4

; =========== Sources/Destinations ==============
[SourceDisksNames]
1 = %SourceName%

[SourceDisksFiles.x86]
libusbK.sys		= 1,x86
libusbK.dll		= 1,x86
libusb0.dll		= 1,x86
libusb0.sys		= 1,x86
libusb0_x86.dll	= 1,x86
libusbk_x86.dll	= 1,x86
;libusb-1.0.dll	= 1,x86
WdfCoInstaller01011.dll = 1,x86

[SourceDisksFiles.amd64]
libusb0.sys			= 1,amd64
libusbK.sys			= 1,amd64
libusbK.dll			= 1,amd64
libusbK_x86.dll		= 1,amd64
libusb0.dll			= 1,amd64
libusb0_x86.dll		= 1,x86
;libusb-1.0.dll		= 1,amd64
;libusb-1.0_x86.dll	= 1,amd64
WdfCoInstaller01011.dll	= 1,amd64

[DestinationDirs]
DefaultDestDir				= 12
CoInstaller_CopyFiles		= 11
libusb_files_sys			= 10,system32\drivers
libusb_files_dll			= 10,system32
libusb_files_dll_syswow64	= 10,syswow64

;
; 0x00000040 = COPYFLG_OVERWRITE_OLDER_ONLY
; Copy the source file to the destination directory only if the file on
; the destination will be superseded by a newer version.
;

[libusb_files_sys]
libusbK.sys
libusb0.sys

[libusb_files_dll]
libusbK.dll
;libusb-1.0.dll,,,0x00000040
libusb0.dll,,,0x00000040

[libusb_files_dll_syswow64]
libusbK.dll, libusbK_x86.dll
libusb0.dll, libusb0_x86.dll,,0x00000040
;libusb-1.0.dll, libusb-1.0_x86.dll,,0x00000040

[LUsbK_Device.NT]
CopyFiles = libusb_files_sys, libusb_files_dll

[LUsbK_Device.NTAMD64]
CopyFiles = libusb_files_sys, libusb_files_dll, libusb_files_dll_syswow64

; ========= WDF/CoInstaller section =============
[LUsbK_Device.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[CoInstaller_CopyFiles]
WdfCoInstaller01011.dll

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

[LUsbK_Device.NT.Wdf]
KmdfService = libusbK, LUsbK_wdfsect

[LUsbK_Device.NTAMD64.Wdf]
KmdfService = libusbK, LUsbK_wdfsect

[LUsbK_wdfsect]
KmdfLibraryVersion=1.11
