;
; Kionix KX J-series accelerometer install info
; Copyright 2018 Kionix, Inc.
;

[Version]
Signature = "$Windows NT$"
Class = Sensor
ClassGuid = {5175D334-C371-4806-B3BA-71FD53C9258D}
Provider = Kionix, Inc.
CatalogFile = kxjhinge.cat
DriverVer = 10/12/2018,1.1.1.5

[Manufacturer]
%ManufacturerName% = Standard, NTamd64

[Standard.NTamd64]
%kxacceldisp.DeviceName% = MyDispDevice_Install, ACPI\KIOX010A
%kxaccel.DeviceName% = MyDevice_Install, ACPI\KIOX020A


[SourceDisksFiles]
kxjhinge.dll = 1

[SourceDisksNames]
1 = %DiskName%

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

[MyDevice_Install.NT]
CopyFiles = UMDriverCopy
CopyInf = HingeAngleService.inf

[MyDispDevice_Install.NT]
CopyFiles = UMDriverCopy

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

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

[MyDevice_Install.NT.Components]
AddComponent = HingeAngleService,, HingeAngleService_ComponentInstall_UserSvc

[MyDevice_Install.NT.hw]

[MyDevice_Install.NT.Wdf]
UmdfService = kxjhinge, UmdfDriver_Install
UmdfServiceOrder = kxjhinge
UmdfDirectHardwareAccess = AllowDirectHardwareAccess
UmdfFileObjectPolicy = AllowNullAndUnknownFileObjects
UmdfFsContextUsePolicy = CannotUseFsContexts
UmdfHostProcessSharing = ProcessSharingDisabled		; Disabled becuase of GPS

[MyDispDevice_Install.NT.Wdf]
UmdfService = kxjhinge, UmdfDriver_Install
UmdfServiceOrder = kxjhinge
UmdfDirectHardwareAccess = AllowDirectHardwareAccess
UmdfFileObjectPolicy = AllowNullAndUnknownFileObjects
UmdfFsContextUsePolicy = CannotUseFsContexts
UmdfHostProcessSharing = ProcessSharingDisabled		; Disabled becuase of GPS

[UmdfDriver_Install]
UmdfLibraryVersion = 2.15.0 
ServiceBinary = %12%\UMDF\kxjhinge.dll
UmdfExtensions = SensorsCx0102


[WUDFRD_ServiceInstall]
DisplayName = %WudfRdDisplayName%
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_DEMAND_START%
ErrorControl = %SERVICE_ERROR_NORMAL%
ServiceBinary = %12%\WUDFRd.sys

[HingeAngleService_ComponentInstall_UserSvc]
ComponentIds = VID_ROHM&PID_1010  ; Matches with SWC\VID_ROHM&PID_1010



[UMDriverCopy]
kxjhinge.dll,,0x4000    ; COPYFLG_IN_USE_RENAME 

; =================== Generic ==================================

[Strings]
ManufacturerName = "Kionix, Inc."
ClassName = "Sensor"
DiskName = "KXJ Accelerometer Installation Disk"
WudfRdDisplayName = "Windows Driver Foundation - User-mode Driver Framework Reflector"
kxaccel.DeviceName = "Kionix 3-axis accelerometer in Keyboard"
kxacceldisp.DeviceName = "Kionix 3-axis accelerometer"

SERVICE_KERNEL_DRIVER = 1
SERVICE_DEMAND_START = 3
SERVICE_ERROR_NORMAL = 1
