Creating an universal inf for a device with a custom class

Hello,

I’m interested in getting my device driver to be universal (https://docs.microsoft.com/en-us/windows-hardware/drivers/develop/getting-started-with-universal-drivers), since it may need to run on different SKUs than the normal consumer versions of Windows. The driver itself compiles successfully when set to the Universal target.

The device is a normal PCI device that doesn’t fall into one of the built-in vendor categories, so I created its own class that just adds the class name and a default icon to the registry.

It’s my understanding that universal infs cannot contain a ClassInstall32 section, which I use to help define the device class. Is there any way around this to get my inf to conform to the universal requirements?

Thanks in advance!

There is no workaround. Use the system class and life is simple.

Bent from my phone


From: xxxxx@lists.osr.com on behalf of xxxxx@gmail.com
Sent: Tuesday, May 2, 2017 8:20:26 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Creating an universal inf for a device with a custom class

Hello,

I’m interested in getting my device driver to be universal (https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows-hardware%2Fdrivers%2Fdevelop%2Fgetting-started-with-universal-drivers&data=02|01|Doron.Holan%40microsoft.com|67eb9fc465b64d1a505608d491d3536c|72f988bf86f141af91ab2d7cd011db47|1|0|636293784207072468&sdata=OC0Zvs0zEQtwIiqCdfy2resAypGvIcqjIoy5eGeGA3g%3D&reserved=0), since it may need to run on different SKUs than the normal consumer versions of Windows. The driver itself compiles successfully when set to the Universal target.

The device is a normal PCI device that doesn’t fall into one of the built-in vendor categories, so I created its own class that just adds the class name and a default icon to the registry.

It’s my understanding that universal infs cannot contain a ClassInstall32 section, which I use to help define the device class. Is there any way around this to get my inf to conform to the universal requirements?

Thanks in advance!


NTDEV is sponsored by OSR

Visit the list online at: https:

MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
Details at https:

To unsubscribe, visit the List Server section of OSR Online at https:</https:></https:></https:>

I’m pretty new to writing INFs for drivers. Is there any downside to classifying it as such?

No, there isn’t really. We don’t apply any class based policy on the system class as it contains a large variety of devices.

Bent from my phone


From: xxxxx@lists.osr.com on behalf of xxxxx@gmail.com
Sent: Wednesday, May 3, 2017 12:54:16 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Creating an universal inf for a device with a custom class

I’m pretty new to writing INFs for drivers. Is there any downside to classifying it as such?


NTDEV is sponsored by OSR

Visit the list online at: https:

MONTHLY seminars on crash dump analysis, WDF, Windows internals and software drivers!
Details at https:

To unsubscribe, visit the List Server section of OSR Online at https:</https:></https:></https:>

Thanks Doron!

The downside is that your device won’t appear in a distinct category in Device Manager. If you don’t care… there are no other downsides that I’m aware of.

Peter
OSR
@OSRDrivers