[Version]
Signature="$WINDOWS NT$"
Class=LPCIE
ClassGuid={73FE9311-0D50-4FCD-A895-571CA87A26DC}
Provider=%LCardMfg%
CatalogFile=lpcie.cat
;PnpLockDown=1
DriverPackageDisplayName=%PkgName%
DriverPackageType=PlugAndPlay
DriverVer=11/16/2016,1.0.11.0


[SourceDisksFiles]
lpcie.sys=1

[SourceDisksNames]
1=%DISK_NAME%,,,.

[PreCopySection]
HKR,,NoSetupUI,,1

[DestinationDirs]
DefaultDestDir = 12   ;%SystemRoot%\system32\drivers 

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

[ClassInstall32]
Addreg=LpcieClassReg     

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

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

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%LCardMfg%=LCardMfg,NTx86



; For Win2K
[LCardMfg]
; DisplayName           Section           DeviceId
; -----------           -------           --------
%L502.DeviceDescr% =    lpcie_inst,       PCI\VEN_1172&DEV_0502&SUBSYS_4C353032


; For XP and later
[LCardMfg.NTx86]
; DisplayName           Section           DeviceId
; -----------           -------           --------
%L502.DeviceDescr% =    lpcie_inst,       PCI\VEN_1172&DEV_0502&SUBSYS_4C353032



[lpcie_inst.HW]
AddReg = lpcie_hw_addreg

[lpcie_inst.NT.HW]
AddReg = lpcie_hw_addreg

;Добавляем в реестр флаг, что можно использовать MSI
[lpcie_hw_addreg]
HKR, Interrupt Management,, 0x00000010
HKR, Interrupt Management\MessageSignaledInterruptProperties,, 0x00000010
HKR, Interrupt Management\MessageSignaledInterruptProperties, MSISupported, 0x00010001, 1




[lpcie_inst]
CopyFiles=Lpcie.CopyFiles

[lpcie_inst.NT]
CopyFiles=Lpcie.CopyFiles

[Lpcie.CopyFiles]
lpcie.sys


[lpcie_inst.Services]
AddService=lpcie,0x00000002,lpcie_service

[lpcie_inst.NT.Services]
AddService=lpcie,0x00000002,lpcie_service 

[lpcie_service]
DisplayName    = %LPCIE.SVCDESC%                            
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 1                  ; SERVICE_AUTO_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\lpcie.sys                            
;AddReg         = Pci9x5x_Parameters_AddReg

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


[lpcie_inst.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[lpcie_inst.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[CoInstaller_CopyFiles]
WdfCoInstaller01009.dll

[SourceDisksFiles]
WdfCoInstaller01009.dll=1 ; make sure the number matches with SourceDisksNames

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


[lpcie_inst.Wdf]
KmdfService = lpcie, lpcie_wdfsect

[lpcie_inst.NT.Wdf]
KmdfService = lpcie, lpcie_wdfsect
[lpcie_wdfsect]
KmdfLibraryVersion = 1.9

[Strings]
LCardMfg = "L Card"
L502.DeviceDescr = "L-502"
ClassName = "'L Card' PCI Express devices"
LPCIE.SVCDESC = "KMDF driver for 'L-Card' PCI Express devices"
PkgName = "driver for PCI Express boards"
DISK_NAME = "'L Card' Software Install Disk"

[Strings.0419]
LCardMfg="Л Кард"
L502.DeviceDescr = "L-502"
LPCIE.SVCDESC="KMDF драйвер для PCI Express устройств фирмы 'Л Кард'"
PkgName = "Драйвер для плат PCI Express"
ClassName="PCI Express устройства от фирмы 'Л Кард'"
DISK_NAME = "Диск с программным обеспечением 'Л Кард'"


