[Version]
Signature="$WINDOWS NT$"
Class=InsydeSeg
ClassGuid={416C2604-443B-436F-9E1D-607BDC3CC785}
Provider=%ProviderName%
DriverVer=12/26/2019,6.1.7600.16385
CatalogFile=segwindrv.cat

[DestinationDirs]
DefaultDestDir = 12

;*****************************************
; Class Section
;*****************************************
[ClassInstall32]
Addreg = SegwindrvReg

[SegwindrvReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-5
HKR,,DeviceCharacteristics,0x10001,0x100     ;Use same security checks on relative opens
HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GA;;;BA)" ;Allow generic all access to system and built-in Admin.

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

[Manufacturer]
%MFGNAME%=Standard,NTamd64,NTx86

[Standard.NTamd64]
%WdfDevice.DeviceDesc%=Insyde_Device64, {416C2604-443B-436F-9E1D-607BDC3CC785}\segwindrv

[Standard.NTx86]
%WdfDevice.DeviceDesc%=Insyde_Device32, {416C2604-443B-436F-9E1D-607BDC3CC785}\segwindrv

[Insyde_Device64.NT]
CopyFiles=Insyde_Device64.NT.Copy

[Insyde_Device32.NT]
CopyFiles=Insyde_Device32.NT.Copy

[Insyde_Device64.NT.Copy]
segwindrvx64.sys

[Insyde_Device32.NT.Copy]
segwindrv.sys

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

[Insyde_Device64.NT.Services]
AddService = segwindrv, %SPSVCINST_ASSOCSERVICE%, wdf_Service_Inst64

[Insyde_Device32.NT.Services]
AddService = segwindrv, %SPSVCINST_ASSOCSERVICE%, wdf_Service_Inst32

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

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

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

[SourceDisksFiles.amd64]
segwindrvx64.sys  = 1,,

[SourceDisksFiles.x86]
segwindrv.sys  = 1,,


[Strings]
SPSVCINST_ASSOCSERVICE = 0x00000002
ProviderName = "Insyde"
ClassName = "H2O devices"
MFGNAME = "Insyde"
DiskId1 = "Insyde Windows IO Device Installation Disk #1"
WdfDevice.DeviceDesc = "SEG windrv"
WDF.SVCDESC = "Insyde Windows IO Device Driver"
