;
;  Copyright 2003 Microsoft Corporation, All rights reserved.
;
; iscsi.inf - Install Microsoft iSCSI initiator
;

[Version]
Signature="$Windows NT$"
Class=SCSIAdapter
ClassGUID={4D36E97B-E325-11CE-BFC1-08002BE10318}
Provider=%MSFT%
DriverVer = 06/21/2006,10.0.22621.2506

[SourceDisksNames]
3426=windows cd

[SourceDisksFiles]
msiscsi.sys 		= 3426
iscsilog.dll 		= 3426

[Manufacturer]
%MSFT%=Microsoft,NTamd64

[Microsoft.NTamd64]         
%iScsiPrt%=iScsiPort_Install_Control, Root\iSCSIPrt

[DestinationDirs]
iScsiPort_DriverCopy=12             ; system32\drivers
iScsiPort_LoggerCopy=11             ; system32

; =================== iScsiPort ================================

[iScsiPort_Install_Control]         
CopyFiles=iScsiPort_DriverCopy, iScsiPort_LoggerCopy
AddReg=iScsiPort_DriverAddReg

[iScsiPort_Install_Control.Services]        
AddService=iScsiPrt,2,iScsiPort_DriverInstallSection, iScsiPort_EventLog_Inst

[iScsiPort_DriverCopy]          
msiscsi.sys,,,0x100

[iScsiPort_LoggerCopy]          ; Copy iScsi Logger DLL
iscsilog.dll,,,0x100

[iScsiPort_DriverAddReg]
HKR,,EnumPropPages32,,"iscsipp.dll,iSCSIPropPageProvider"
HKR,Parameters,"TCPConnectTime",%REG_DWORD_NO_CLOBBER%,15
HKR,Parameters,"TCPDisconnectTime",%REG_DWORD_NO_CLOBBER%,15
HKR,Parameters,"WMIRequestTimeout",%REG_DWORD_NO_CLOBBER%,30
HKR,Parameters,"DelayBetweenReconnect",%REG_DWORD_NO_CLOBBER%,5
HKR,Parameters,"MaxPendingRequests",%REG_DWORD_NO_CLOBBER%,255
HKR,Parameters,"EnableNOPOut",%REG_DWORD_NO_CLOBBER%,0
HKR,Parameters,"MaxTransferLength",%REG_DWORD_NO_CLOBBER%,262144
HKR,Parameters,"MaxBurstLength",%REG_DWORD_NO_CLOBBER%,262144
HKR,Parameters,"FirstBurstLength",%REG_DWORD_NO_CLOBBER%,65536
HKR,Parameters,"MaxRecvDataSegmentLength",%REG_DWORD_NO_CLOBBER%,65536
HKR,Parameters,"MaxConnectionRetries",%REG_DWORD_NO_CLOBBER%,0xFFFFFFFF
HKR,Parameters,"MaxRequestHoldTime",%REG_DWORD_NO_CLOBBER%,60
HKR,Parameters,"LinkDownTime",%REG_DWORD_NO_CLOBBER%,15
HKR,Parameters,"IPSecConfigTimeout",%REG_DWORD_NO_CLOBBER%,60
HKR,Parameters,"InitialR2T",%REG_DWORD_NO_CLOBBER%,0
HKR,Parameters,"ImmediateData",%REG_DWORD_NO_CLOBBER%,1
HKR,Parameters,"ErrorRecoveryLevel",%REG_DWORD_NO_CLOBBER%,2
HKR,Parameters,"PortalRetryCount",%REG_DWORD_NO_CLOBBER%,5
HKR,Parameters,"NetworkReadyRetryCount",%REG_DWORD_NO_CLOBBER%,10
HKR,Parameters,"SrbTimeoutDelta",%REG_DWORD_NO_CLOBBER%,15

HKR,PersistentTargets

HKR,PersistentTargetSecrets

[iScsiPort_DriverInstallSection]
DisplayName=%iScsiPortName%
ServiceType    = 1      ;SERVICE_KERNEL_DRIVER
StartType      = 3      ;SERVICE_DEMAND_START
ErrorControl   = 1      ;SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\msiscsi.sys
AddReg         = msiscsi_addreg

[iScsiPort_EventLog_Inst]
AddReg=iScsiPort_EventLog_AddReg

[iScsiPort_EventLog_AddReg]
HKR,,EventMessageFile,%REG_EXPAND_SZ%,"%%SystemRoot%%\System32\iscsilog.dll"
HKR,,TypesSupported,%REG_DWORD%,7

[msiscsi_addreg]
HKR,"Parameters","BusType",%REG_DWORD%,0x00000009
HKR,,BootFlags,%REG_DWORD_NO_CLOBBER%,0x1 ; CM_SERVICE_NETWORK_BOOT_LOAD

[Strings]
;Localizable
MSFT="Microsoft"
MediaDescription="Microsoft iSCSI Installation Media"
iScsiPrt="Microsoft iSCSI Initiator"
iScsiPortName="iScsiPort Driver"
ISCSIEXE_Service_Name="Microsoft iSCSI Initiator Service"
ISCSIEXE_Description="Microsoft iSCSI Initiator Service"

;Non-localizable
REG_DWORD              = 0x00010001
REG_DWORD_NO_CLOBBER   = 0x00010003
REG_ADDREG_APPEND      = 0x00010008
REG_EXPAND_SZ          = 0x00020000
