;
; SensorsHidClassDriver.inf
; V2 Sensors HID driver
;
; Copyright (c) Microsoft Corporation.  All rights reserved.

[Version]
Signature   = "$Windows NT$"
Class       = Sensor
ClassGuid   = {5175D334-C371-4806-B3BA-71FD53C9258D}
Provider    = %MSFT%
DriverVer = 04/21/2009,10.0.22621.3672
PnpLockdown = 1

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

[Manufacturer]
%MSFT%                        = Microsoft,NTamd64

[Microsoft.NTamd64]
%SensorsHIDClassDriver.Collection.DeviceDesc%             = SensorsHIDClassDriver_Install,HID_DEVICE_UP:0020_U:0001
; Personal Activity Sensors
%SensorsHIDClassDriver.ActivityDetection.DeviceDesc%      = SensorsHIDClassDriver_Install,HID_DEVICE_UP:0020_U:00B1
%SensorsHIDClassDriver.Pedometer.DeviceDesc%              = SensorsHIDClassDriver_Install,HID_DEVICE_UP:0020_U:00B4
; Biometric Sensors
%SensorsHIDClassDriver.HumanPresence.DeviceDesc%          = SensorsHIDClassDriver_Install,HID_DEVICE_UP:0020_U:0011
%SensorsHIDClassDriver.HumanProximity.DeviceDesc%         = SensorsHIDClassDriver_Install,HID_DEVICE_UP:0020_U:0012
; Environmental Sensors
%SensorsHIDClassDriver.Barometer.DeviceDesc%              = SensorsHIDClassDriver_Install,HID_DEVICE_UP:0020_U:0031
%SensorsHIDClassDriver.Hygrometer.DeviceDesc%             = SensorsHIDClassDriver_Install,HID_DEVICE_UP:0020_U:0032
%SensorsHIDClassDriver.Thermometer.DeviceDesc%            = SensorsHIDClassDriver_Install,HID_DEVICE_UP:0020_U:0033
; Light Sensors
%SensorsHIDClassDriver.AmbientLight.DeviceDesc%           = SensorsHIDClassDriver_Install,HID_DEVICE_UP:0020_U:0041
; Motion Sensors
%SensorsHIDClassDriver.Accelerometer3D.DeviceDesc%        = SensorsHIDClassDriver_Install,HID_DEVICE_UP:0020_U:0073
%SensorsHIDClassDriver.Gyrometer3D.DeviceDesc%            = SensorsHIDClassDriver_Install,HID_DEVICE_UP:0020_U:0076
%SensorsHIDClassDriver.LinearAccelerometer.DeviceDesc%    = SensorsHIDClassDriver_Install,HID_DEVICE_UP:0020_U:007B
%SensorsHIDClassDriver.GravityVector.DeviceDesc%          = SensorsHIDClassDriver_Install,HID_DEVICE_UP:0020_U:007C
; Orientation Sensors
%SensorsHIDClassDriver.Compass3D.DeviceDesc%              = SensorsHIDClassDriver_Install,HID_DEVICE_UP:0020_U:0083
%SensorsHIDClassDriver.Inclinometer3D.DeviceDesc%         = SensorsHIDClassDriver_Install,HID_DEVICE_UP:0020_U:0086
%SensorsHIDClassDriver.Orientation.DeviceDesc%            = SensorsHIDClassDriver_Install,HID_DEVICE_UP:0020_U:008A
%SensorsHIDClassDriver.RelativeOrientation.DeviceDesc%    = SensorsHIDClassDriver_Install,HID_DEVICE_UP:0020_U:008E
%SensorsHIDClassDriver.SimpleDeviceOrientation.DeviceDesc%= SensorsHIDClassDriver_Install,HID_DEVICE_UP:0020_U:008F
%SensorsHIDClassDriver.GeomagneticOrientation.DeviceDesc% = SensorsHIDClassDriver_Install,HID_DEVICE_UP:0020_U:00C1
; Other Sensors
%SensorsHIDClassDriver.Custom.DeviceDesc%                 = SensorsHIDClassDriver_Install,HID_DEVICE_UP:0020_U:00E1

; =================== SensorsHIDClassDriver Device ==================================

[SensorsHIDClassDriver_Install.NT]
CopyFiles       = UMDriverCopy
AddProperty     = DriverPropertiesSection

; Kept here for backward compat with OEM INFs that included the 8.1 SensorsHidClassDriver INF
[SensorsHIDClassDriver_Install.NT.hw]


