Problem: UMDF filter driver cannot be loaded
Purpose: turn MTP devices to readonly mode when they attached to computer
Method: make an UMDF filter driver for MTP devices
Compile environment: Windows 10 Pro 16299 + Visual Studio 2012 + SDK8.0 + WDK8.0
Test environment: Windows 7 Home SP1 7601
Steps:
- Open UMDF sample code (Sample UMDF Filter Driver above UMDF Function Driver for OSR USB-FX2 in WDK 8.0 Samples)
- Remove WUDFOsrUsbFx2 project
- Modify .inf file (inf file content will be posted at the end of this thread)
- Select project configuration (Win7 Release + x64)
- Build solution
- Sign file WudfOsrUsbFilter.dll and wudf.cat
- Copy package folder to test environment
package folder file list: WdfCoinstaller01011.dll, winusbcoinstaller.dll, winusbcoinstaller2.dll, wudf.cat, WudfOsrUsbFilter.dll, WUDFOsrUsbFilterOnUmFx2Driver.Inf, WudfUpdate_01011.dll - Install service by using dpinst.exe
- Plug in Android cellphone
- Check driver list in ‘Device Manager’ → ‘Portable Devices’ → ‘V30+’ → ‘Driver Details’
But I did find driver ‘WudfOsrUsbFilter.dll’ in that list.
What’s wrong with my operations? or what goes wrong with my .inf configuration?
I will be very appreciated if anyone could give me some suggestions. Thanks in advance.
setupapi.dev.log and .inf will be posted later.
Because the content size limitation, I also uploaded files to Google Drive.
setupapi.dev.log:
https://drive.google.com/file/d/1F0u8znlL9y2R1xR2y-H2o_IKiJ8z4Pp-/view?usp=sharing
WUDFOsrUsbFilterOnUmFx2Driver.Inf:
https://drive.google.com/file/d/10tn7QIdSVytoiT2dutm9rtOCN6F0ysx0/view?usp=sharing