;------------------------------------------------------------------------------
;	  					Microscan
;			Communication Device Class(CDC) INF File 
;------------------------------------------------------------------------------

[Version] 
Signature="$Windows NT$" 
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} 
Provider=%MANUFACTURER% 
LayoutFile=layout.inf
CatalogFile=%FILENAME%.cat
DriverPackageDisplayName = %DISPLAYNAME%
DriverPackageType = PlugAndPlay

DriverVer=03/17/2020,9.2.1.3014

CatalogFile.NTx86  = %FILENAME%x86.cat
CatalogFile.NTIA64 = %FILENAME%ia64.cat
CatalogFile.NTAMD64 = %FILENAME%amd64.cat

[Manufacturer] 
%MANUFACTURER%=DeviceList,NTamd64

[DestinationDirs] 
FakeModemCopyFileSection=12 		;Fake the mdmcpq.inf file
DefaultDestDir=12 

;------------------------------------------------------------------------------
;  			Windows 2000/XP/Vista32 Support
;------------------------------------------------------------------------------
[DriverInstall.nt] 
include=mdmcpq.inf
;CopyFiles=DriverCopyFiles.nt
CopyFiles = FakeModemCopyFileSection
AddReg=DriverInstall.nt.AddReg 

[DriverCopyFiles.nt]
usbser.sys,,,0x20

[DriverInstall.nt.AddReg] 
HKR,,DevLoader,,*ntkern 
HKR,,NTMPDriver,,%DRIVERFILENAME%.sys 
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" 
HKR,,RemovalPolicy,0x00010001,3
HKR,,SurpriseRemovalOK,0x00010001,1

[DriverInstall.nt.Services] 
AddService=usbser, 0x00000002, DriverService.nt

[DriverService.nt] 
DisplayName=%SERVICE% 
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\%DRIVERFILENAME%.sys 

;------------------------------------------------------------------------------
;  			Windows Vista64 Support
;------------------------------------------------------------------------------

[DriverInstall.NTamd64] 
include=mdmcpq.inf
;CopyFiles=DriverCopyFiles.NTamd64
CopyFiles=FakeModemCopyFileSection
AddReg=DriverInstall.NTamd64.AddReg 

[DriverCopyFiles.NTamd64]
%DRIVERFILENAME%.sys,,,0x20
;CopyFiles = FakeModemCopyFileSection

[DriverInstall.NTamd64.AddReg] 
HKR,,DevLoader,,*ntkern 
HKR,,NTMPDriver,,%DRIVERFILENAME%.sys 
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" 
HKR,,RemovalPolicy,0x00010001,3
HKR,,SurpriseRemovalOK,0x00010001,1

[DriverInstall.NTamd64.Services] 
AddService=usbser, 0x00000002, DriverService.NTamd64

[DriverService.NTamd64] 
DisplayName=%SERVICE% 
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\%DRIVERFILENAME%.sys 


;------------------------------------------------------------------------------
;			VID/PID Settings
;------------------------------------------------------------------------------
[SourceDisksFiles]
[SourceDisksNames]
[DeviceList]
%DESCRIPTION%=DriverInstall, USB\VID_1777&PID_0003&MI_02

[DeviceList.NTamd64] 
%DESCRIPTION%=DriverInstall, USB\VID_1777&PID_0003&MI_02


;------------------------------------------------------------------------------
;  			String Definitions
;------------------------------------------------------------------------------
[Strings]

FILENAME="microscan_usb_cdc_serial"
DRIVERFILENAME ="usbser"
DISPLAYNAME="Virtual COM Device"
MANUFACTURER="MICROSCAN"
INSTDISK="USB2UART"
DESCRIPTION="Microscan CDC Device"
SERVICE="Virtual Com Driver"
