; simGNSSWA.inf
; Copyright (C) 2011 SimTech Incorporated
; Manufacturer: SimTech Incorporated

[Version]
Signature   = "$Windows NT$"
Class       = Sensor
ClassGuid   = {5175D334-C371-4806-B3BA-71FD53C9258D}
Provider    = %SIMTech%
CatalogFile = simgnssusb.cat
DriverVer=09/16/2014,1.0.1020.0000
PnPLockdown = 1

; =================== Manufacturer/Models sections =======================

[Manufacturer]
%sim% = sim, NTx64, NTAMD64, NTx86

[SourceDisksNames.x86]
1000 = %simSrcDisk%,"",,\serial\i386

[SourceDisksNames.amd64]
1000 = %simSrcDisk%,"",,\serial\amd64



[sim.NTx64]
%simGNSSWA.DeviceDesc% = simGNSSWA_Install, USB\VID_1E0E&PID_9004&MI_05
%simGNSSWA.DeviceDesc% = simGNSSWA_Install, USB\VID_1E0E&PID_9005&MI_05
%simGNSSWA.DeviceDesc% = simGNSSWA_Install, USB\VID_05C6&PID_9085&MI_02
%simGNSSWA.DeviceDesc% = simGNSSWA_Install, USB\VID_05C6&PID_905A&MI_02
%simGNSSWA.DeviceDesc% = simGNSSWA_Install, USB\VID_05C6&PID_9085&MI_04

[sim.NTAMD64]
%simGNSSWA.DeviceDesc% = simGNSSWA_Install, USB\VID_1E0E&PID_9004&MI_05
%simGNSSWA.DeviceDesc% = simGNSSWA_Install, USB\VID_1E0E&PID_9005&MI_05
%simGNSSWA.DeviceDesc% = simGNSSWA_Install, USB\VID_05C6&PID_9085&MI_02
%simGNSSWA.DeviceDesc% = simGNSSWA_Install, USB\VID_05C6&PID_905A&MI_02
%simGNSSWA.DeviceDesc% = simGNSSWA_Install, USB\VID_05C6&PID_9085&MI_04


[sim.NTx86]
%simGNSSWA.DeviceDesc% = simGNSSWA_Install, USB\VID_1E0E&PID_9004&MI_05
%simGNSSWA.DeviceDesc% = simGNSSWA_Install, USB\VID_1E0E&PID_9005&MI_05
%simGNSSWA.DeviceDesc% = simGNSSWA_Install, USB\VID_05C6&PID_9085&MI_02
%simGNSSWA.DeviceDesc% = simGNSSWA_Install, USB\VID_05C6&PID_905A&MI_02
%simGNSSWA.DeviceDesc% = simGNSSWA_Install, USB\VID_05C6&PID_9085&MI_04
; =================== Location Sensor Device ==================================

[simGNSSWA_Install]
CopyFiles       = UMDriverCopy
Include=WINUSB.INF                      ; Import sections from WINUSB.INF
Needs=WINUSB.NT                         ; Run the CopyFiles & AddReg directives for WinUsb.INF
AddProperty     = DriverPropertiesSection
AddProperty     = WDTFSOCDeviceCategory
Reboot

[simGNSSWA_Install.hw]
AddReg          = Sensor_AddReg

[simGNSSWA_Install.Services]
AddService      = WUDFRd,0x000001fa,WUDFRD_ServiceInstall
AddService      = WinUsb,0x000001f8,WinUsb_ServiceInstall  ; this service is installed because its a filter.

[simGNSSWA_Install.CoInstallers]
AddReg          = WUDF_CoInstallers_AddReg
CopyFiles       = WUDF_CoInstallers_CopyFiles

[simGNSSWA_Install.Wdf]
KmdfService=WINUSB, WinUsb_Install
UmdfDispatcher=WinUsb
UmdfService                = simGNSSWA,UMDFsimGNSSWA_Install
UmdfServiceOrder           = simGNSSWA
UmdfImpersonationLevel     = Impersonation

[WinUsb_Install]
KmdfLibraryVersion=1.11

[WDTFSOCDeviceCategory]
{5D078032-6378-437B-8DA5-9B32B7CA3FDD},2,7,,0

; =================== UMDF Service Install section ===================

[UMDFsimGNSSWA_Install]
UmdfLibraryVersion      = 1.11.0
ServiceBinary           = %12%\UMDF\simgnssusb.dll
DriverCLSID             = {6C3F11ED-1F82-4DB9-A868-01D0E37DED4C}

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

[WinUsb_ServiceInstall]
DisplayName = %WinUsb_SvcDesc%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WinUSB.sys

[SourceDisksFiles]
simgnssusb.dll            = 1000

[SourceDisksNames]
1 = %MediaDescription%

[WUDF_CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WUDFCoInstaller.dll"
HKCR,CLSID\{3D9D6A0F-8E2B-4239-9EE1-7A46BA0AECB6},,0x00000000,"simGNSSWA Radio Manager"
HKCR,CLSID\{3D9D6A0F-8E2B-4239-9EE1-7A46BA0AECB6}\InProcServer32,,0x00020000,"%%SystemRoot%%\System32\Drivers\UMDF\simgnssusb.dll"
HKCR,CLSID\{3D9D6A0F-8E2B-4239-9EE1-7A46BA0AECB6}\InProcServer32,ThreadingModel,0x00000000,"Both"
HKLM,SYSTEM\CurrentControlSet\Control\RadioManagement\{3D9D6A0F-8E2B-4239-9EE1-7A46BA0AECB6},,0x00000000,"simGNSSWA Radio Manager"

[Sensor_AddReg]
HKR,,"LowerFilters",0x00010008,"WinUsb" ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND
HKR,,"WinUsbPowerPolicyOwnershipDisabled",0x00010001,1
HKR,,XTRAServerURL,,"xtra1.gpsonextra.net;xtra2.gpsonextra.net;xtra3.gpsonextra.net"
HKR,,SUPLconfig,,"0"

[WUDF_CoInstallers_CopyFiles]
;WudfUpdate_01011.dll
;WdfCoInstaller01011.dll
;WinUsbCoinstaller2.dll
; WUDFCoInstaller.dll comes with Windows

[DestinationDirs]
UMDriverCopy                 = 12,UMDF
WUDF_CoInstallers_CopyFiles  = 11

[UMDriverCopy]
simgnssusb.dll

; =================== Driver Property section ===================

[DriverPropertiesSection]
DeviceIcon,,,,"%%SystemRoot%%\system32\sensorscpl.dll,-1000"

; =================== Generic ==================================
[Strings]
sim                            = "SimTech Technologies, Inc."
MediaDescription                = "SimTech Module Location Sensor Installation Disk"
WudfRdDisplayName               = "Windows Driver Foundation - User-mode Driver Framework Reflector"
simGNSSWA.DeviceDesc             = "SimTech Module Location Sensor"
WinUsb_SvcDesc="WinUSB Driver"
REG_MULTI_SZ = 0x00010000
