;/*++
;
;Copyright (c) 1990-1999 Microsoft Corporation All rights Reserved
;
;Module Name:
;
;    TsUsbGD.INF
;
;Abstract:
;    INF file for installing Remote Desktop Generic USB Driver
;
;
;--*/
[Version]
Signature="$WINDOWS NT$"
Class=System
ClassGuid={4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider=%MSFT%
DriverVer = 06/21/2006,10.0.22621.1
PnpLockdown=1
;CatalogFile=delta.CAT

[DestinationDirs]
Drivers_Dir = 12
Generic_CopyFiles = 11

[SourceDisksNames]
1 = %DiskId1%,,,""

[SourceDisksFiles]
TsUsbGD.sys  = 1,,
TsUsbGDCoInstaller.dll   = 1,,

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

[Manufacturer]
%StdMfg%=Standard,NTamd64
                     
[Standard.NTamd64]
; Generic USB redirection
%TsUsbGD.DeviceDesc.Generic%=TsUsbGD_Device, USB\d8f87d9c-4ee4-4a61-92d1-3caa420a227b

[TsUsbGD_Device.NT]
CopyFiles=Drivers_Dir, Generic_CopyFiles

[TsUsbGD_Device.NT.HW]
AddReg=TsUsbGD_Device.NT.AddReg

[TsUsbGD_Device.NT.AddReg]                            
HKR,,DeviceCharacteristics,0x10001,0x0100                     ; Use same security checks on relative opens
HKR,,Security,,"D:P(A;;GA;;;BA)(A;;GA;;;SY)(A;;GA;;;BU)"      ; Allow generic-all access to Built-in administrators, Local system, and Users
HKR,,"TSRedirFlags",0x10001,0x0

[Drivers_Dir]
TsUsbGD.sys,,,0x100

[Generic_CopyFiles]
TsUsbGDCoInstaller.dll

;-------------- Service installation
[TsUsbGD_Device.NT.Services]
AddService = TsUsbGD,0x00000002,tsusbgd_Service_Inst

; -------------- tsusbhub driver install sections
[tsusbgd_Service_Inst]
DisplayName    = %TsUsbGD.DeviceDesc.Generic%
ServiceType    = 1               ; SERVICE_KERNEL_DRIVER
StartType      = 3               ; SERVICE_DEMAND_START 
ErrorControl   = 1               ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\TsUsbGD.sys
LoadOrderGroup = Extended Base

;
;--- Coinstaller installation ------
;
[TsUsbGD_Device.NT.CoInstallers]
AddReg=CoInstaller_AddReg

[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,\
    "TsUsbGDCoInstaller.dll,TsUsbGDCoInstaller"

[TsUsbGD_Device.NT.Wdf]
KmdfService = TsUsbGD, tsusbhub_wdfsect

[tsusbhub_wdfsect]
KmdfLibraryVersion = 1.11

[Strings]
;Localizable
StdMfg="(Standard system devices)"
DiskId1="Remote Desktop USB Generic Driver Installation Disk #1"
TsUsbGD.DeviceDesc.Generic = "Remote Desktop Generic USB Device"
;Non-Localizable
MSFT="Microsoft"
