About UMDF filter (mtp/wpd)

Hi,
My target is to filter MTP device read and write operations. I found an example of WUDFOsrUsbFilter in the DDK. I removed the function driver and modified the INF according to some online resources, but after installation, it shows code 10. I do not know how to modify the INF to install correctly. At this stage, do I need to modify the code? Or should I just focus on the INF part to achieve correct installation.
Thanks for all.