Class Filter driver can be installed by "right click"->Insall, this will call InstallDevice*** API directly. The problem is this way .cat is not imported to system, consequently, driver signature verification failure may cause the driver cannot work on Windows x64. (x64 Windows enforces driver signature to load the driver.)
solution:
1. preinstall the driver before install:
pnputil -a xxx.inf.
WDK has a sample Addfilter to demonstrate how to insert a filter driver into the driver stack of a device. The sample illustrates how to insert such a filter driver by using the SetupDi APIs