; ****************************************************************************
; *
; *   Filename:  QuantisPCI.inf
; *
; *   Abstract:  Quantis USB and PCI drivers.
; *
; *              Supported operating systems: 
; *                - Windows XP (32-bit only)
; *                - Windows 2003
; *                - Windows Vista
; *                - Windows 2008
; *                - Windows 7
; *
; *   Last Update: April 1st, 2010 
; *
; *
; *   Copyright (c) 2004-2010 ID Quantique SA.
; *
; ****************************************************************************


[Version]
Signature = "$WINDOWS NT$"
Class = %ClassName%
ClassGuid = {F2F5F1E5-380E-4194-8FC0-ED5AF63E93DF}
Provider = %IDQ%
CatalogFile = QuantisPCI.cat
DriverVer = 04/01/2010, 5.0


[DestinationDirs]
DefaultDestDir = 12
QuantisPCI_Install_CoInstaller_CopyFiles = 11

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

[ClassInstall32]
Addreg = ClassAddReg     

[ClassInstall32.NTamd64]
Addreg = ClassAddReg  

[ClassAddReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-5
; Use same security checks on relative opens
HKR,,DeviceCharacteristics,0x10001,0x100
; Allow generic all access to system and built-in Admin and Authenticated users. 
HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GA;;;BA)(A;;GA;;;AU)"

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

[ControlFlags]
ExcludeFromSelect = PCI\VEN_179A&DEV_0001

[Manufacturer]
%IDQ% = IDQ, NTx86, NTamd64

[SourceDisksNames]
; There are separate co-installers for the x86 and x64 versions of Windows
1 = %DISK_NAME%,,,\x86
2 = %DISK_NAME%,,,\amd64

[SourceDisksFiles.x86]
QuantisPCI.sys = 1 
WdfCoInstaller01009.dll = 1

[SourceDisksFiles.amd64]
QuantisPCI.sys = 2
WdfCoInstaller01009.dll = 2

[IDQ.NTx86]
%QuantisPCI.DRVDESC% = QuantisPCI_Install, PCI\VEN_179A&DEV_0001

[IDQ.NTamd64]
%QuantisPCI.DRVDESC% = QuantisPCI_Install, PCI\VEN_179A&DEV_0001

[QuantisPCI_Install.NT]
CopyFiles = QuantisPCI.CopyFiles

[QuantisPCI.CopyFiles]
QuantisPCI.sys

[QuantisPCI_Install.NT.Services]
AddService = QuantisPCI,0x00000002,QuantisPCI_Service 

[QuantisPCI_Service]
DisplayName    = %QuantisPCI.SVCDESC%                            
ServiceType    = 1  ; SERVICE_KERNEL_DRIVER
StartType      = 3  ; SERVICE_DEMAND_START
ErrorControl   = 1  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\QuantisPCI.sys                            
AddReg         = QuantisPCI_Parameters_AddReg

;-------------- QuantisPCI Co-Installer installation
[QuantisPCI_Install.NT.CoInstallers]
AddReg=QuantisPCI_Install_CoInstaller_AddReg
CopyFiles=QuantisPCI_Install_CoInstaller_CopyFiles

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

[QuantisPCI_Install_CoInstaller_CopyFiles]
WdfCoInstaller01009.dll

[QuantisPCI_Install.NT.Wdf]
KmdfService = QuantisPCI, QuantisPCI_wdfsect

[QuantisPCI_wdfsect]
KmdfLibraryVersion = 1.9

; ==================== Strings =====================

[Strings]
IDQ = "ID Quantique SA"
ClassName = "IDQ devices"
QuantisPCI.SVCDESC = "Quantis PCI Random Number Generator"
QuantisPCI.DRVDESC = "Quantis PCI Random Number Generator"
DISK_NAME = "Quantis PCI Random Number install disk"


