;/*++
;
; Virtual COM port tunnel driver
; Copyright (c) 2012, Research in Motion, Inc.
;
;Module Name:
;
;    RimSerial.inx
;
;Abstract:
;    INF file for the RIM Virtual Serial Port driver 
;
;--*/

[version]
signature="$WINDOWS NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%RIM%
DriverVer=10/22/2012,2.3.0.11
CatalogFile=RimSerial.cat


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

[Manufacturer]
%SerPort% = SerPort,ntamd64

[SerPort]
%RimVSerPort% = RimVSerPort, root\rimports

[SerPort.ntamd64]
%RimVSerPort% = RimVSerPort.ntamd64, root\rimports

[SourceDisksNames]
99 = %InstallDisk%,,,

[SourceDisksFiles]
RimSerial.sys = 99
RimSerial_AMD64.sys = 99
WdfCoInstaller01007.dll=99 ; make sure the number matches with SourceDisksNames

[DestinationDirs]
DefaultDestDir=12
CoInstaller_CopyFiles = 11

[RimVSerPort.NT]
CopyFiles = CopyFileSection
AddReg = All

[RimVSerPort.ntamd64]
CopyFiles = CopyFileSection.ntamd64
AddReg = All

[RimVSerPort.NT.HW]
AddReg = All_HW

[RimVSerPort.ntamd64.HW]
AddReg = All_HW

[CopyFileSection]
RimSerial.sys,,,2

[CopyFileSection.ntamd64]
RimSerial_AMD64.sys,,,2

[All]
HKR,,PortSubClass,1,01
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
HKR,,DeviceType,0x10001,0x0000001b

[All_HW]
HKR,,DeviceType,0x10001,0x1b

[RimVSerPort.NT.Services]
AddService = RimVSerPort, 0x00000002, RimVSerPort_Service_Inst

[RimVSerPort.ntamd64.Services]
AddService = RimVSerPort, 0x00000002, RimVSerPort_Service_Inst.ntamd64

[RimVSerPort_Service_Inst]
DisplayName = %RimVSerPort%
ServiceType = 1
StartType = 3
ErrorControl = 0
ServiceBinary = %12%\RimSerial.sys

[RimVSerPort_Service_Inst.ntamd64]
DisplayName = %RimVSerPort%
ServiceType = 1
StartType = 3
ErrorControl = 0
ServiceBinary = %12%\RimSerial_AMD64.sys

[Strings]
RIM = "Research in Motion"
SerPort = "RIM Virtual Serial Ports"
RimVSerPort  = "RIM Virtual Serial Port v2"
InstallDisk = "Virtual Serial Port Install Disk"

;-------------- WDF Coinstaller installation
[RimVSerPort.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[RimVSerPort.ntamd64.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[CoInstaller_CopyFiles]
WdfCoInstaller01007.dll,,0x40    ; COPYFLG_OVERWRITE_OLDER_ONLY

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

[RimVSerPort.NT.Wdf]
KmdfService = RimVSerPort, RimVSerPort_wdfsect

[RimVSerPort.ntamd64.Wdf]
KmdfService = RimVSerPort, RimVSerPort_wdfsect

[RimVSerPort_wdfsect]
KmdfLibraryVersion = 1.7

