; Kb9xRadioBtn.INF
;
; Copyright (c) 2012, ENE TECHNOLOGY INC.

[Version]
Signature="$WINDOWS NT$"
Class=HIDClass
ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Provider=%ENE%
DriverVer=02/08/2013,1.1.0.0
CatalogFile=Kb9xRadioBtn.cat

; ================= Device section =====================

[Manufacturer]
%ENE%=ENE, NTamd64.6.2

; For Win8 and later so we can use inbox HID-UMDF mapper
[ENE.NTamd64.6.2]
%DeviceDesc%=Kb9xRadioBtn.win8, ACPI\KB9XRADIOBTN
%DeviceDesc%=Kb9xRadioBtn.win8, ACPI\ENE0110

;===============================================================
;   for win8 and newer (uses inbox HID-UMDF mapper)
;===============================================================
[Kb9xRadioBtn.win8.NT]
CopyFiles=UMDriverCopy

[Kb9xRadioBtn.win8.NT.hw]
AddReg=Kb9xRadioBtn_AddReg

[Kb9xRadioBtn.win8.NT.CoInstallers]
CopyFiles=CoInstallerCopyFiles
AddReg=CoInstaller_AddReg

[Kb9xRadioBtn.win8.NT.Services]
AddService=WUDFRd,0x000001f8,WUDFRD_ServiceInstall  
AddService=mshidumdf, 0x000001fa, mshidumdf.AddService ;flag 0x2 sets this as the service for the device

[mshidumdf.AddService]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\mshidumdf.sys

[Kb9xRadioBtn.win8.NT.Wdf]
UmdfService="Kb9xRadioBtn", Kb9xRadioBtn_Install
UmdfServiceOrder=Kb9xRadioBtn
UmdfKernelModeClientPolicy=AllowKernelModeClients
UmdfFileObjectPolicy=AllowNullAndUnknownFileObjects
UmdfMethodNeitherAction=Copy
UmdfDirectHardwareAccess=AllowDirectHardwareAccess

; ================= common section =====================

[Kb9xRadioBtn_AddReg]
HKR,,"LowerFilters",0x00010008,"WUDFRd" ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND
;HKR,Kb9xRadioBtn,IdxIoRegBase,0x00010001,0xFA00 ; manually add this for test purpose
HKR,Kb9xRadioBtn,VendorControl,0x00010001,0      ; manually set 1 for test purpose

[WUDFRD_ServiceInstall]
DisplayName = "Windows Driver Foundation - User-mode Driver Framework Reflector"
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WUDFRd.sys
LoadOrderGroup = Base

[Kb9xRadioBtn_Install]
UmdfLibraryVersion=1.11.0
DriverCLSID = "{1d74e935-c873-454f-ab3f-55a930cf6762}"
ServiceBinary = %12%\UMDF\Kb9xRadioBtn.dll

; ================= copy files =====================

[UMDriverCopy]
Kb9xRadioBtn.dll

[CoInstallerCopyFiles]
; Use inbox one

[SourceDisksNames]
1=%Disk_Description%,,,

[SourceDisksFiles]
Kb9xRadioBtn.dll=1

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

; ================= WDF Coinstaller installation =====================

[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000,"WUDFCoInstaller.dll"

;---------------------------------------------------------------;

[Strings]
ENE="ENE TECHNOLOGY INC."
Disk_Description="Kb9xRadioBtn Driver Installation Disk"
DeviceDesc="Radio Switch Device"

