;Elgin
[Version]
Signature="$Windows NT$"
DriverVer=05/25/2017,0.0.0.2
Provider=%manufacture%
CatalogFile=elginsat.cat
ClassGUID={4d36e978-e325-11ce-bfc1-08002be10318}
Class=Ports

[Manufacturer]
%Architects%=_Models, ntx86, ntamd64, ntia64 

[_Models.ntx86]
%manufacture%=_Install, USB\VID_0525&PID_A4A7&REV_2498, USB\VID_0525&PID_A4A6&REV_0404&MI_00

[_Models.ntamd64]
%manufacture%=_Install, USB\VID_0525&PID_A4A7&REV_2498, USB\VID_0525&PID_A4A6&REV_0404&MI_00

[_Models.ntia64]
%manufacture%=_Install, USB\VID_0525&PID_A4A7&REV_2498, USB\VID_0525&PID_A4A6&REV_0404&MI_00

[_Install.ntx86]
CopyFiles=_CopyFiles_sys_x86
AddReg=_Common_AddReg

[_Install.ntx86.HW]
AddReg=_AddReg_Param

[_Install.ntx86.Services]
AddService = elginsat, 0x00000002, _AddService_x86, _EventLog_x86

[_AddService_x86]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\elginsat.sys

[_EventLog_x86]
AddReg=_EventLogAddReg_x86

[_EventLogAddReg_x86]
HKR,,EventMessageFile,%REG_EXPAND_SZ%,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\elginsat.sys"
HKR,,TypesSupported,  %REG_DWORD%, 7

;------------------------------------------------------------------------------
[_Install.ntamd64]
CopyFiles=_CopyFiles_sys_x64
AddReg=_Common_AddReg

[_Install.ntamd64.HW]
AddReg=_AddReg_Param

[_Install.ntamd64.Services]
AddService = elginsat_x64, 0x00000002, _AddService_x64, _EventLog_x64

[_AddService_x64]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\elginsat_x64.sys

[_EventLog_x64]
AddReg=_EventLogAddReg_x64

[_EventLogAddReg_x64]
HKR,,EventMessageFile,%REG_EXPAND_SZ%,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\elginsat_x64.sys"
HKR,,TypesSupported,  %REG_DWORD%, 7

[_AddReg_Param]
HKR,,DriverUserInterfaceGuid,%REG_SZ%,"{1c825fd3-3e7f-407c-880f-a546fea4ed01}"

HKR,,ReadBufferSize,  %REG_DWORD%, 1024
HKR,,WriteBufferSize, %REG_DWORD%, 64
HKR,,UseLogicBuffer,  %REG_DWORD%, 1
HKR,,ReadBufferCount, %REG_DWORD%, 1
HKR,,WriteBufferCount,%REG_DWORD%, 4

HKR,,SendLineCoding,  %REG_DWORD%, 0
HKR,,SendLineState,   %REG_DWORD%, 0
HKR,,SendBreak,       %REG_DWORD%, 0
HKR,,OperationMode,%REG_DWORD%, 0

HKR,,ClearFeatureOnStart,%REG_DWORD%, 0
HKR,,VendorPipeReset,%REG_DWORD%, 0
HKR,,StaticDeviceObject,%REG_DWORD%, 0
HKR,,ClearRtsDtrOnClose,%REG_DWORD%, 0

HKR,,DisknWriteMode,%REG_DWORD%,0
HKR,,IgnorePurgeTxClear,%REG_DWORD%,0

HKR,,DeviceObjectName,%REG_SZ%,"thcdcacmd"

HKR,,DoNotSendShortPackets,%REG_DWORD%,0

HKR,,DisableComLink,%REG_DWORD%,0

[_Common_AddReg]
HKR,,PortSubClass,1,01
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[_CopyFiles_sys_x86]
elginsat.sys,,,0x00000004

[_CopyFiles_sys_x64]
elginsat_x64.sys,,,0x00000004

[DestinationDirs]
DefaultDestDir  = 12  ; %windir%\system32\drivers 
_CopyFiles_sys_x86 = 12
_CopyFiles_sys_x64 = 12

[SourceDisksNames.x86]
1=%Disk%,,0
[SourceDisksNames.amd64]
1=%Disk%,,0

[SourceDisksFiles.x86]
elginsat.sys=1
[SourceDisksFiles.amd64]
elginsat_x64.sys=1

[Strings]
REG_SZ         = 0x00000000
REG_MULTI_SZ   = 0x00010000
REG_EXPAND_SZ  = 0x00020000
REG_BINARY     = 0x00000001
REG_DWORD      = 0x00010001

manufacture="Elgin SAT"
Architects="ELGIN SAT"
Disk="Elgin driver disk"