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

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

[Manufacturer]
%ManufacturerName% = Standard, NTamd64

[Standard.NTamd64]
%kxcj9B.DeviceName% = MyDevice_Install, ACPI\KIOX020A

%kxcj9D.DeviceName% = MyDevice_Install, ACPI\KIOX010A


[SourceDisksFiles]
kxjhinge.dll = 1

[SourceDisksNames]
1 = %DiskName%


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

[MyDevice_Install.NT]
CopyFiles = UMDriverCopy

[MyDevice_Install.NT.hw]


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

[MyDevice_Install.NT.CoInstallers]
AddReg = CoInstallers_AddReg

[MyDevice_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

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


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

[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"
kxcj9D.DeviceName = "Kionix KXCJ9 3-axis accelerometer Display"
kxcj9B.DeviceName = "Kionix KXCJ9 3-axis accelerometer Base"

SERVICE_KERNEL_DRIVER = 1
SERVICE_DEMAND_START = 3
SERVICE_ERROR_NORMAL = 1
