;
; OV519.INF  -- This file contains installation information 
; for OmniVision OV519 series Chip
;             
[Version]
LayoutFile=Layout.inf, Layout1.inf, Layout2.inf
signature="$CHICAGO$"

Class=Image
ClassGUID={6bdd1fc6-810f-11d0-bec7-08002be2092f}

Provider=%SWMfg%
DriverVer=08/18/2002,2.1.0.0
CatalogFile=ov519.cat

[ControlFlags]
ExcludeFromSelect=*

[Manufacturer]
%HWMfg%=OVT
 
[DestinationDirs]
DefaultDestDir = 11
OVT.USBDCam0519.Files = 10,System32\Drivers
OVT.USBDCam0519.2000= 10,System32\Drivers
OVT.TWAIN.CopyFiles = 10,TWAIN_32\OMCAM
OVT.AP.CopyFiles = 10
OVT.Setting.CopyFiles = 10,OvtCam
uninstall.files = 10 ;@@

[OVT]
%USB\VID_054C&PID_0154.DeviceDesc%=OVT.USBDCam0519,USB\VID_054C&PID_0154&MI_00

[OVT.USBDCam0519]
Include=    ks.inf, kscaptur.inf, ksfilter.inf
Needs=      KS.Registration,KSCAPTUR.Registration

SubClass=StillImage
DeviceType=2
DeviceSubType=0x0519
Capabilities=1
Events=OVT.Events
DeviceData=OVT.STI.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"
;UpdateInis= OVT.USBDCam0519.Links
DelReg=OVT.DelReg
AddReg=OVT.USBDCam0519.AddReg, OVT.USBDCam0519.BasicSetting, OVT.0519.AddReg,Uninstall.AddReg, AddReg.Runonce ;@@
CopyFiles=OVT.STI.CopyFiles, OVT.Setting.CopyFiles, OVT.TWAIN.CopyFiles, OVT.USBDCam0519.Files, OVT.AP.CopyFiles,uninstall.files  ;@@

[OVT.USBDCam0519.NT]
Include=    ks.inf, kscaptur.inf, ksfilter.inf
Needs=      KS.Registration,KSCAPTUR.Registration.NT

SubClass=StillImage
DeviceType=2
DeviceSubType=0x0519
Capabilities=1
Events=OVT.Events
DeviceData=OVT.STI.DeviceData
ICMProfiles="sRGB Color Space Profile.icm"
;UpdateInis= OVT.USBDCam0519.Links
DelReg=OVT.DelReg
AddReg=OVT.USBDCam0519.AddReg, OVT.USBDCam0519.BasicSetting, OVT.0519.AddReg, OVT.2000.AddReg,Uninstall.AddReg, AddReg.Runonce ;@@ 
CopyFiles=OVT.STI.CopyFiles, OVT.Setting.CopyFiles, OVT.TWAIN.CopyFiles, OVT.USBDCam0519.2000, OVT.AP.CopyFiles,uninstall.files ;@@

;*****************************************

[OVT.DelReg]
HKLM,%Run%,"SetFirst"
HKLM,%Run%,"Autolaunch"
HKLM,"Software\Omnivision"
HKLM,"System\CurrentControlSet\Control\MediaResources\msvideo\MSVideo.OVFWWDM"
HKLM,"System\CurrentControlSet\Control\MediaResources\msvideo\MSVideo.CVFWWDM"
HKLM,"System\CurrentControlSet\Control\MediaResources\msvideo\MSVideo.OVTCAM"
HKLM,"Software\OVTUsbCamera\DeviceName"

[OVT.STI.DeviceData]
TwainDS=%TwainDsName%
SpecialInfo="My very special information"


[OVT.Events]
StillCaptured="%StillCaptured%",{B4748401-94B3-11d6-BC02-00D0B7C7235A},%ov519Sti%
AutoLaunch="%AutoLaunch%",{B4748400-94B3-11d6-BC02-00D0B7C7235A},%ov519cap%
;AutoClose="%AutoClose%",{B4748404-94B3-11d6-BC02-00D0B7C7235A},*

