; INF file for Genesys Logic Generic USB Filter Driver
;
; Copyright Genesys Logic 2012.

[Version]
Signature			= "$Windows NT$"
DriverPackageType	= ClassFilter
Provider			= "Genesys Logic"
DriverVer			= 08/06/2012,1.0.0.0
ClassGuid			= {4d36e97d-e325-11ce-bfc1-08002be10318}
Class				= System
CatalogFile			= glusbflt.cat

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


[SourceDisksFiles]
glusbflt.sys = 1


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


[Manufacturer]
%DISKNAME% = glusbflt,ntx86,ntamd64        
[glusbflt]
%DISKNAME% = DefaultInstall.NT, root\glusbflt
[glusbflt.ntx86]
%DISKNAME% = DefaultInstall.NT, root\glusbflt
[glusbflt.ntamd64]
%DISKNAME% = DefaultInstall.NT, root\glusbflt


[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 glusbflt.sys to the name of the class filter driver you need to copy.
;
CopyFiles = @glusbflt.sys
AddReg = ClassFilter_AddReg

[DefaultUninstall.NT] 
DelFiles = @glusbflt.sys
DelReg = ClassFilter_DelReg

 

[ClassFilter_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.
;
;HKLM, System\CurrentControlSet\Control\Class\{setup-ClassGUID}, UpperFilters, 0x00010008, glusbflt

;usb class
HKLM, System\CurrentControlSet\Control\Class\{36fc9e60-c465-11cf-8056-444553540000}, LowerFilters, 0x00010008, glusbflt

[ClassFilter_DelReg]

;usb class
HKLM, System\CurrentControlSet\Control\Class\{36fc9e60-c465-11cf-8056-444553540000}, LowerFilters, 0x00018002, glusbflt

[DefaultInstall.NT.Services]
;
; Services section is required for installation of drivers on NT-based operating systems.
;
AddService = glusbflt, , glusbflt_Service_Inst, glusbflt_EventLog_Inst

[DefaultUninstall.nt.Services]
DelService = glusbflt, 0x0200  

[glusbflt_Service_Inst]
DisplayName    = %glusbflt.SvcDesc%
ServiceType    = %SERVICE_KERNEL_DRIVER%
StartType      = %SERVICE_BOOT_START%
ErrorControl   = %SERVICE_ERROR_IGNORE%
ServiceBinary  = %12%\glusbflt.sys		;change glusbflt.sys to the name of your driver binary.


[glusbflt_EventLog_Inst]
AddReg = glusbflt_EventLog_AddReg


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



;co-installer for WDF
[DestinationDirs]
glusbflt_CoInstaller_CopyFiles = 11

[glusbflt.NT.CoInstallers]
AddReg          = glusbflt_CoInstaller_AddReg
CopyFiles       = glusbflt_CoInstaller_CopyFiles

[glusbflt_CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "WdfCoInstaller01009.dll,WdfCoInstaller"	; DDK Version 7600

[glusbflt_CoInstaller_CopyFiles]
WdfCoInstaller01009.dll

[SourceDisksFiles]
WdfCoInstaller01009.dll=1 ; make sure the number matches with SourceDisksNames

[glusbflt.NT.Wdf]
KmdfService              = glusbflt, Filter_wdfsect

[Filter_wdfsect]
KmdfLibraryVersion       = 1.9	; DDK Version 7600





[Strings]
;
; Change the service description to describe your driver.
;
glusbflt.SvcDesc	= "Genesys Logic Beep Filter"

; Change the media description to describe your media.
;
glusbflt.MediaDesc 	= "Genesys Logic Beep Filter Disc"

; disk name
DISKNAME            = "Genesys Logic Beep Filter Disc"

; Useful constants
SERVICE_KERNEL_DRIVER = 1
SERVICE_DEMAND_START  = 3
SERVICE_BOOT_START    = 0
SERVICE_ERROR_IGNORE  = 0
REG_EXPAND_SZ         = 0x00020000
REG_DWORD             = 0x00010001


