;/*++
;
;Copyright (c) 2010-2020 Intel Corporation
;
;Module Name:
;
;    Sample.inf
;
;Abstract:
;    INF file for installing Sample camera sensor (ACPI\INT3477) driver
;
;Installation Notes:
;    Using Devcon: Type "devcon update Sample.inf ACPI\INT3477" to install
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%INTEL%
DriverVer=05/11/2011,6.2.7989.0
CatalogFile=Sample.cat
PnpLockdown=1

[DestinationDirs]
DefaultDestDir = 12
CopyCPFFiles=11
CopyX64ExtraCPFFiles=10, SysWOW64

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

[Manufacturer]
%Sample%=Standard,NT$ARCH$

; For XP and later
[Standard.NT$ARCH$]
%Sample.DeviceDesc%=Sample_Device, ACPI\INT3477

[Sample_Device.NTamd64]
CopyFiles=Sample_Device.NT.Copy
CopyFiles=CopyCPFFiles
CopyFiles=CopyX64ExtraCPFFiles

[Sample_Device.NTx86]
CopyFiles=Sample_Device.NT.Copy
CopyFiles=CopyCPFFiles

[Sample_Device.NT.Copy]
Sample.sys

[CopyCPFFiles]
Sample_XXXX_XXX.cpf

[CopyX64ExtraCPFFiles]
Sample_XXXX_XXX.cpf

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

[Sample_Device.NTx86.Services]
AddService = Sample, %SPSVCINST_ASSOCSERVICE%, Sample_Service_Inst

[Sample_Device.NTamd64.Services]
AddService = Sample, %SPSVCINST_ASSOCSERVICE%, Sample_Service_Inst

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

[Sample_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)"

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

[SourceDisksFiles]
Sample.sys = 1
Sample_XXXX_XXX.cpf = 1
Sample_XXXX_XXX_XXX.aiqb = 1
graph_settings_XXX_XXX_TGL.xml = 1

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

