Search code examples
c++driverswdmkmdfumdf

UMDF, cannot specify [ClassInstall32] section for Microsoft-defined class


I'm working with the next tutorial: How to write your first USB client driver.

And I've got a problem with compiling a project, I've got the next error:

enter image description here

I was trying to do the steps closely to the description in tutorial, but always got the error above, when compiling the project.

Also, I've tried to search, but didn't find any useful information.

Possible additional info, which might help you to give me a piece of advice:

  • INF-file: http://pastebin.com/71d6bbQm
  • Using Windows 10, latest WDK and VS2015
  • Have started exactly USB User-Mode Driver template as was mentioned in tutorial

Solution

  • Basically, the error is saying you're trying to create a class that already exist, which is the USBDevice class. Since you're trying to create a new USB client driver, you can go ahead and delete the Class definition section.

    However, if you are trying to create a new class, then make sure that the class name and GUID don't already exist in this list: System-Defined Device Setup Classes Available to Vendors.

    If you want to learn more about INF files, check out this article: INF Files for Bears of Little Brain.