[SensorsHIDClassDriver_Install.NT.Services]
AddService      = SensorsHIDClassDriver,0x000001fa,WUDFSensorsHIDClassDriver_ServiceInstall

[SensorsHIDClassDriver_Install.NT.CoInstallers]
AddReg          = WUDF_CoInstallers_AddReg

[SensorsHIDClassDriver_Install.NT.Wdf]
UmdfService              = SensorsHIDClassDriver,UMDFSensorsHIDClassDriver_Install
UmdfServiceOrder         = SensorsHIDClassDriver
UmdfImpersonationLevel   = Impersonation
UmdfFsContextUsePolicy   = CannotUseFsContexts
UmdfDirectHardwareAccess = AllowDirectHardwareAccess
UmdfFileObjectPolicy     = AllowNullAndUnknownFileObjects

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

[UMDFSensorsHIDClassDriver_Install]
UmdfLibraryVersion  = 2.15.0
ServiceBinary       = %12%\UMDF\SensorsHid.dll
UmdfExtensions      = SensorsCx0102

[WUDFSensorsHIDClassDriver_ServiceInstall]
DisplayName     = %WudfSensorsHIDClassDriverDisplayName%
ServiceType     = 1
StartType       = 3
ErrorControl    = 1
ServiceBinary   = %12%\WUDFRd.sys
LoadOrderGroup  = Base
StartName       = \Driver\WudfRd

[SourceDisksFiles]
SensorsHid.dll  = 1

[SourceDisksNames]
1 = %MediaDescription%

[WUDF_CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WUDFCoInstaller.dll"

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

[UMDriverCopy]
SensorsHid.dll,,,0x100      ; 0x100 means the driver is protected

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

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

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

[Strings]
;Localizable strings for Sensors HID Class Driver
MSFT                        = "Microsoft"
MediaDescription            = "Microsoft Windows HID Sensor Class Device Installation Media"
ClassName                   = "HID Sensor Class Device"
WudfSensorsHIDClassDriverDisplayName   = "UMDF Reflector service for Sensors HID Class Driver"

SensorsHIDClassDriver.Collection.DeviceDesc             = "HID Sensor Collection V2"
; Activity Sensors
SensorsHIDClassDriver.ActivityDetection.DeviceDesc      = "HID Activity Detection Sensor"
SensorsHIDClassDriver.Pedometer.DeviceDesc              = "HID Pedometer Sensor"
; Biometric Sensors
SensorsHIDClassDriver.HumanPresence.DeviceDesc          = "HID Human Presence Sensor"
SensorsHIDClassDriver.HumanProximity.DeviceDesc         = "HID Human Proximity Sensor"
; Environmental Sensors
SensorsHIDClassDriver.Barometer.DeviceDesc              = "HID Atmospheric Pressure Sensor"
SensorsHIDClassDriver.Hygrometer.DeviceDesc             = "HID Humidity Sensor"
SensorsHIDClassDriver.Thermometer.DeviceDesc            = "HID Temperature Sensor"
; Light Sensors
SensorsHIDClassDriver.AmbientLight.DeviceDesc           = "HID Ambient Light Sensor"
; Motion Sensors
SensorsHIDClassDriver.Accelerometer3D.DeviceDesc        = "HID 3D Accelerometer Sensor"
SensorsHIDClassDriver.Gyrometer3D.DeviceDesc            = "HID 3D Gyrometer Sensor"
SensorsHIDClassDriver.LinearAccelerometer.DeviceDesc    = "HID Linear Accelerometer Sensor"
SensorsHIDClassDriver.GravityVector.DeviceDesc          = "HID Gravity Vector Sensor"
; Orientation Sensors
SensorsHIDClassDriver.Compass3D.DeviceDesc              = "HID 3D Compass Sensor"
SensorsHIDClassDriver.Inclinometer3D.DeviceDesc         = "HID 3D Inclinometer Sensor"
SensorsHIDClassDriver.Distance3D.DeviceDesc             = "HID 3D Distance Sensor"
SensorsHIDClassDriver.Orientation.DeviceDesc            = "HID Device Orientation Sensor"
SensorsHIDClassDriver.RelativeOrientation.DeviceDesc    = "HID Relative Orientation Sensor"
SensorsHIDClassDriver.SimpleDeviceOrientation.DeviceDesc= "HID Simple Device Orientation Sensor"
SensorsHIDClassDriver.GeomagneticOrientation.DeviceDesc = "HID Geomagnetic Orientation Sensor"
; Other Sensors
SensorsHIDClassDriver.Custom.DeviceDesc                 = "HID Custom Sensor"

;Non-localizable for Sensors HID Class Driver
