; kplewxp.inf
;
; Installation file (.inf) for the VT8361/VT8601/VT8501 devices.
;
; (c) Copyright 2001 VIA Technologies, Inc 
;

[Version]
Signature="$Windows NT$"
Provider=%VIA%
ClassGUID={4D36E968-E325-11CE-BFC1-08002BE10318}
Class=Display
CatalogFile=trid3d.cat
DriverVer=03/20/2002, 6.13.10.3129

[ControlFlags]
ExcludeFromSelect = PCI\VEN_1023&DEV_8400
ExcludeFromSelect = PCI\VEN_1023&DEV_8500

[DestinationDirs]
DefaultDestDir   = 11
trid3d.Miniport  = 12  ; drivers
trid3d.Display   = 11  ; system32
Info2Sys.Copy    = 11
Info2Hlp.Copy    = 18
S3DispSys.Copy   = 11
S3DispHlp.Copy   = 18
GAMMA2Sys.Copy   = 11
GAMMA2Hlp.Copy   = 18

;
; Driver information
;

[Manufacturer]
%VIA% = VIA.Mfg

[VIA.Mfg]
%VIA.VT8501% = trid3d, PCI\VEN_1023&DEV_8400
%VIA.VT8601% = trid3d, PCI\VEN_1023&DEV_8500

;
; General installation section
;

[trid3d]
CopyFiles=trid3d.Miniport, trid3d.Display, trid3d.ICD, Info2Hlp.Copy, Info2Sys.Copy, S3DispHlp.Copy, S3DispSys.Copy, GAMMA2Hlp.Copy, GAMMA2Sys.Copy

;
; File sections
;

[trid3d.Miniport]
trid3dm.sys

[trid3d.Display]
trid3d.dll

[trid3d.ICD]
tridicdp.dll

[S3DispSys.Copy]
S3Disply.dll
S3Disply.cfg
S3apphk.exe
S3appdll.dll

[S3DispHlp.Copy]
S3DspWST.hlp
S3DspCHS.hlp
S3DspCHT.hlp
S3DspJPN.hlp
S3DspKOR.hlp

[Info2Sys.Copy]
S3Info2.dll
S3Info2.cfg

[Info2Hlp.Copy]
s3in2wst.hlp
s3in2chs.hlp
s3in2cht.hlp
s3in2jpn.hlp
s3in2kor.hlp

[GAMMA2Sys.Copy]
S3Gamma2.dll
S3Gamma2.cfg

[GAMMA2Hlp.Copy]
S3Gm2WST.hlp
S3Gm2CHS.hlp
S3Gm2CHT.hlp
S3Gm2JPN.hlp
S3Gm2KOR.hlp


;
; Service Installation
;

[trid3d.Services]
AddService = trid3d, 0x00000002, trid3d_Service_Inst, trid3d_EventLog_Inst

[trid3d_Service_Inst]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_SYSTEM_START
ErrorControl   = 0                  ; SERVICE_ERROR_IGNORE
LoadOrderGroup = Video
ServiceBinary  = %12%\trid3dm.sys

[trid3d_EventLog_Inst]
AddReg = trid3d_EventLog_AddReg

[trid3d_EventLog_AddReg]
HKR,,EventMessageFile,0x00020000,"%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\drivers\trid3dm.sys"
HKR,,TypesSupported,0x00010001,7

;
; Software Installation
;

[trid3d.SoftwareSettings]
DelReg = trid3d_Utility_Del
AddReg = trid3d_SoftwareDeviceSettings, S3Disp.AddReg, Info2.AddReg, S3Gamma2.AddReg

[trid3d_SoftwareDeviceSettings]
HKR,, VgaCompatible,               %REG_DWORD%, 1
HKR,, InstalledDisplayDrivers,     %REG_MULTI_SZ%, trid3d
HKR,, HardwareInformation.LastMode, %REG_DWORD%, 0

HKR,, PanningSupport,              %REG_SZ%, 0
HKR,, HotKeyEnable,                %REG_DWORD%, 1
HKR,, DigitalTVEnable,             %REG_DWORD%, 1
HKR,, DeviceInfo,                  %REG_DWORD%, 2
HKR,, EnableDualVideos,            %REG_DWORD%, 0
HKR,, Win95Compatible,             %REG_SZ%, 1
HKR,, HKeyMultiViewLoop,           %REG_SZ%, 0
HKR,, OverlayFocusOnLCD,           %REG_SZ%, 0
HKR,, AGPTextureSize,              %REG_DWORD%, 16
HKR,, EnableAGPCmdList,            %REG_DWORD%, 1
HKR,, BootDevicePolicy,            %REG_DWORD%, 0
HKR,, Enable720Modes,              %REG_DWORD%, 0
HKR,, TVDotCrawl,                  %REG_DWORD%, 0
HKR,, TVOverscan,                  %REG_DWORD%, 0
; Special Pool
HKLM,"SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", PoolTag, %REG_DWORD%, 1768843597 
HKLM,"SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", PoolTagOverruns, %REG_DWORD%, 1
; OpenGL ICD 
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers",trid3d, %REG_SZ%, "tridicdp.dll"