[OVT.USBDCam0519.AddReg]
HKR,,HardwareConfig,1,1
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,ov519vid.sys
HKR,,OkToHibernate,3,01
;HKR,,PageOutWhenUnopened,3,01
;HKR,,PowerDownWhenUnopened,3,01
;HKR,,DontSuspendIfStreamsAreRunning,3,01
HKR,,USDClass,,"{B4748403-94B3-11d6-BC02-00D0B7C7235A}"
HKCR,CLSID\{B4748403-94B3-11d6-BC02-00D0B7C7235A} ,,,"OmniVision Dual Mode USB Camera OV519 USD"
HKCR,CLSID\{B4748403-94B3-11d6-BC02-00D0B7C7235A}\InProcServer32,,,%11%\ov519usd.dll
HKCR,CLSID\{B4748403-94B3-11d6-BC02-00D0B7C7235A}\InProcServer32,ThreadingModel,,"Both"
HKLM,"Software\Microsoft\Windows\CurrentVersion\StillImage\Registered Applications",%ov519sti%,,"%10%\ov519cap.exe /StiDevice:%1 /StiEvent:%2"
HKLM,"Software\Microsoft\Windows\CurrentVersion\StillImage\Registered Applications",%ov519cap%,2,"%10%\amcap.exe /StiDevice:%1 /StiEvent:%2"
HKR,Events\AutoLaunch, LaunchApplications,,%ov519cap%
;
;  Custome Property Interface
;
HKCR,CLSID\{BB532021-942B-11d6-BC02-00D0B7C7235A} ,,,"OmniVision Dual Mode USB Camera OV519"
HKCR,CLSID\{BB532021-942B-11d6-BC02-00D0B7C7235A}\InProcServer32,,,ov519ext.ax
HKCR,CLSID\{BB532021-942B-11d6-BC02-00D0B7C7235A}\InProcServer32,ThreadingModel,,"Both"
;
;
; CLSID_VideoProcAmp Property Page
HKCR,CLSID\{6E7E8480-942E-11d6-BC02-00D0B7C7235A},,,%PropPage_CustomVideoProcAmp%
HKCR,CLSID\{6E7E8480-942E-11d6-BC02-00D0B7C7235A}\InprocServer32,,,ov519ext.ax
HKCR,CLSID\{6E7E8480-942E-11d6-BC02-00D0B7C7235A}\InprocServer32,ThreadingModel,,Both

; CLSID_CameraControl Property Page
HKCR,CLSID\{6E7E8481-942E-11d6-BC02-00D0B7C7235A},,,%PropPage_CustomCameraControl%
HKCR,CLSID\{6E7E8481-942E-11d6-BC02-00D0B7C7235A}\InprocServer32,,,ov519ext.ax
HKCR,CLSID\{6E7E8481-942E-11d6-BC02-00D0B7C7235A}\InprocServer32,ThreadingModel,,Both
;
; Associate the property set with the property page
HKLM,System\CurrentControlSet\Control\MediaSets\{BB532021-942B-11d6-BC02-00D0B7C7235A}\PropertyPages\{6E7E8480-942E-11d6-BC02-00D0B7C7235A},,,%PropPage_CustomVideoProcAmp%
HKLM,System\CurrentControlSet\Control\MediaSets\{BB532021-942B-11d6-BC02-00D0B7C7235A}\PropertyPages\{6E7E8481-942E-11d6-BC02-00D0B7C7235A},,,%PropPage_CustomCameraControl%

[OVT.USBDCam0519.BasicSetting]
;
;
HKR,,ModulFileName,,ov519twn.ds
;HKLM,"Software\OVTUsbCamera\DeviceName", "DeviceName0519",,%USB\VID_054C&PID_0154.DeviceDesc%
;HKLM,"Software\OVTUsbCamera", "TwainDsName",,%TwainDsName%
;;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","CreatGroup",,"grpconv -o"

;HKLM,"Software\Vid_05A9\Pid_8519", "TWAINHelp",,%TWIANHelpFileName%
;HKLM,"Software\Vid_05A9\Pid_8519", "PropPageHelpImg",,%PageHelpImgFileName%
;HKLM,"Software\Vid_05A9\Pid_8519", "PropPageHelpCam",,%PageHelpCamFileName%

