Windows 95 provides the capability to connect MIDI filter drivers to the system using the device registry. MIDI filters are installed in SYSTEM.INI. This is similar to the way non-Plug and Play MIDI drivers are installed. Following is a sample INF file for installing a MIDI Filter. Note that the [FILTER] section defines MediaType=Software. This is necessary for proper installation of any software device. A reboot is always required for software-device installations. More that one MIDI filter can be installed. One next boot the MIDI Filters are installed in SYSTEM.INI as "MIDIFilter=x.drv", "MIDIFilter1=y.drv", "MIDIFilter2=z.drv", and so on.
[Version]
Signature="$CHICAGO$"
Class=MEDIA
[Manufacturer]
%MfgName%=Generic
[Generic]
%Filter.DeviceDesc%=FILTER
[FILTER]
AddReg=FILTER.AddReg
CopyFiles=FILTER.Copy
MediaType=Software
[FILTER.Copy]
msthru.drv
[FILTER.AddReg]
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\newdrivers\midi\msthru.drv,,,
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\newdrivers\midi\msthru.drv,Description,,%Filter.DeviceDesc%
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\newdrivers\midi\msthru.drv,Driver,,msthru.drv
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\newdrivers\midi\msthru.drv,Parameters,,
HKLM,SYSTEM\CurrentControlSet\Control\MediaResources\newdrivers\midi\msthru.drv,MIDIFilter,1,01