;/*++
;
;Copyright (c) 2010-2011 Intel Corporation
;
;Module Name:
;
;    s5k4ec.inf
;
; @@ begin Abstract Block
;Abstract:
;    INF file for installing S5K4EC camera sensor (ACPI\INT33F9) driver
;
;Installation Notes:
;    Using Devcon: Type "devcon update s5k4ec.inf ACPI\INT33F9" to install
; @@ end Abstract Block
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%INTEL%
DriverVer=07/10/2013,6.2.9200.34861
; @@ begin Catalog Block
CatalogFile=s5k4ec.cat
; @@ end Catalog Block
PnpLockdown=1

[DestinationDirs]
DefaultDestDir = 12

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

[Manufacturer]
%S5k4ec%=Standard,NTx86

; For XP and later
; @@ begin Identification Block
[Standard.NTx86]
%s5k4ec.DeviceDesc%=S5k4ec_Device, ACPI\INT33F9
; @@ end Identification Block

[S5k4ec_Device.NT]
CopyFiles=S5k4ec_Device.NT.Copy
Reboot

[S5k4ec_Device.NT.Copy]
; @@ begin CopyDLLs Block
s5k4ec.sys
; @@ end CopyDLLs Block

;-------------- Service installation

[S5k4ec_Device.NT.Services]
AddService = s5k4ec, %SPSVCINST_ASSOCSERVICE%, s5k4ec_Service_Inst

[s5k4ec_Service_Inst]
DisplayName    = %s5k4ec.SVCDESC%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\s5k4ec.sys
Dependencies   = SpbCx,inteli2c
AddReg         = S5k4ec_Device.AddReg

[S5k4ec_Device.AddReg]
;Use same security checks on relative opens
HKR,,DeviceCharacteristics,0x10001,0x0100
;Grant access just to built-in administrators, local system, and usermode drivers
HKR,,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)(A;;GA;;;S-1-5-84-0-0-0-0-0)(D;;GA;;;WD)"
; @@ begin OEM Device Registry Additions
; @@ end OEM Device Registry Additions

[SourceDisksNames]
1 = %DiskId1%,,,""

[SourceDisksFiles]
s5k4ec.sys  = 1
; @@ begin SourceDisksFiles Block
; @@ end SourceDisksFiles Block

[Strings]
SPSVCINST_ASSOCSERVICE = 0x00000002
INTEL = "Intel Corporation"
S5k4ec = "Camera Sensor S5K4EC"
DiskId1 = "Camera S5K4EC Installation Disk #1"
s5k4ec.DeviceDesc = "Camera Sensor S5K4EC"
s5k4ec.SVCDESC = "Camera Sensor S5K4EC"

