question

AlexanderSeidl-3027 avatar image
0 Votes"
AlexanderSeidl-3027 asked DoronHolan answered

SerialPortPropPageProvider Tab for UMDF Driver not showing up

I have written a virtual serial driver in UMDF.
Now I am trying to add the standard port settings tab to the device manager dialog by adding HKR,,EnumPropPages32,,"msports.dll,SerialPortPropPageProvider"
to my inf file in the AddReg section.
However, the tab does not show up.

What am I missing?

Thanks in advance
Alex

windows-hardwarewindows-hardware-wdkwindows-hardware-code-general
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

post your INF. Are you setting the PortSubClass value in the devnode? From msports.inf

[ComPort.AddReg]
HKR,,PortSubClass,1,01

1 Vote 1 ·

Thanks a lot, that helped, now it works :)

I noticed, that following also seems to work

[MyDriver_Install.NT.CoInstallers]
HKR,,EnumPropPages32,,"msports.dll,SerialPortPropPageProvider"

With this solution I do not need to set the additional PortSubClass value.

1 Vote 1 ·

1 Answer

DoronHolan avatar image
1 Vote"
DoronHolan answered

The expand further...the PortSubClass value is needed since the class installer tries to dynamically add the property page at runtime. Since the ports class contains both serial and parallel ports, the PortSubClass value tells the class installer what type of port it is (1 being a serial port). The EnumPropPages32 value that you used in the INF explicitly adds the property page (the PortSubClass check is essentially skipped). Technically you should always include the PortSubClass value in the INF, even if you are also explicitly adding the EnumPropPages32 value, as there are other edge conditions in the OS that read this value and make decisions based on the result.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.