;/*++
;
;Copyright (c) 2018 by Microsoft.  All Rights Reserved.
;
;Module Name:
;
;    rdpidd.inf
;
;Abstract:
;
;    INF file for installing the Rdp Indirect Display Driver
;
;--*/

[Version]
Signature = "$Windows NT$"
ClassGUID = {4D36E968-E325-11CE-BFC1-08002BE10318}
Class = Display
ClassVer = 2.0
Provider = %ManufacturerName%
DriverVer = 06/21/2006,10.0.22621.3672
PnpLockdown = 1

[ControlFlags]
PreConfigureDriver = *

[Manufacturer]
%ManufacturerName% = Standard,NTamd64

[Standard.NTamd64]
%RdpIdd.DeviceDesc% = RdpIdd_Install, RdpIdd_IndirectDisplay

[SourceDisksFiles]
RdpIdd.dll = 1

[SourceDisksNames]
1 = %DiskName%

; =================== Per device settings =====================================

; RdpIdd

[RdpIdd_Install.NT]
CopyFiles = UMDriverCopy
AddReg = RdpIdd_AutoLogger.AddReg,RdpAvenc_AutoLogger.AddReg,IddCx_AutoLogger.AddReg

[RdpIdd_Install.NT.hw]
AddReg = RdpIdd_HardwareDeviceSettings

[RdpIdd_Install.NT.Services]
AddService = WUDFRd,0x000001fa,WUDFRd_ServiceInstall

[RdpIdd_Install.NT.Wdf]
UmdfService = RdpIdd,RdpIdd_Install
UmdfServiceOrder = RdpIdd
UmdfKernelModeClientPolicy = AllowKernelModeClients
UmdfHostProcessSharing = ProcessSharingDisabled
UmdfImpersonationLevel = Identification
UmdfDumpMode = HeapDump

[RdpIdd_Install]
UmdfLibraryVersion = 2.15.0
ServiceBinary = %12%\UMDF\RdpIdd.dll
UmdfExtensions = IddCx0102
AddReg=RdpIdd_Install.AddReg

[UMDriverCopy]
RdpIdd.dll,,,0x100

[RdpIdd_HardwareDeviceSettings]
HKR,, "UpperFilters",  %REG_MULTI_SZ%, "IndirectKmd"
HKR,, Security, , "D:P(A;;GA;;;WD)"    ; All access

[RdpIdd_Install.AddReg]
HKR, "Parameters", "WppRecorder_UseTimeStamp",     %REG_DWORD%, 1
HKR, "Parameters", "WppRecorder_PreciseTimeStamp", %REG_DWORD%, 1
HKR, "Parameters", "LogPages", %REG_DWORD%, 2
HKR, "WUDF", "DeviceGroupId", %REG_SZ%, "RdpIddGroup"

[RdpIdd_AutoLogger.AddReg]
HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\Microsoft-Windows-Rdp-Graphics-RdpIdd-Trace,BufferSize,%REG_DWORD%,0x00000040
HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\Microsoft-Windows-Rdp-Graphics-RdpIdd-Trace,GUID,%REG_SZ%,"{95bd72d9-cb91-4daa-9bc6-d3e97fbecb57}"
HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\Microsoft-Windows-Rdp-Graphics-RdpIdd-Trace,Start,%REG_DWORD%,0x00000001
HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\Microsoft-Windows-Rdp-Graphics-RdpIdd-Trace,MaximumBuffers,%REG_DWORD%,0x00000040
HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\Microsoft-Windows-Rdp-Graphics-RdpIdd-Trace,LogFileMode,%REG_DWORD%,0x80000002
HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\Microsoft-Windows-Rdp-Graphics-RdpIdd-Trace\{7b7a87d4-6d7c-4c87-8e3d-29f31bff02b8},EnableLevel,%REG_DWORD%,0x00000004
HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\Microsoft-Windows-Rdp-Graphics-RdpIdd-Trace\{7b7a87d4-6d7c-4c87-8e3d-29f31bff02b8},MatchAnyKeyword,%REG_QWORD%,0xff,0xff,0x00,0x00,0x00,0x40,0x00,0x00
HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\Microsoft-Windows-Rdp-Graphics-RdpIdd-Trace\{7b7a87d4-6d7c-4c87-8e3d-29f31bff02b8},Enabled,%REG_DWORD%,0x00000001

[RdpAvenc_AutoLogger.AddReg]
HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\Microsoft-Windows-Rdp-Graphics-RdpIdd-Trace\{16e72985-266a-490e-8523-fb5ff5da188e},EnableLevel,%REG_DWORD%,0x00000004
HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\Microsoft-Windows-Rdp-Graphics-RdpIdd-Trace\{16e72985-266a-490e-8523-fb5ff5da188e},MatchAnyKeyword,%REG_QWORD%,0xff,0xff,0x00,0x00,0x00,0x40,0x00,0x00
HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\Microsoft-Windows-Rdp-Graphics-RdpIdd-Trace\{16e72985-266a-490e-8523-fb5ff5da188e},Enabled,%REG_DWORD%,0x00000001

[IddCx_AutoLogger.AddReg]
HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\Microsoft-Windows-Rdp-Graphics-RdpIdd-Trace\{D92BCB52-FA78-406F-A9A5-2037509FADEA},EnableLevel,%REG_DWORD%,0x00000004
HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\Microsoft-Windows-Rdp-Graphics-RdpIdd-Trace\{D92BCB52-FA78-406F-A9A5-2037509FADEA},MatchAnyKeyword,%REG_QWORD%,0xf4,0x04,0x00,0x00,0x00,0x40,0x00,0x00
HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\Microsoft-Windows-Rdp-Graphics-RdpIdd-Trace\{D92BCB52-FA78-406F-A9A5-2037509FADEA},Enabled,%REG_DWORD%,0x00000001

; =================== Common device settings ==================================

[WUDFRd_ServiceInstall]
DisplayName = %WUDFRdDisplayName%
ServiceType = 1
StartType = %SERVICE_DEMAND_START%
ErrorControl = 1
ServiceBinary = %12%\WUDFRd.sys
StartName = \Driver\WudfRd

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

; =================== Generic =================================================

[Strings]
; non localizable
SERVICE_DEMAND_START  = 0x3
SERVICE_KERNEL_DRIVER = 0x1
SERVICE_ERROR_NORMAL  = 0x1

REG_MULTI_SZ  = 0x00010000
REG_SZ        = 0x00000000
REG_EXPAND_SZ = 0x00020000
REG_DWORD     = 0x00010001
REG_QWORD     = 0x000B0001

; localizable
ManufacturerName = "Microsoft"
RdpIdd.DeviceDesc = "Microsoft Remote Display Adapter"
DiskName = "RdpIdd Installation Disk"
WUDFRdDisplayName = "Windows Driver Frameworks - User-mode Driver Framework Reflector"