;
;
HKR,%CamSet%, StillSupportType, 0x10001, 2
;HKR,%CamSet%, CustomID, 0x10001, 2
HKR,%CamSet%, EnableAutoLaunch, 1, 57,23,ff
HKR,%CamSet%, DisableAutoLaunch, 1, 57,23,ff
HKR,%CamSet%, ClearSnapButton, 1, 57,03,02
HKR,%CamSet%, CheckAutoLaunch, 1, 57,10,10
HKR,%CamSet%, EnableAutoClose, 0x10001,1
;HKR,%CamSet%, UseGpio0, 0x10001,1
;HKR,%CamSet%, SupportEvent, 0x10001, 1
HKR,%CamSet%, EnableSystem, 1, 5a,6d,FF, 53,9b,9f, 54,ff,ff, 5d,03,ff, 49,01,ff, \
48,00,ff, 72,ee,ff
;;HKR,%CamSet%, EnableSystem, 1, 53,E1,FF, 5d, 03, ff
HKR,%CamSet%, DisableSystem, 1, 53,9b,9b
HKR,%CamSet%, ResetUsb, 1, 51,0f,ff, 51,0,ff
HKR,%CamSet%, SetUsbInit, 1, 51,0f,ff, 51,00,ff, 22,00,ff
HKR,%CamSet%, SetUsbWork, 1, 51,0f,ff, 51,00,ff, 22,1d,ff
HKR,%CamSet%, TurnOnLed, 1, 71,01,01
HKR,%CamSet%, TurnOffLed, 1, 71,00,01
HKR,%CamSet%, BlockStream, 1, 51,0f,ff
HKR,%CamSet%, StartStream, 1, 51,00,ff
HKR,%CamSet%, BandwidthAllocateRule, 0x10001, 0
HKR,%CamSet%, FileDir,, \DosDevices\%10%\OvtCam
;HKR,%CamSet%, LoadSettingOnce,0x10001,0

[OVT.0519.AddReg]
HKR,%CamSet%\CamSettingFiles,6630f519,,6630f519.set
HKR,%CamSet%\CamSettingFiles,7620519,,7620519.set
HKR,%CamSet%\CamSettingFiles,7620e519,,7620e519.set
HKR,%CamSet%\CamSettingFiles,7640519,,7640519.set
HKR,%CamSet%\CamSettingFiles,7648519,,7648519.set
HKR,%CamSet%\CamSettingFiles,7635519,,7635519.set
HKR,%CamSet%, IdleAltSetting, 0x10001, 0x0
;; for remove program group
HKR,,ShortCutString,,%0519%

[OVT.2000.AddReg]
;The path must consist with LegencyPath setting in each .SET file.
;HKR,%76BGDP%,LegencyPath,,\Registry\Machine\Software\OmniVision\PC Camera
HKLM,"Software\OmniVision\PC Camera","PushModeEvent",,"Enable"

[Uninstall.AddReg]
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstall.String%","DisplayName",0x00000000,"%Uninstall.String%"
HKLM,"Software\Microsoft\Windows\CurrentVersion\Uninstall\%Uninstall.String%","UninstallString",0x00000000,"%10%\CleanDev.exe %10%\ov519.TXT"

