;
; ubloxVcp.inf
; Installs the Virtual Com Port driver
;      Copyright © 2017 u-blox AG Software. All rights reserved.
;

[Version]
Signature = "$Windows NT$"
Class = Ports
ClassGuid = {4D36E978-E325-11CE-BFC1-08002BE10318}
Provider = %ProviderString%
DriverVer=09/07/2017,3.10.0.0
CatalogFile = ubloxvcp.cat

[Manufacturer]
%ProviderString% = DeviceList,ntx86,ntamd64

[DeviceList.ntx86]
%ubloxVcp.DeviceDesc% = ubloxVcpSection,UBLOXVCP\PNP0501

[DeviceList.ntamd64]
%ubloxVcp.DeviceDesc% = ubloxVcpSection,UBLOXVCP\PNP0501


; =================== UMDF VCP Device ==================================

[ubloxVcpSection.NT]
CopyFiles = UMDriverCopy
AddReg = ubloxVcp.AddReg

[ubloxVcpSection.NT.hw]

[ubloxVcpSection.NT.Services]
AddService = WUDFRd,0x000001fa,WUDFRD_ServiceInstall

[ubloxVcpSection.NT.CoInstallers]
CopyFiles = CoInstallers_CopyFiles
AddReg = CoInstallers_AddReg

[ubloxVcpSection.NT.Wdf]
UmdfService = ubloxVcp,UMDFubloxVcp_Install
UmdfServiceOrder = ubloxVcp
UmdfKernelModeClientPolicy = AllowKernelModeClients
UmdfFileObjectPolicy = AllowNullAndUnknownFileObjects
UmdfFsContextUsePolicy = CannotUseFsContexts
UmdfImpersonationLevel = Impersonation

[ubloxVcp.AddReg]
HKR,,PortSubClass,1,01
HKR,,EnumPropPages32,,"msports.dll,SerialPortPropPageProvider"

[UMDFubloxVcp_Install]
UmdfLibraryVersion = 1.11.0
ServiceBinary = %12%\UMDF\ubloxVcp.dll
DriverCLSID = {5CB52F02-C423-40D7-A2C6-3532D220F475}

[WUDFRD_ServiceInstall]
DisplayName = %WudfRdDisplayName%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WUDFRd.sys
LoadOrderGroup = Base

[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WudfUpdate_01011.dll"

; =====================================================

[SourceDisksNames.x86]
1=%PROVIDER_INSTALL%,,,\x86

[SourceDisksNames.amd64]
1=%PROVIDER_INSTALL%,,,\x64

[SourceDisksFiles]
ubloxVcp.dll = 1
WudfUpdate_01011.dll = 1

[DestinationDirs]
UMDriverCopy=12,UMDF		; copy to drivers\UMDF
CoInstallers_CopyFiles = 11

[UMDriverCopy]
ubloxVcp.dll

[CoInstallers_CopyFiles]
WudfUpdate_01011.dll

[Strings]
ProviderString = "u-blox AG"
PROVIDER_INSTALL = "u-blox Virtual COM port driver disk"
WudfRdDisplayName = "Windows User-Mode Driver Framework Hosting u-blox VCP Driver"
ubloxVcp.DeviceDesc = "u-blox Virtual COM Port"
