;
; __________________________________________________________________________
;|                                                                          |
;| Copyright, ST Microelectronics, Inc.                                     |
;| All Rights Reserved.                                                     |
;| This software contains the valuable trade secrets of ST Microelectronics.|
;| The software is protected under copyright laws as an unpublished work of |
;| ST Microelectronics. Notice is for informational purposes only and does  |
;| not imply publication. The user of this software may make copies of the  |
;| software for use with parts manufactured by ST Microelectronics or under |
;| license from ST Microelectronics and for no other use.                   |
;|__________________________________________________________________________|
;
;Module Name:
;
;    ST_ACCEL.INF
;
;Abstract:
;    INF file for installing ST_ACCEL device function driver

[Version]
Signature   = "$WINDOWS NT$"
Class       = System
ClassGuid   = {4d36e97d-e325-11ce-bfc1-08002be10318}
Provider    = %STM%
CatalogFile = ST_ACCEL.cat
DriverVer=01/03/2012,2.2.2.2
PnPLockDown = 1

[SourceDisksNames]
1 = %DISK_NAME%,,,

[SourceDisksFiles]
ST_ACCEL.sys = 1,,
stdcfltnco02.dll=1
stdcfltn.cab=1

[DestinationDirs]
DefaultDestDir = 12  ; DIRID_DRIVERS

;***********************************************
; Device Install Section
;***********************************************

[Manufacturer]
%STM%=ST,NTx86

; For XP and later
[ST.NTx86]
; DisplayName                   Section           DeviceId
; -----------                   -------           --------
%ST_ACCEL.DeviceDesc%=          ST_ACCEL,         *SMO8800
%ST_ACCEL.DeviceDesc%=          ST_ACCEL,         *SMO8801
%ST_ACCEL.DeviceDesc%=          ST_ACCEL,         *SMO8810
%ST_ACCEL.DeviceDesc%=          ST_ACCEL,         *SMO8811
%ST_ACCEL.DeviceDesc%=          ST_ACCEL,         *SMO8820
%ST_ACCEL.DeviceDesc%=          ST_ACCEL,         *SMO8821
%ST_ACCEL.DeviceDesc%=          ST_ACCEL,         *SMO8830
%ST_ACCEL.DeviceDesc%=          ST_ACCEL,         *SMO8831

[ST_ACCEL.NT]
CopyFiles=ST_ACCEL.NT.Copy

[ST_ACCEL.NT.Copy]
ST_ACCEL.sys

[ST_ACCEL.NT.HW]
AddReg=ST_ACCEL.NT.HW.AddReg

[ST_ACCEL.NT.HW.AddReg]
HKR,,DeviceCharacteristics,0x10001,0x100     ;Use same security checks on relative opens

; SDDL: Full access for system and built-in admin, read/write/execute for world (excluding untrusted code), read only for restricted code
HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GA;;;BA)(A;;GRGWGX;;;WD)(A;;GR;;;RC)"


;*****************************************
; Service Section
;*****************************************

[ST_ACCEL.NT.Services]
AddService = ST_ACCEL, %SPSVCINST_ASSOCSERVICE%, ST_ACCEL_Service_Inst

[ST_ACCEL_Service_Inst]
DisplayName     = %ST_ACCEL.SVCDESC%
ServiceType     = 1               ; SERVICE_KERNEL_DRIVER
StartType       = 3               ; SERVICE_DEMAND_START
ErrorControl    = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary   = %12%\ST_ACCEL.sys

;*****************************************
; Device Coinstaller installation 
;*****************************************

[DestinationDirs]
ST_ACCEL_CoInstaller_CopyFiles = 11
StdcFltn_CopyFiles      = 16422,STMicroelectronics\stdcfltn

[ST_ACCEL.NT.CoInstallers]
AddReg          = ST_ACCEL_CoInstaller_AddReg
CopyFiles       = ST_ACCEL_CoInstaller_CopyFiles
CopyFiles       = StdcFltn_CopyFiles

[ST_ACCEL_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01009.dll,WdfCoInstaller","stdcfltnco02.dll,StdcFltnCoInstaller"

[ST_ACCEL_CoInstaller_CopyFiles]
WdfCoInstaller01009.dll
stdcfltnco02.dll

[StdcFltn_CopyFiles]
stdcfltn.cab

[SourceDisksFiles]
WdfCoInstaller01009.dll=1 ; make sure the number matches with SourceDisksNames

[ST_ACCEL.NT.Wdf]
KmdfService              = ST_ACCEL, ST_ACCEL_wdfsect

[ST_ACCEL_wdfsect]
KmdfLibraryVersion       = 1.9

[CoInstallerInfo]
; info for the co-installer
; used to find the original media location
OriginalInfSourcePath = %1%

[Strings]
SPSVCINST_ASSOCSERVICE   = 0x00000002
STM                      = "STMicroelectronics"
DISK_NAME                = "STMicroelectronics Accelerometer Device Installation Disk"
ST_ACCEL.DeviceDesc = "STMicroelectronics 3-Axis Digital Accelerometer"
ST_ACCEL.SVCDESC          = "STMicroelectronics Accelerometer Service"

