;/*++
;
;Copyright (c) Elcus Corporation.  All rights reserved.
;
;Module Name:
;
;    CAN200.INF
;
;Abstract:
;    INF file for a CAN200 device.
;
;--*/

[Version]
Signature      = "$WINDOWS NT$"
Class          = Sample
ClassGuid      = {78A1C341-4539-11d3-B88D-00C04FAD5171}
Provider       = %MSFT%
DriverVer=11/30/2017,6.1.7600.16385
CatalogFile    = KmdfCAN200.cat

[DestinationDirs]
DefaultDestDir  = 12

;-------------------------------------------------------------------------
; Class Section
;-------------------------------------------------------------------------
[ClassInstall32]
Addreg         = SampleClassReg

[SampleClassReg]
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.

;-------------------------------------------------------------------------
; Device Install Section
;-------------------------------------------------------------------------
[ControlFlags]
ExcludeFromSelect = *

[Manufacturer]
%MSFT%=MSFT,NTx86

[SourceDisksFiles]
can200.sys     = 1

[SourceDisksNames]
1=%DISK_NAME%,

; For Win2K
[MSFT]
; DisplayName            Section           DeviceId
; -----------            -------           --------
%CAN200.DRVDESC%=CAN200_Inst, PCI\VEN_10b5&DEV_9056&SUBSYS_0302e1c5&REV_00
%CAN200.DRVDESC%=CAN200_Inst, PCI\VEN_10b5&DEV_9030&SUBSYS_0301e1c5&REV_00
%CAN200.DRVDESC%=CAN200_Inst, PCI\VEN_e1c5&DEV_9030&SUBSYS_0303e1c5&REV_00

; For XP and later
[MSFT.NTx86]
; DisplayName            Section           DeviceId
; -----------            -------           --------
%CAN200.DRVDESC%=CAN200_Inst, PCI\VEN_10b5&DEV_9056&SUBSYS_0302e1c5&REV_00
%CAN200.DRVDESC%=CAN200_Inst, PCI\VEN_10b5&DEV_9030&SUBSYS_0301e1c5&REV_00
%CAN200.DRVDESC%=CAN200_Inst, PCI\VEN_e1c5&DEV_9030&SUBSYS_0303e1c5&REV_00

[CAN200_Inst.NT]
CopyFiles      = CAN200.CopyFiles


[CAN200.CopyFiles]
can200.sys


[CAN200_Inst.NT.Services]
AddService     = CAN200,0x00000002,CAN200_Service

[CAN200_Service]
DisplayName    = %CAN200.SVCDESC%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\can200.sys

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

[CAN200_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"

[CAN200_Inst.NT.Wdf]
KmdfService    = CAN200, CAN200_wdfsect

[CAN200_wdfsect]
KmdfLibraryVersion = 1.9

;------------------------------------------------------------------------------
;  String Definitions
;------------------------------------------------------------------------------

[Strings]
MSFT           = "Elcus"
ClassName      = "CAN-200PCI/CAN-200PCIe Device"
CAN200.SVCDESC = "WDF Driver Service for Elcus CAN-200PCI/CAN-200PCIe CAN-BUS Controller"
CAN200.DRVDESC = "WDF Driver for Elcus CAN-200PCI/CAN-200PCIe CAN-BUS Controller"
DISK_NAME      = "CAN200 Install Disk"

