1. New a project that based on "Template" -> "Visual C++" -> " Windows Driver" -> "Applications", and select "Empty DLL for Drivers"
2. Select Project->Property Pages, you may see Mof Compiler existing there.
3. After insert .mof file, VS will auto select Mofcomp as the build option.