;
; EGLP.inf
;
; Installation of the GLoria Synergy graphics adapter.
; 

[Version]
Signature ="$CHICAGO$"
Provider  =%ELSA%
ClassGUID ={4D36E968-E325-11CE-BFC1-08002BE10318}
Class     =Display
Bios      =%BIOS%

[DestinationDirs]
DefaultDestDir      = 11
ELSADRV.Miniport    = 12  ; drivers
ELSADRV.Display     = 11  ; system32
ELSADRV.Control     = 11  ; system32
ELSADRV.OpenGL      = 11  ; system32
ELSADRV.GLSet       = 10, %ELSAINST%
ELSADRV.WinmSuit    = 10, %ELSAINST%
ELSADRV.DeskTool    = 10, %ELSAINST%
ELSADRV.WINman      = 10, %ELSAINST%
ELSADRV.VIDEOIO     = 10, %ELSAINST%
ELSADRV.ELSAINFO    = 10, %ELSAINST%
ELSADRV.DXCTRL      = 10, %ELSAINST%
ELSADRV.inf         = 17 ; inf
ELSADRV.OldMiniport = 12 ; drivers
ELSADRV.OldDisplay  = 11 ; system32

;
; Driver information. 
;

[Manufacturer]
ELSA AG = ELSADRV.Menu

[ELSADRV.Menu]
%BOARDNAME%= ELSADRVTOOLSVIDEO

;
; General installation section
;
[ELSADRVTOOLSVIDEO]
CopyFiles= ELSADRV.Miniport, ELSADRV.Display,  ELSADRV.OpenGL, ELSADRV.WinmSuit, ELSADRV.WINman, ELSADRV.DeskTool, ELSADRV.GLSet, ELSADRV.Inf, ELSADRV.VIDEOIO, ELSADRV.ELSAINFO, ELSADRV.DXCTRL
DelFiles=ELSADRV.OldMiniport, ELSADRV.OldDisplay

[ELSADRVTOOLSVIDEO.GeneralConfigData]
MaximumDeviceMemoryConfiguration = 160

;
; File sections
;

[ELSADRV.OldMiniport]
winner.sys

[ELSADRV.OldDisplay]
winner.dll
winnermb.dll

[ELSADRV.Miniport]
E%DRVNAME%M.sys

[ELSADRV.Display]
EM%DRVNAME%D.dll

[ELSADRV.OpenGL]
EO%DRVNAME%.DLL

[ELSADRV.Inf]
E%DRVNAME%.INF

[ELSADRV.WinmSuit]
WINMSUIT.INF
WINMSUIT.CAB

[ELSADRV.DeskTool]
DESKTOOL.INF
DESKTOOL.CAB

[ELSADRV.WINman]
WINMAN.INF
WINMAN.CAB

[ELSADRV.GLSet]
%APPSET%.INF
GLSET.CAB

[ELSADRV.VIDEOIO]
videoio.inf
videoio.cab

[ELSADRV.ELSAINFO]
ELSAINFO.INF
ELSAINFO.CAB

[ELSADRV.DXCTRL]
DXCTRL.INF

;
; Service Installation
;

[ELSADRVTOOLSVIDEO.Services]
AddService = E%DRVNAME%M, 0x00000002, ELSADRV_Service_Inst, ELSADRV_EventLog_Inst
DelService = WINNER

[ELSADRV_Service_Inst]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 1                  ; SERVICE_SYSTEM_START
ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
LoadOrderGroup = Video
ServiceBinary  = %12%\E%DRVNAME%M.sys
AddReg 	       = ELSADRV.AddReg

[ELSADRV.AddReg]
HKR,, ExportOnlyDoubleBufferModes,                  %REG_DWORD%, 0
HKR,, ICDInterface.NeedDoubleBuffer,                %REG_DWORD%, 1
HKR,, ICDInterface.NumberOfDisplayBuffers,          %REG_DWORD%, 2
HKR,, ICDInterface.Disable,                         %REG_DWORD%, 0
HKR,, ICDInterface.SupportSingleBufferedGDI,        %REG_DWORD%, 1
HKR,, ICDInterface.SupportDoubleBufferedGDI,        %REG_DWORD%, 1
HKR,, ICDInterface.ExportAlpha,                     %REG_DWORD%, 0
HKR,, ICDInterface.SupportOverlayPlanes,            %REG_DWORD%, 0
HKR,, ICDInterface.PageFlipping,                    %REG_DWORD%, 0
HKR,, ICDInterface.PFD_STEREO,                      %REG_DWORD%, 0
HKR,, ICDInterface.PFD_SUPPORT_GDI,                 %REG_DWORD%, 0
HKR,, ICDInterface.PFD_SWAP_LAYER_BUFFERS,          %REG_DWORD%, 0
HKR,, ICDInterface.VBlankWait,                      %REG_DWORD%, 0
HKR,, ICDInterface.ForceGDIBroadCastingInOglViews,  %REG_DWORD%, 0
HKR,, ICDInterface.UseELSAOGL,                      %REG_DWORD%, 0
HKR,, KTX.BufferRegions,                            %REG_DWORD%, 1
HKR,, KTX.SwapHints,                                %REG_DWORD%, 1
HKR,, OpenGL.EnableP2Antialias,	                    %REG_DWORD%, 1
HKR,, OpenGL.UseHiQualityTextures,                  %REG_DWORD%, 0
HKR,, OpenGL.DisableFastClear,                      %REG_DWORD%, 0
HKR,, OpenGL.DisableMipMaps,                        %REG_DWORD%, 1
HKR,, OpenGL.SupportSoftimage,                      %REG_DWORD%, 0
HKR,, OpenGL.SupportSoftimage351,                   %REG_DWORD%, 0
HKR,, OpenGL.DisableMipMaps,                        %REG_DWORD%, 0
HKR,, OpenGL.TextureCompression,                    %REG_DWORD%, 0
HKR,, OpenGL.SupportOpenGLVersion11,                %REG_DWORD%, 1
HKR,, EnableVideoIO,                                %REG_DWORD%, 1

