; This INF file and the accompanying readme demonstrate how to programmatically install a class filter driver.
; See the comments inline below for items that need to be modified when using this sample. The accompanying 
; readme discusses using this INF file to install the class filter driver.
;
; Copyright Atheros


[Version]
signature = "$Windows NT$"
Provider  = %ProviderName%
Class                = BLUETOOTH
CLASSGUID            = {E0CBF06C-CD8B-4647-BB8A-263B43F0F974};
DriverVer=10/15/2010,6.22.1015.0302
DriverPackageType=ClassFilter
CatalogFile.NT       = btfilter.cat


; Distribution Media information
;
[SourceDisksNames]
1 = %btfilter.MediaDesc%


[SourceDisksFiles]
btfilter.sys = 1


[DestinationDirs]
;
; Driver to be installed in the drivers subdirectory.
;
DefaultDestDir = 12	; DIRID_DRIVERS
 


[DefaultInstall.NT]
;
; DefaultInstall section is used to install the class filter driver. Use .NT platform extension so this
; section won't be executed on Windows 9x/ME.
;
; Change clasfilt.sys to the name of the class filter driver you need to copy.
;
CopyFiles = @btfilter.sys
AddReg = btfilter_AddReg

[DefaultInstall.NTamd64]
;
; DefaultInstall section is used to install the class filter driver. Use .NT platform extension so this
; section won't be executed on Windows 9x/ME.
;
; Change clasfilt.sys to the name of the class filter driver you need to copy.
;
CopyFiles = @btfilter.sys
AddReg = btfilter_AddReg
 
[btfilter_AddReg]
;
; Change {setup-ClassGUID} to the string form of the ClassGUID that you are installing the filter on.
;
; Change UpperFilters to LowerFilters if this is a lower class filter.
;
; Attach to TOH's stack
;HKLM, System\CurrentControlSet\Control\Class\{7240100F-6512-4548-8418-9EBB5C6A1A94}, LowerFilters, 0x00010008, btfilter
; Attach to Microsoft's stack
HKLM, System\CurrentControlSet\Control\Class\{E0CBF06C-CD8B-4647-BB8A-263B43F0F974}, LowerFilters, 0x00010008, btfilter


[DefaultInstall.NT.Services]
;
; Services section is required for installation of drivers on NT-based operating systems.
;
AddService = btfilter, , btfilter_Service_Inst, btfilter_EventLog_Inst

[DefaultInstall.NTamd64.Services]
;
; Services section is required for installation of drivers on NT-based operating systems.
;
AddService = btfilter, , btfilter_Service_Inst, btfilter_EventLog_Inst

[btfilter_Service_Inst]
DisplayName    = %btfilter.SvcDesc%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_DEMAND_START%
ErrorControl   = %SERVICE_ERROR_IGNORE%
ServiceBinary  = %12%\btfilter.sys		;change clasfilt.sys to the name of your driver binary.
AddReg         = BtFilter.AddReg

[BtFilter.AddReg]
HKR,"Parameters","BinPath",0x00000,\DosDevices\%10%\System32\Drivers\AtherosBT.bin

[btfilter_EventLog_Inst]
AddReg = btfilter_EventLog_AddReg


[btfilter_EventLog_AddReg]
;Change clasfilt.sys to the name of your driver file.
HKR,,EventMessageFile, %REG_EXPAND_SZ%,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\btfilter.sys"
HKR,,TypesSupported, %REG_DWORD%, 7


[Strings]
;
; Change the service description to describe your driver.
;
btfilter.SvcDesc	= "Bluetooth LowerFilter Class Filter Driver"

; Change the media description to describe your media.
;
btfilter.MediaDesc 	= "Windows Vista CD"

ProviderName     = "TOSHIBA"
; Useful constants
SERVICE_KERNEL_DRIVER = 1
SERVICE_DEMAND_START  = 3
SERVICE_ERROR_IGNORE  = 0
REG_EXPAND_SZ         = 0x00020000
REG_DWORD             = 0x00010001
