Driver Problems? Questions? Issues?
Put OSR's experience to work for you! Contact us for assistance with:
  • Creating the right design for your requirements
  • Reviewing your existing driver code
  • Analyzing driver reliability/performance issues
  • Custom training mixed with consulting and focused directly on your specific areas of interest/concern.
Check us out. OSR, the Windows driver experts.

OSR Seminars


Go Back   OSR Online Lists > ntdev
Welcome, Guest
You must login to post to this list
  Message 1 of 8  
03 Jan 18 15:52
Eric Wittmayer
xxxxxx@yahoo.com
Join Date: 13 Apr 2017
Posts To This List: 10
USBDevice class not present in Win7 32?

I have a driver that uses the USBDevice Class, which is listed by MSFT as a System-Defined device setup class available to vendors (https://docs.microsoft.com/en-us/windows-hardware/drivers/install/system-defined -device-setup-classes-available-to-vendors) Per universal driver rules, I removed the [ClassInstall32] section of my INF and now in Win 7 32 i'm getting the following error during install: ndv: Class {88bae032-5a81-49f0-bc3d-a4ff138216d6} does not exist. dvi: {Installing Class} inf: Opened PNF: 'D:\windows\System32\DriverStore\FileRepository\fl6kdev.inf_x86_neutral_7dab5a750 504797e\fl6kdev.inf' ([strings]) dvi: Installing device class: 'USBDevice' {88BAE032-5A81-49f0-BC3D-A4FF138216D6}. !!! dvi: Could not locate section [ClassInstall32]. !!! dvi: Class: {88BAE032-5A81-49f0-BC3D-A4FF138216D6}. Install failed. !!! dvi: Error 0xe0000101: The required section was not found in the INF. dvi: {Installing Class exit(0xe0000101)} If i have to use a separate inf file for Win 7 that includes the [ClassInstall32] section to install this class I can live with that but is there a way to get StampINF to only issue a warning for having a [ClassInstall32] section? I would really prefer not to have to build the Win 7 version of the driver with an older version of the WDK. Any suggestions or thoughts on the best way to handle this with the minimum duplication. Thanks, Eric
  Message 2 of 8  
03 Jan 18 17:35
Doron Holan
xxxxxx@microsoft.com
Join Date: 08 Sep 2005
Posts To This List: 10217
USBDevice class not present in Win7 32?

Do you mean infverif, not stampinf ? Don't pass the /D flag on the command line and the win7 version will pass. Bent from my phone ________________________________ From: xxxxx@lists.osr.com <xxxxx@lists.osr.com> on behalf of xxxxx@yahoo.com <xxxxx@lists.osr.com> Sent: Wednesday, January 3, 2018 12:51:47 PM To: Windows System Software Devs Interest List Subject: [ntdev] USBDevice class not present in Win7 32? I have a driver that uses the USBDevice Class, which is listed by MSFT as a System-Defined device setup class available to vendors (https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft. com%2Fen-us%2Fwindows-hardware%2Fdrivers%2Finstall%2Fsystem-defined-device-setup- classes-available-to-vendors&data=02%7C01%7CDoron.Holan%40microsoft.com%7C7a0f11d 6718240056e6708d552ebc540%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C6365060951 90099432&sdata=a3fq637ioj7bNdZKI6BIEJsmSxRmEY5nHDtxCYIHRDM%3D&reserved=0) Per universal driver rules, I removed the [ClassInstall32] section of my INF and now in Win 7 32 i'm getting the following error during install: ndv: Class {88bae032-5a81-49f0-bc3d-a4ff138216d6} does not exist. dvi: {Installing Class} inf: Opened PNF: 'D:\windows\System32\DriverStore\FileRepository\fl6kdev.inf_x86_neutral_7dab5a750 504797e\fl6kdev.inf' ([strings]) dvi: Installing device class: 'USBDevice' {88BAE032-5A81-49f0-BC3D-A4FF138216D6}. !!! dvi: Could not locate section [ClassInstall32]. !!! dvi: Class: {88BAE032-5A81-49f0-BC3D-A4FF138216D6}. Install failed. !!! dvi: Error 0xe0000101: The required section was not found in the INF. dvi: {Installing Class exit(0xe0000101)} If i have to use a separate inf file for Win 7 that includes the [ClassInstall32] section to install this class I can live with that but is there a way to get StampINF to only issue a warning for having a [ClassInstall32] section? I would really prefer not to have to build the Win 7 version of the driver with an older version of the WDK. Any suggestions or thoughts on the best way to handle this with the minimum duplication. Thanks, Eric --- NTDEV is sponsored by OSR Visit the list online at: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.co m%2Fshowlists.cfm%3Flist%3Dntdev&data=02%7C01%7CDoron.Holan%40microsoft.com%7C7a0 f11d6718240056e6708d552ebc540%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636506 095190099432&sdata=i4o1Ps3c4a2lsPQlmAx86hIsVWeC5gBexwDuFDVn6s0%3D&reserved=0> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers! Details at <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fse minars&data=02%7C01%7CDoron.Holan%40microsoft.com%7C7a0f11d6718240056e6708d552ebc 540%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636506095190099432&sdata=FTy%2Fi IBDXCRBnN6P2%2FCTS9xeEG6Zp7PyBMoHo5Gc0W8%3D&reserved=0> To unsubscribe, visit the List Server section of OSR Online at <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.co m%2Fpage.cfm%3Fname%3DListServer&data=02%7C01%7CDoron.Holan%40microsoft.com%7C7a0 f11d6718240056e6708d552ebc540%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636506 095190099432&sdata=zsRDUIRFJ0YZ%2Br5Gz0jNcm%2Fh0%2BXXe76LVrDuk1a9pzI%3D&reserved= 0> --
  Message 3 of 8  
03 Jan 18 19:35
Zac Lockard
xxxxxx@microsoft.com
Join Date: 25 May 2017
Posts To This List: 23
USBDevice class not present in Win7 32?

I'm guessing you meant the InfVerif WDK test fails because of this. Unfortunately the USBDevice class has a fairly hard fork in INF usage between Win10 and Win7, where Win10 sees this as an MS-defined class and Win7 doesn't. Your solution of only having ClassInstall32 for Win7 sounds good to me. It's been a while since I've set it up, but if the WDK still allows you to not select Win10 as a targeted OS (anything pre-Win10 should be fine), InfVerif will not run and you should be fine. I think you'll have to do two WDK runs, though. From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@microsoft.com Sent: Wednesday, January 3, 2018 2:35 PM To: Windows System Software Devs Interest List <xxxxx@lists.osr.com> Subject: Re: [ntdev] USBDevice class not present in Win7 32? Do you mean infverif, not stampinf ? Don't pass the /D flag on the command line and the win7 version will pass. Bent from my phone ________________________________ From: xxxxx@lists.osr.com<mailto:xxxxx@lists.osr.com> <xxxxx@lists.osr.com<mailto:xxxxx@lists.osr.com>> on behalf of xxxxx@yahoo.com<mailto:xxxxx@yahoo.com> <xxxxx@lists.osr.com<mailto:xxxxx@lists.osr.com>> Sent: Wednesday, January 3, 2018 12:51:47 PM To: Windows System Software Devs Interest List Subject: [ntdev] USBDevice class not present in Win7 32? I have a driver that uses the USBDevice Class, which is listed by MSFT as a System-Defined device setup class available to vendors (https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft. com%2Fen-us%2Fwindows-hardware%2Fdrivers%2Finstall%2Fsystem-defined-device-setup- classes-available-to-vendors&data=02%7C01%7CDoron.Holan%40microsoft.com%7C7a0f11d 6718240056e6708d552ebc540%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C6365060951 90099432&sdata=a3fq637ioj7bNdZKI6BIEJsmSxRmEY5nHDtxCYIHRDM%3D&reserved=0) Per universal driver rules, I removed the [ClassInstall32] section of my INF and now in Win 7 32 i'm getting the following error during install: ndv: Class {88bae032-5a81-49f0-bc3d-a4ff138216d6} does not exist. dvi: {Installing Class} inf: Opened PNF: 'D:\windows\System32\DriverStore\FileRepository\fl6kdev.inf_x86_neutral_7dab5a750 504797e\fl6kdev.inf' ([strings]) dvi: Installing device class: 'USBDevice' {88BAE032-5A81-49f0-BC3D-A4FF138216D6}. !!! dvi: Could not locate section [ClassInstall32]. !!! dvi: Class: {88BAE032-5A81-49f0-BC3D-A4FF138216D6}. Install failed. !!! dvi: Error 0xe0000101: The required section was not found in the INF. dvi: {Installing Class exit(0xe0000101)} If i have to use a separate inf file for Win 7 that includes the [ClassInstall32] section to install this class I can live with that but is there a way to get StampINF to only issue a warning for having a [ClassInstall32] section? I would really prefer not to have to build the Win 7 version of the driver with an older version of the WDK. Any suggestions or thoughts on the best way to handle this with the minimum duplication. Thanks, Eric --- NTDEV is sponsored by OSR Visit the list online at: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.co m%2Fshowlists.cfm%3Flist%3Dntdev&data=02%7C01%7CDoron.Holan%40microsoft.com%7C7a0 f11d6718240056e6708d552ebc540%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636506 095190099432&sdata=i4o1Ps3c4a2lsPQlmAx86hIsVWeC5gBexwDuFDVn6s0%3D&reserved=0> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers! Details at <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fse minars&data=02%7C01%7CDoron.Holan%40microsoft.com%7C7a0f11d6718240056e6708d552ebc 540%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636506095190099432&sdata=FTy%2Fi IBDXCRBnN6P2%2FCTS9xeEG6Zp7PyBMoHo5Gc0W8%3D&reserved=0> To unsubscribe, visit the List Server section of OSR Online at <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.co m%2Fpage.cfm%3Fname%3DListServer&data=02%7C01%7CDoron.Holan%40microsoft.com%7C7a0 f11d6718240056e6708d552ebc540%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636506 095190099432&sdata=zsRDUIRFJ0YZ%2Br5Gz0jNcm%2Fh0%2BXXe76LVrDuk1a9pzI%3D&reserved= 0> --- NTDEV is sponsored by OSR Visit the list online at: <http://www.osronline.com/showlists.cfm?list=ntdev> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers! Details at <http://www.osr.com/seminars> To unsubscribe, visit the List Server section of OSR Online at <http://www.osronline.com/page.cfm?name=ListServer> --
  Message 4 of 8  
04 Jan 18 03:03
Eric Wittmayer
xxxxxx@yahoo.com
Join Date: 13 Apr 2017
Posts To This List: 10
USBDevice class not present in Win7 32?

Hi Doron, That sounds like what i'm looking for but doesn't seem to work even on the command line: C:\src\eHost_xHCI\ref_trunk\FL6KDev\Release\x86>infverif /D FL6KDev.inf ERROR(1285) in C:\src\eHost_xHCI\ref_trunk\FL6KDev\Release\x86\FL6KDev.inf, line 13: Cannot specify [ClassInstall32] section for Microsoft-defined class. I'm using infverif from WDK for 1703. Also, I would like to pass the option when building from both VS and on the command line with MSBuild. I added the following property which i can see from logs is being picked up but it doesn't resolve the error either. Since the command line also fails, I can't tell, is this the correct way to pass the /D on to InfVerif? <InfVerif_AdditionalOptions>"/v /D "</InfVerif_AdditionalOptions> What did I miss? Thanks, Eric
  Message 5 of 8  
04 Jan 18 10:07
Doron Holan
xxxxxx@microsoft.com
Join Date: 08 Sep 2005
Posts To This List: 10217
USBDevice class not present in Win7 32?

You don't want /D on the command line. /D is what is flagging the class install 32 section. As Zac said, you should have two VS driver package projects, one for each of the INFs. The WIN7 inf should have win7 as the OS target in the project settings (which will prevent /D from being added to the command line), the win10 INF should have win10 as the target os in the project settings. Bent from my phone ________________________________ From: xxxxx@lists.osr.com <xxxxx@lists.osr.com> on behalf of xxxxx@yahoo.com <xxxxx@lists.osr.com> Sent: Thursday, January 4, 2018 12:02:50 AM To: Windows System Software Devs Interest List Subject: RE:[ntdev] USBDevice class not present in Win7 32? Hi Doron, That sounds like what i'm looking for but doesn't seem to work even on the command line: C:\src\eHost_xHCI\ref_trunk\FL6KDev\Release\x86>infverif /D FL6KDev.inf ERROR(1285) in C:\src\eHost_xHCI\ref_trunk\FL6KDev\Release\x86\FL6KDev.inf, line 13: Cannot specify [ClassInstall32] section for Microsoft-defined class. I'm using infverif from WDK for 1703. Also, I would like to pass the option when building from both VS and on the command line with MSBuild. I added the following property which i can see from logs is being picked up but it doesn't resolve the error either. Since the command line also fails, I can't tell, is this the correct way to pass the /D on to InfVerif? <InfVerif_AdditionalOptions>"/v /D "</InfVerif_AdditionalOptions> What did I miss? Thanks, Eric --- NTDEV is sponsored by OSR Visit the list online at: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.co m%2Fshowlists.cfm%3Flist%3Dntdev&data=02%7C01%7CDoron.Holan%40microsoft.com%7Cad4 d6fe03667455d11c008d553498b7a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636506 497958717467&sdata=fjHjOYql8NccPlL0%2FUmQkDe94QRvq15gpSWVtqJNr98%3D&reserved=0> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers! Details at <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fse minars&data=02%7C01%7CDoron.Holan%40microsoft.com%7Cad4d6fe03667455d11c008d553498 b7a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636506497958717467&sdata=RH6HUiA IrsP7Lk0dKWNz9in5iN%2FRhXvCf1%2BkTb%2B%2BZ5A%3D&reserved=0> To unsubscribe, visit the List Server section of OSR Online at <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.co m%2Fpage.cfm%3Fname%3DListServer&data=02%7C01%7CDoron.Holan%40microsoft.com%7Cad4 d6fe03667455d11c008d553498b7a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636506 497958717467&sdata=kfrUZn7Q%2FJzu%2Fuc1bbhU5RfS%2BUScoRwTTaQJGDICoJQ%3D&reserved= 0> --
  Message 6 of 8  
04 Jan 18 13:55
Eric Wittmayer
xxxxxx@yahoo.com
Join Date: 13 Apr 2017
Posts To This List: 10
USBDevice class not present in Win7 32?

Hi Zac & Doron, I'm still having issues. I created a new KMDF driver project using VS to simplify things. After changing the Class & ClassGuid in the inf to USBDevice and {88BAE032-5A81-49f0-BC3D-A4FF138216D6}, i get the same error, which is expected. I then changed the Target OS Version in the project properties under Driver Settings->General from the default "Windows 10 or higher" to "Windows 7" and tried building but got the same error about the device class. I also tried setting the "Target Platform" as Desktop just in case it defaults to universal but that didn't help. In VS project properties there are several places that talk about target versions besides the one i changed. General -> Target Platform, which can't be changed directly but seems to be tied to General -> Target Platform Version. which looks to specify which WDK version is being used. Do i need to use a Win 8.1 WDK? Is there some other setting i missed? Thanks again for your help Eric
  Message 7 of 8  
04 Jan 18 14:04
Zac Lockard
xxxxxx@microsoft.com
Join Date: 25 May 2017
Posts To This List: 23
USBDevice class not present in Win7 32?

Looks like the WDK runs InfVerif even if the project targets Win7 specifically. I think you can avoid this issue by editing the WindowsDriver.Common.Targets file in the WDK. <DPVerifierTask Condition="'@(InfItems)' != '' and '$(SkipPackageVerification)' != 'true'" Becomes <DPVerifierTask Condition="'@(InfItems)' != '' and '$(SkipPackageVerification)' != 'true' and '$(_NT_TARGET_VERSION)' >= '$(_NT_TARGET_VERSION_WIN10)'" I will look at fixing this for the next release. -----Original Message----- From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yahoo.com Sent: Thursday, January 4, 2018 10:55 AM To: Windows System Software Devs Interest List <xxxxx@lists.osr.com> Subject: RE:[ntdev] USBDevice class not present in Win7 32? Hi Zac & Doron, I'm still having issues. I created a new KMDF driver project using VS to simplify things. After changing the Class & ClassGuid in the inf to USBDevice and {88BAE032-5A81-49f0-BC3D-A4FF138216D6}, i get the same error, which is expected. I then changed the Target OS Version in the project properties under Driver Settings->General from the default "Windows 10 or higher" to "Windows 7" and tried building but got the same error about the device class. I also tried setting the "Target Platform" as Desktop just in case it defaults to universal but that didn't help. In VS project properties there are several places that talk about target versions besides the one i changed. General -> Target Platform, which can't be changed directly but seems to be tied to General -> Target Platform Version. which looks to specify which WDK version is being used. Do i need to use a Win 8.1 WDK? Is there some other setting i missed? Thanks again for your help Eric --- NTDEV is sponsored by OSR Visit the list online at: <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.co m%2Fshowlists.cfm%3Flist%3Dntdev&data=02%7C01%7Czac.lockard%40microsoft.com%7C127 34d2fdf8a4e8f50c408d553a49af2%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636506 889069063422&sdata=LCFieBOyLOmc2%2FMC%2B2pZE7BF69Xm1NCeo56haNE3TCU%3D&reserved=0> MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers! Details at <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osr.com%2Fse minars&data=02%7C01%7Czac.lockard%40microsoft.com%7C12734d2fdf8a4e8f50c408d553a49 af2%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636506889069063422&sdata=EnrBh5D 173xC53p8V3krDA2s%2BmzuN3yrJJrhRa5bEF4%3D&reserved=0> To unsubscribe, visit the List Server section of OSR Online at <https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.osronline.co m%2Fpage.cfm%3Fname%3DListServer&data=02%7C01%7Czac.lockard%40microsoft.com%7C127 34d2fdf8a4e8f50c408d553a49af2%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636506 889069063422&sdata=B7bOzP1OZYpZQ%2BFZVeddy5%2BG7lXDulNefbLxzEzUJus%3D&reserved=0>
  Message 8 of 8  
04 Jan 18 14:16
Tim Roberts
xxxxxx@probo.com
Join Date: 28 Jan 2005
Posts To This List: 11997
USBDevice class not present in Win7 32?

xxxxx@yahoo.com wrote: > Hi Doron, > That sounds like what i'm looking for but doesn't seem to work even on the command line: > > C:\src\eHost_xHCI\ref_trunk\FL6KDev\Release\x86>infverif /D FL6KDev.inf > ERROR(1285) in C:\src\eHost_xHCI\ref_trunk\FL6KDev\Release\x86\FL6KDev.inf, line 13: Cannot specify [ClassInstall32] section for Microsoft-defined class. > > I'm using infverif from WDK for 1703. Right.  The problem is essentially unsolvable.  USBDevice is a Microsoft-defined class starting in Windows 10.  It is totally unknown prior to that.  You cannot write one INF file using that install class that both passes the Win 10 verifier and installs correctly on earlier systems. Note that Doron's suggestion was to NOT include /D.  Since the InfVerif command line is built inside a DLL, I'm not sure how you'd do that in a vcxproj file. Zac's suggestions was to set your target operating system to an earlier system, so that infverif would simply not run. -- Tim Roberts, xxxxx@probo.com Providenza & Boekelheide, Inc.
Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You must login to OSR Online AND be a member of the ntdev list to be able to post.

All times are GMT -5. The time now is 02:50.


Copyright ©2015, OSR Open Systems Resources, Inc.
Based on vBulletin Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Modified under license