[ELSADRV_EventLog_Inst]
AddReg = ELSADRV_EventLog_AddReg

[ELSADRV_EventLog_AddReg]
HKR,,EventMessageFile,0x00020000,"%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\drivers\E%DRVNAME%M.sys"
HKR,,TypesSupported,0x00010001,7

;
; Software Installation - tools differ here
;
; GLORIA

[ELSADRVTOOLSVIDEO.SoftwareSettings]
AddReg = ELSADRV_SoftwareDeviceSettings, GLSET_AddReg, WINMSUIT_AddReg, WINMAN_AddReg, DESKTOOL_AddReg, ELSAINFO_AddReg, VIDEOIO_AddReg

[ELSADRV_SoftwareDeviceSettings]
HKR,, InstalledDisplayDrivers,                %REG_MULTI_SZ%, EM%DRVNAME%D
HKR,, VgaCompatible,                          %REG_DWORD%,    0
HKLM,"%OGLDRIVERS%","ELSA E%DRVNAME%M driver",%REG_SZ%,       EO%DRVNAME%

[GLSET_AddReg]
HKLM,"%RUN_ONCE%","ELSAGLoriaSettings",%REG_SZ%,"%DEFAULTINSTALL% 132 %10%\%ELSAINST%\%APPSET%.inf"

[WINMSUIT_AddReg]
HKLM,"%RUN_ONCE%","ELSAWinmSuite",%REG_SZ%,"%DEFAULTINSTALL% 132 %10%\%ELSAINST%\WinmSuit.inf"

[WINMAN_AddReg]
HKLM,"%RUN_ONCE%","ELSAWINman",%REG_SZ%,"%DEFAULTINSTALL% 132 %10%\%ELSAINST%\WINman.inf"

[DESKTOOL_AddReg]
HKLM,"%RUN_ONCE%","ELSADesktool",%REG_SZ%,"%DEFAULTINSTALL% 132 %10%\%ELSAINST%\Desktool.inf"

[VIDEOIO_AddReg]
HKLM,"%RUN_ONCE%","VideoIO",%REG_SZ%,"%DEFAULTINSTALL% 132 %10%\%ELSAINST%\VideoIO.inf"

[ELSAINFO_AddReg]
HKLM,"%RUN_ONCE%","ELSAInfo",%REG_SZ%,"%DEFAULTINSTALL% 132 %10%\%ELSAINST%\ELSAINFO.INF"

[DXCTRL_AddReg]
HKLM,"%RUN_ONCE%","DXCTRL",%REG_SZ%,"%DEFAULTUNINSTALL% 132 %10%\%ELSAINST%\DXCTRL.INF"
;
; Source file information
;

[SourceDisksNames]
1 = %DiskId1%,,,""
2 = %DiskId2%,,,""
3 = %DiskId3%,,,""
4 = %DiskId4%,,,""

[SourceDisksFiles.x86]
E%DRVNAME%.inf    = 2
EM%DRVNAME%D.dll  = 2, \i386
E%DRVNAME%M.sys   = 2, \i386
WINman.inf        = 2, \i386\WINman
WINman.cab        = 2, \i386\WINman
EO%DRVNAME%.DLL   = 3, \i386
GLSET.CAB         = 4, \i386\Glset
%APPSET%.INF      = 4, \i386\Glset
WinmSuit.CAB      = 4, \i386\WinmSuit
WinmSuit.INF      = 4, \i386\WinmSuit
DESKTOOL.INF      = 4, \i386\Desktool
DESKTOOL.CAB      = 4, \i386\Desktool
VIDEOIO.INF       = 4, \i386\VIDEOIO
VIDEOIO.CAB       = 4, \i386\VIDEOIO
ELSAINFO.INF      = 4, \i386\ELSAINFO
ELSAINFO.CAB      = 4, \i386\ELSAINFO
DXCTRL.INF        = 4, \i386\UNINSTAL

[Strings]

;
; Non-Localizable Strings
;

;
; Common for all boards
;

REG_SZ        = 0x00000000
REG_MULTI_SZ  = 0x00010000
REG_EXPAND_SZ = 0x00020000
REG_BINARY    = 0x00000001
REG_DWORD     = 0x00010001
RUN_ONCE      = "Software\Microsoft\Windows\CurrentVersion\RunOnce"
OGLDRIVERS    = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers"
DEFAULTINSTALL= "rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall"
DEFAULTUNINSTALL  = "rundll32.exe setupapi.dll,InstallHinfSection DefaultUninstall"
ELSAUTIL      = "ELSAutil"
ELSAINST      = "ELSAutil\install"
DiskId1       = "ELSA Windows NT 4.0 DISK 1 "
DiskId2       = "ELSA Windows NT 4.0 DISK 2 "
DiskId3       = "ELSA Windows NT 4.0 DISK 3 "
DiskId4       = "ELSA Windows NT 4.0 DISK 4 "
ELSA          = "ELSA"

;
; Different for every board
;
DRVNAME       ="GLP"
APPSET        ="EAPPSGLS"
BOARDNAME     ="ELSA GLoria Synergy"
BIOS          ="ELSA GLoria Synergy"