;
; NV Display INF file
;

[Version]
Signature="$Windows NT$"
Provider=%NVidia%
Class=Display

;
; Dest directories are \windows\system32 and \windows\system32\drivers
;

[DestinationDirs]
DefaultDestDir       = 11
nv4.Miniport      = 12
nv.Display       = 11
nv.rm            = 12
nv.oldrm         = 12
nv.delete.icd	 = 11

[SourceDisksNames]
1 = %DiskId1%, disk1
2 = %DiskId2%, disk2

[SourceDisksFiles]
nv4_mini.sys = 1
nv4_disp.dll = 1
nvinstnt.dll = 1
nvoglnt.dll  = 2

;
; The Manufacturer section lists all of the manufacturers that we will
; display in the Dialog box. DEVICE sections are specified.
;

[Manufacturer]
%NVidia%      = NVidia.Mfg

;
; Device section. Each section here corresponds with an entry listed in the
; [Manufacturer] section, above. The models will be displayed in the order
; that they appear in the INF file. This section identifies
; the corresponding INSTALL sections.
;


[NVidia.Mfg]
%NVidia.Nv4% = nv4, PCI\VEN_10DE&DEV_0020
%NVidia.Nv5% = nv4, PCI\VEN_10DE&DEV_0028
%NVidia.NvVanta% = nv4, PCI\VEN_10DE&DEV_002C
%NVidia.NvUltra% = nv4, PCI\VEN_10DE&DEV_0029
%NVidia.Nv5M64% = nv4, PCI\VEN_10DE&DEV_002D

;---------------------------------------------------------------------
; NV Driver INSTALL Section. This INSTALL section specifies
; what files are to to be copied (File List sections)
;---------------------------------------------------------------------

[nv4]
CopyFiles=nv4.Miniport, nv.Display, nv4.icd
DelFiles=nv.oldrm, nv.delete.icd

;
; NV Driver INSTALL Section. This INSTALL section specifies
; what registry fields are to be modified (ADD Registry section)
;

[nv4.SoftwareSettings]
AddReg = nv_SoftwareDeviceSettings
AddReg = nv4_icdSoftwareSettings
DelReg = nv_ClearRegistrySwitches

;
; NV Service Installation
;

[nv4.Services]
AddService = nv4, 0x00000002, nv4_Generic_Service_Inst, nv4_EventLog_Inst
DelService=nvarch
DelService=nvgfx

[nv4.GeneralConfigData]
MaximumDeviceMemoryConfiguration=80


[nv4_EventLog_Inst]
AddReg = nv4_EventLog_AddReg

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

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

;
; File List sections for NV.Display and NV.Miniport
;

[nv.Display]
nv4_disp.dll
nvinstnt.dll

[nv4.Miniport]
nv4_mini.sys

[nv.oldrm]
nvarch.sys,0x00000001
nvgfx.sys,0x00000001

[nv4.icd]
nvoglnt.dll

[nv.delete.icd]
nv4oglnt.dll,0x00000001
nvopenglnt.dll,0x00000001

;
; NVidia Add registry section
;

[nv_SoftwareDeviceSettings]
HKR,, InstalledDisplayDrivers,     %REG_MULTI_SZ%, nv4_disp
HKR,, VgaCompatible,               %REG_DWORD%,    0
HKR,, Disable16x12x32ge70,		   %REG_DWORD%,    1
HKR,, Disable19x10x32ge70,		   %REG_DWORD%,    1
HKR,, Disable19x12x32at60,		   %REG_DWORD%,    1
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\NVIDIA
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\NVIDIA,DisplayName,%REG_SZ%,"NVIDIA RIVA TNT Family Windows NT 4.0 Display Drivers"
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\NVIDIA,UninstallString,%REG_SZ%,"rundll32.exe %11%\nvinstnt.dll,NvUninstallNT4 nv4_disp.inf"

[nv4_icdSoftwareSettings]
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers",RIVATNT, %REG_SZ%, nvoglnt

;
; Clear out old registry switches
;

[nv_ClearRegistrySwitches]
HKR,, DMTOVERRIDE
HKR,, DisableExtRefresh
HKR,, Max16x12
HKR,, Disable19x12x32at60
HKR,, Disable16x12x32ge70
HKR,, Disable19x10x32ge70
HKR,, DellSwitch1
HKR,, OglStencil
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\OpenGLDrivers",RIVATNT

[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
;

NVidia       = "NVIDIA"
NVidia.Nv4 = "NVIDIA RIVA TNT"
NVidia.Nv5 = "NVIDIA RIVA TNT2"
NVidia.NvVanta = "NVIDIA Vanta"
NVidia.NvUltra = "NVIDIA RIVA TNT2 Ultra"
NVidia.Nv5M64 = "NVIDIA RIVA TNT2 Model 64"
DiskId1="NVIDIA NT Driver Library Installation Disk 1"
DiskId2="NVIDIA NT Driver Library Installation Disk 2"
drvlib="NVIDIA NT Driver Library"