[OVT.USBDCam0519.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,GLOBAL,OVT.USBDCam0519.Interface

[OVT.USBDCam0519.NT.Interfaces]
AddInterface=%KSCATEGORY_CAPTURE%,GLOBAL,OVT.USBDCam0519.Interface

[OVT.USBDCam0519.Interface]
AddReg=OVT.USBDCam0519.Intf.AddReg
         
[OVT.USBDCam0519.Intf.AddReg]
HKR,,CLSID,,%ProxyVCap.CLSID%
HKR,,FriendlyName,,%USB\VID_054C&PID_0154.DeviceDesc%
HKR,,ExtensionDLL,,%Ovt.ExtensionDLL%
;HKR,PinFactory\0\Interfaces\{C6E13343-30AC-11d0-A18C-00A0C9118956},,,{C6E13343-30AC-11d0-A18C-00A0C9118956}
;HKR,PinFactory\1\Interfaces\{C6E13343-30AC-11d0-A18C-00A0C9118956},,,{C6E13343-30AC-11d0-A18C-00A0C9118956}

[OVT.USBDCam0519.NT.Services]
AddService = ovt519,0x00000002,OVT.USBDCam0519.ServiceInstall

[OVT.USBDCam0519.ServiceInstall]
DisplayName   = %USB\VID_054C&PID_0154.DeviceDesc%
ServiceType   = %SERVICE_KERNEL_DRIVER%
StartType     = %SERVICE_DEMAND_START%
ErrorControl  = %SERVICE_ERROR_NORMAL%
ServiceBinary = %10%\System32\Drivers\ov519vid.sys



;[OVT.USBDCam0519.Links]@@
;create folders
;;setup.ini, progman.groups,,"ProductGroup=%0519%" @@
; create links
; second param must match above and the linked to file must really exist
;;setup.ini, ProductGroup,,"%UNS0519%,%10%\omniuns.exe USB\VID_054C&PID_0154,,," @@
;;setup.ini, ProductGroup,,"%WDMCAPTURE%,%10%\amcap.exe,,," @@
;;setup.ini, ProductGroup,,"%VFWCAPTURE%,%10%\vidcap32.exe,,," @@
;Add desktop icons here

[AddReg.Runonce]
HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce,Flicker,0x00000000,"%10%\sel3110.exe"

[OVT.STI.CopyFiles]
ov519usd.dll,,,4 
ov519ext.dll,,,4 
ov519ext.ax,,,4 

[OVT.AP.CopyFiles]
ov519cap.exe,,,4 
amcap.exe,,,4 
vidcap32.exe,,,4 
;omniuns.exe,,,4 
ov519dib.dll,,,4 

[OVT.TWAIN.CopyFiles]
ov519twn.ds,,,4 

[OVT.USBDCam0519.Files]
ov519vid.sys,,,4 
ov519cmd.sys,,,4 
stream.sys,,,4  ;; add for win98(se)

[OVT.USBDCam0519.2000]
ov519vid.sys,,,4 
ov519cmd.sys,,,4 

[OVT.Setting.CopyFiles]
6630f519.set,,,4
7620519.set,,,4
7620e519.set,,,4
7640519.set,,,4
7648519.set,,,4
7635519.set,,,4
;logo640.bmp,,,4

[uninstall.files]
OV519.txt,,,4
CleanDev.exe,,,4
sel3110.exe,,,4

[SourceDisksNames]
1="USB VGA Camera Driver Disk",,,


[SourceDisksFiles]
ov519vid.sys=1
ov519cmd.sys=1
ov519twn.ds=1
ov519cap.exe=1
amcap.exe=1
vidcap32.exe=1
ov519dib.dll=1
ov519usd.dll=1
ov519ext.dll=1
ov519ext.ax=1
;omniuns.exe=1
6630f519.set=1
7620519.set=1
7620e519.set=1
7640519.set=1
7648519.set=1
7635519.set=1
;logo640.bmp=1

ov519.txt=1 ;@@
Cleandev.exe=1 ;@@
sel3110.exe=1


[Strings]

ProxyVCap.CLSID="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSCATEGORY_CAPTURE="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
SERVICE_KERNEL_DRIVER=1
SERVICE_DEMAND_START=3
SERVICE_ERROR_NORMAL=1

; IHV's extension DLL
OVT.ExtensionDLL = "ov519ext.dll"

SWMfg="D-Link Corporation" ;@@

HWMfg="D-Link Corporation" ;@@
USB\VID_054C&PID_0154.DeviceDesc="Eye Toy" ;@@
StillCaptured = "D-Link VGA Webcam Still Image Captured"
AutoLaunch = "D-Link VGA Webcam Launch Image Application"
;AutoClose = "D-Link VGA Webcam Close Application"
ov519sti = "D-Link VGA Webcam Still image capture A/P"
ov519cap = "D-Link VGA Webcam WDM Capture A/P"
CamSet="CameraSetting"
PropPage_CustomVideoProcAmp= "D-Link VGA Webcam VideoProcAmp Property Page"
PropPage_CustomCameraControl= "D-Link VGA Webcam CameraControl Property Page"
0519="OmniVision\Dual Mode USB Camera OV519"
UNS0519="Uninstall D-Link VGA Webcam"
WDMCAPTURE="D-Link VGA Webcam WDM Capture"
VFWCAPTURE="D-Link VGA Webcam VFW Capture"
Run="SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
TwainDsName="D-Link VGA Webcam"
Uninstall.String = "D-Link VGA Webcam" ;@@