[S3Disp.AddReg]
HKCR,CLSID\%S3DISPCLS%,,,"S3Display Property Sheet"
HKCR,CLSID\%S3DISPCLS%\InProcServer32,,,S3Disply.dll
HKCR,CLSID\%S3DISPCLS%\InProcServer32,ThreadingModel,,Apartment
HKLM,%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Display,"",,%S3DISPCLS%
HKLM,%S3DSPKEY%,Filename,,S3Disply.dll
HKLM,%S3DSPKEY%,URL,,http://www.s3graphics.com
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Run,S3apphk,,"S3apphk.exe"


[Info2.AddReg]
HKCR,CLSID\%INFO2CLS%,,,"S3Info2 Property Sheet"
HKCR,CLSID\%INFO2CLS%\InProcServer32,,,S3Info2.dll
HKCR,CLSID\%INFO2CLS%\InProcServer32,ThreadingModel,,Apartment
HKLM,%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Info2,"",,%INFO2CLS%
HKLM,%INFO2KEY%,Filename,,S3Info2.dll

[S3Gamma2.AddReg]
HKCR,CLSID\%GM2CLSID%,,,"S3Gamma2 Property Sheet"
HKCR,CLSID\%GM2CLSID%\InProcServer32,,,S3Gamma2.dll
HKCR,CLSID\%GM2CLSID%\InProcServer32,ThreadingModel,,Apartment
HKLM,%CURVER%\%CtrlFld%\Display\shellex\PropertySheetHandlers\S3Gamma2,"",,%GM2CLSID%
HKLM,%S3G2KEY%,Filename,,S3Gamma2.dll


[trid3d_Utility_Del]
HKR,UTILITY
HKR,,DTV_SETTING_001
HKR,,DTV_SETTING_002
HKR,,DTV_SETTING_003
HKR,,DTV_SETTING_004
HKR,,DTV_SETTING_005
HKR,,DTV_SETTING_006
HKR,,DTV_SETTING_007
HKR,,DTV_SETTING_008
HKR,,DTV_SETTING_009
HKR,,DTV_SETTING_010
HKR,,DTV_SETTING_011
HKR,,DTV_SETTING_012

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", TridentVideoIcon
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", TridentTVIcon
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers",trid3d, %REG_SZ%, "tridicdp.dll"


;
; Source file information
;

[SourceDisksNames.x86]
1 = %DiskId%,,,""

[SourceDisksFiles]
trid3d.dll=1
trid3dm.sys=1
tridicdp.dll=1

S3Disply.dll=1
S3Disply.cfg=1
S3apphk.exe=1
S3appdll.dll=1


S3DspWST.hlp=1
S3DspCHS.hlp=1
S3DspCHT.hlp=1
S3DspJPN.hlp=1
S3DspKOR.hlp=1

S3Info2.dll=1
S3Info2.cfg=1
s3in2wst.hlp=1
s3in2chs.hlp=1
s3in2cht.hlp=1
s3in2jpn.hlp=1
s3in2kor.hlp=1

S3Gamma2.dll=1
S3Gamma2.cfg=1
S3Gm2WST.hlp=1
S3Gm2CHS.hlp=1
S3Gm2CHT.hlp=1
S3Gm2JPN.hlp=1
S3Gm2KOR.hlp=1

[Strings]

;
; Non-Localizable Strings
;

REG_SZ         = 0x00000000
REG_MULTI_SZ   = 0x00010000
REG_EXPAND_SZ  = 0x00020000
REG_BINARY     = 0x00000001
REG_DWORD      = 0x00010001
SERVICEROOT    = System\CurrentControlSet\Services

;
; Localizable Strings
;

CtrlFld    = "Controls Folder"
CURVER     = "Software\Microsoft\Windows\CurrentVersion"
S3         = "S3 Graphics, Inc."
S3DISPCLS  = "{a3b69838-fc13-48b9-9438-beaf0eda660a}"
S3DISPNAME = "S3Display"
S3DSPKEY   = "SOFTWARE\S3\S3Display"
INFO2CLS   = "{48429801-16E6-11d4-8ECD-00609784BD62}"
INFO2NAME  = "S3Info2"
INFO2KEY   = "SOFTWARE\S3\S3Info2"
SGm2Desc  = "S3Gamma2"
GM2CLSID  = "{46b23a80-2895-11d3-bfcb-00aa0022f384}"
S3G2KEY   = "SOFTWARE\S3\S3Gamma2"


DiskId="VIA Tech Graphics Controller Driver"
VIA="VIA Technologies, Inc."
VIA.VT8501="VIA Tech VT8501 Graphics Controller"
VIA.VT8601="VIA Tech VT8361/VT8601 Graphics Controller"