3

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
  • I removed this error by removing that part of the INF file, specifically: First line: `[ClassInstall32]` Second Line: `AddReg = ClassInstall_AddReg` – kayleeFrye_onDeck Jul 19 '17 at 00:55

1 Answers1

2

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.

tchau.dev
  • 903
  • 1
  • 11
  • 30
  • 2
    Sadly, that last link is now gone, and archive.org doesn't have a backup. Too bad; it looked really promising. This looks like another copy: http://azius.com/blog/inf-files-bear/ – Edward Falk Oct 30 '16 at 21:26