;
; RDCameraDriver.inf
;

[Version]
Signature="$Windows NT$"
Class=RDCamera
ClassGuid={B2728D24-AC56-42DB-9E02-8EDAF5DB652F}
Provider=%ManufacturerName%
DriverVer = 06/21/2006,10.0.20348.4405
PnpLockdown=1

[DestinationDirs]
UMDriverCopy=12,UMDF ; copy to drivers\umdf
CustomCaptureSourceCopy=11

; ================= Class section =====================

[ClassInstall32]
Addreg=RDCameraClassReg

[RDCameraClassReg]
HKR,,,,%ClassName%
HKR,,IconPath,%REG_MULTI_SZ%,"%%SystemRoot%%\system32\ddores.dll,-2555"

[SourceDisksNames]
1 = %DiskName%

[SourceDisksFiles]
RDCameraDriver.dll = 1
RDCameraMediaSource.dll = 1

;*****************************************
; Install Section
;*****************************************

[Manufacturer]
%ManufacturerName%=Standard,NTamd64

[Standard.NTamd64]
%RDCameraDriver.DeviceDesc%=RDCameraDriver_Device, RDCAMERA_BUS\RDCAMERA

[RDCameraDriver_Device.NT]
CopyFiles=UMDriverCopy,CustomCaptureSourceCopy
AddReg=CustomCaptureSource.ComRegistration

[RDCameraDriver_Device.NT.Interfaces]
AddInterface=%KSCATEGORY_VIDEO_CAMERA%,%CustomCaptureSource.ReferenceString%,CustomCaptureSourceInterface
AddInterface=%KSCATEGORY_VIDEO%,%CustomCaptureSource.ReferenceString%,CustomCaptureSourceInterface
AddInterface=%KSCATEGORY_CAPTURE%,%CustomCaptureSource.ReferenceString%,CustomCaptureSourceInterface

[UMDriverCopy]
RDCameraDriver.dll

;-------------- Service installation
[RDCameraDriver_Device.NT.Services]
AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall

[RDCameraDriver_Device.NT.Hw]

;
;--- RDCameraDriver_Device Coinstaller installation ------
;

[RDCameraDriver_Device.NT.CoInstallers]
AddReg=CoInstallers_AddReg

[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WUDFCoinstaller.dll"

[RDCameraDriver_Device.NT.Wdf]
UmdfService=RDCameraDriver,RDCameraDriver_Install
UmdfServiceOrder=RDCameraDriver

[RDCameraDriver_Install]
UmdfLibraryVersion=2.15.0 
ServiceBinary=%12%\UMDF\RDCameraDriver.dll

[WUDFRD_ServiceInstall]
DisplayName = %WudfRdDisplayName%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WUDFRd.sys

;
;--- RDCameraMediaSource installation ------
;

[CustomCaptureSourceInterface]
AddReg=CustomCaptureSourceInterface.AddReg

[CustomCaptureSourceCopy]
RDCameraMediaSource.dll,,,0x00004000  ; COPYFLG_IN_USE_RENAME

[CustomCaptureSource.ComRegistration]
HKCR,CLSID\%CustomCaptureSource.CLSID%,,,%CustomCaptureSource.Desc%
HKCR,CLSID\%CustomCaptureSource.CLSID%\InprocServer32,,%REG_EXPAND_SZ%,%CustomCaptureSource.Location%
HKCR,CLSID\%CustomCaptureSource.CLSID%\InprocServer32,ThreadingModel,,Both

[CustomCaptureSourceInterface.AddReg]
HKR,,CLSID,,%ProxyVCap.CLSID%
HKR,,CustomCaptureSourceClsid,,%CustomCaptureSource.CLSID%
HKR,,FriendlyName,,%CustomCaptureSource.Desc%

;
;--- Generic ------
;

[Strings]
;Localizable
ClassName = "Remote Desktop Camera devices"
DiskName = "Remote Desktop Camera driver"
RDCameraDriver.DeviceDesc = "Remote Desktop Camera"
WudfRdDisplayName="Windows Driver Foundation - User-mode Driver Framework Reflector"
;Non-Localizable
SPSVCINST_ASSOCSERVICE= 0x00000002
ManufacturerName="Microsoft"
KSCATEGORY_VIDEO_CAMERA="{E5323777-F976-4f5b-9B55-B94699C46E44}"
KSCATEGORY_CAPTURE="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_VIDEO="{6994AD05-93EF-11D0-A3CC-00A0C9223196}"
ProxyVCap.CLSID="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
CustomCaptureSource.Desc="Remote Desktop Camera Custom Capture Source"
CustomCaptureSource.ReferenceString="RDCameraSource"
CustomCaptureSource.CLSID="{889FF934-6161-4250-BDEF-9D93D62CA1AC}"
CustomCaptureSource.Location="%SystemRoot%\System32\RDCameraMediaSource.dll"
REG_MULTI_SZ=0x00010000
REG_EXPAND_SZ=0x00020000
