; PARXPORT.INF
;  Used to install OX16PCI954/OX12PCI840 parallel port
;  Device ID = 0x9513, 0x8403 assumed
;

[Version]
Signature="$CHICAGO$"
Provider=%ProviderName%
ClassGUID={4d36e978L-e325-11ce-bfc1-08002be10318}
Class=Ports

[DestinationDirs]
DriverCopy 		= 12
InfCopy 		= 17

[Manufacturer]
%ProviderName% = mfg

[mfg]
%PCIParallel.DeviceDesc%	= Install, PCI\VEN_1415&DEV_9513
%PCIParallel.DeviceDesc%	= Install, PCI\VEN_1415&DEV_8403
%PCIParallel.DeviceDesc%	= Install, PCI\VEN_1415&DEV_9523

[Install]
AddService = parxport, 0x00000002, oxpar_Service_Install, oxpar_EventLog_Install
CopyFiles=InfCopy, DriverCopy
AddReg=oxpar_AddReg

[Uninstall]
DelService=parxport
DelFiles=InfCopy, DriverCopy
AddReg=oxpar_RestoreReg

[oxpar_Service_Install]
DisplayName  = %ServiceName%
ServiceType  = 1                  ; SERVICE_KERNEL_DRIVER
StartType    = 2                  ; SERVICE_AUTO_START
ErrorControl = 0                  ; SERVICE_ERROR_NONE
ServiceBinary= %12%\parxport.sys

[oxpar_AddReg]
HKR,%ParametersSubKey%, PCIVendorID, 		%REG_DWORD%, 	   	0x1415
HKR,%ParametersSubKey%, PCIDeviceID0, 		%REG_DWORD%, 	   	0x9513
HKR,%ParametersSubKey%, PCIDeviceID1, 		%REG_DWORD%, 	   	0x8403
HKR,%ParametersSubKey%, PCIDeviceID2, 		%REG_DWORD%, 	   	0x9523
;Make parallel dependent on this driver as well as parport. Tag = anything other than 1
HKR,,			Group,	     	 	%REG_EXPAND_SZ%,  	"Parallel arbitrator"
HKR,,			Tag,		 	%REG_DWORD%, 	   	0xff	
HKLM,%DependSubKey%,	DependOnService, 	%REG_ADDREG_APPEND%, 	parxport

[oxpar_RestoreReg]
;Parallel no longer dependent on us, back to just parport
HKLM,%DependSubKey%,	DependOnService, 	%REG_MULTI_SZ%,   	Parport

[oxpar_EventLog_Install]
AddReg=oxpar_EventLog_AddReg

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


[DriverCopy]
parxport.sys

[InfCopy]
parxport.inf


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

PCIParallel.DeviceDesc 	= "PCI Parallel Controller"
ProviderName	 	= "OEM"
ParametersSubKey 	= "Parameters"
ServiceName	 	= "PCI Parallel Driver"
DependSubKey	 	= "SYSTEM\CurrentControlSet\Services\Parallel"