; oemport.inf
; Copyright (c) 2009 Your Company Name
;
; INF file to specify another PNP ID for serial ports
;

[version]
signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%OEM%
DriverVer=03/30/2010,3.7.9.70
CatalogFile.ntx86=oemfreeport.cat
CatalogFile.ntamd64=oemfreeport.cat

[DestinationDirs]
ComPort.OEM.NT.Copy = 12

[ControlFlags]
ExcludeFromSelect=*

; Drivers
;----------------------------------------------------------
[Manufacturer]
%OEM%=OEM,ntx86,ntamd64

[OEM]
%OEMPNP0501.DeviceDesc% = ComPort.OEM, OEMPORT ; Communications Port

[OEM.ntx86]
%OEMPNP0501.DeviceDesc% = ComPort.OEM, OEMPORT ; Communications Port

[OEM.ntamd64]
%OEMPNP0501.DeviceDesc% = ComPort.OEM, OEMPORT ; Communications Port

[SourceDisksNames]
1="OEM Installation disk",,,

[SourceDisksFiles]
ser15x.sys = 1,,
	
[ComPort.OEM.NT]
; NT install section, redirect
; we also need to add this for benefit of Ports class
AddReg=ComPort.OEM.AddReg, ComPort.OEM.NT.AddReg
CopyFiles=ComPort.OEM.NT.Copy

; addreg and copy files for PnP serenum.sys
Include=msports.inf
Needs=SerialEnumerator.NT

[ComPort.OEM.AddReg]
; Let Ports class know this is a serial port
HKR,,PortSubClass,1,01

[ComPort.OEM.NT.AddReg]
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[ComPort.OEM.NT.Copy]
ser15x.sys

[ComPort.OEM.NT.HW.AddReg]
HKR,,UpperFilters,0x00010000,serenum

[ComPort.OEM.NT.HW]
AddReg=ComPort.OEM.NT.HW.AddReg

[ComPort.OEM.NT.Services]
AddService = Ser15x, 0x00000002, Ser15x_Service_Inst, Ser15x_EventLog_Inst

; install the serenum service itself
Include=msports.inf
Needs=SerialEnumerator.NT.Services

; -------------- Serial Port Driver install sections
[Ser15x_Service_Inst]
DisplayName    = %Ser15x.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 0               ; SERVICE_ERROR_IGNORE
ServiceBinary  = %12%\ser15x.sys
LoadOrderGroup = Extended base

[Ser15x_EventLog_Inst]
AddReg = Ser15x_EventLog_AddReg

[Ser15x_EventLog_AddReg]
HKR,,EventMessageFile,0x00020000,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\ser15x.sys"
HKR,,TypesSupported,0x00010001,7


; User readable strings
;----------------------------------------------------------
[Strings]
OEM= "EXAR"
OEMPNP0501.DeviceDesc 	= "OEM Communications Port"
Ser15x.SVCDESC   	= "OEM's Serial Port Driver"