Facing an issue regarding USBPRINT port creation and metadata (Device info) creation in registry

%3CLINGO-SUB%20id%3D%22lingo-sub-2752191%22%20slang%3D%22en-US%22%3EFacing%20an%20issue%20regarding%20USBPRINT%20port%20creation%20and%20metadata%20(Device%20info)%20creation%20in%20registry%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2752191%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWith%20Plug%20N%20Play%20printer%20device%20through%20USB%20on%20WIndows11%20OS%2C%20We%20are%20facing%20an%20issue%20regarding%20USBPRINT%20port%20creation%20and%20metadata%20(Device%20info)%20creation%20in%20registry.%3C%2FP%3E%3CP%3EGenerally%20if%20any%20Plug%20N%20Play%20USBPRINT%20device%20is%20plugged%20to%20the%20PC%2C%20registry%20entries(like%20Device%20parameters)%20should%20be%20created%20under%20following%20registry%20path%2C%3C%2FP%3E%3CP%3E%22Computer%5CHKEY_LOCAL_MACHINE%5CSYSTEM%5CCurrentControlSet%5CControl%5CDeviceClasses%7B28d78fad-5a12-11d1-ae5b-0000f803a8c2%7D%22%3C%2FP%3E%3CP%3Efor%20e.g.%2C%20(Reference%20from%20Win10)%3CBR%20%2F%3E%5BHKEY_LOCAL_MACHINE%5CSYSTEM%5CCurrentControlSet%5CControl%5CDeviceClasses%7B28d78fad-5a12-11d1-ae5b-0000f803a8c2%7D%23%23%3F%23USB%23VID_08A6%26amp%3BPID_8053%26amp%3BMI_00%236%26amp%3B27e1620%26amp%3B1%26amp%3B0000%23%7B28d78fad-5a12-11d1-ae5b-0000f803a8c2%7D%5D%3CBR%20%2F%3E%22DeviceInstance%22%3D%22USB%5C%5CVID_08A6%26amp%3BPID_8053%26amp%3BMI_00%5C%5C6%26amp%3B27e1620%26amp%3B1%26amp%3B0000%22%3C%2FP%3E%3CP%3E%5BHKEY_LOCAL_MACHINE%5CSYSTEM%5CCurrentControlSet%5CControl%5CDeviceClasses%7B28d78fad-5a12-11d1-ae5b-0000f803a8c2%7D%23%23%3F%23USB%23VID_08A6%26amp%3BPID_8053%26amp%3BMI_00%236%26amp%3B27e1620%26amp%3B1%26amp%3B0000%23%7B28d78fad-5a12-11d1-ae5b-0000f803a8c2%7D%23%5D%3C%2FP%3E%3CP%3E%5BHKEY_LOCAL_MACHINE%5CSYSTEM%5CCurrentControlSet%5CControl%5CDeviceClasses%7B28d78fad-5a12-11d1-ae5b-0000f803a8c2%7D%23%23%3F%23USB%23VID_08A6%26amp%3BPID_8053%26amp%3BMI_00%236%26amp%3B27e1620%26amp%3B1%26amp%3B0000%23%7B28d78fad-5a12-11d1-ae5b-0000f803a8c2%7D%23%5CDevice%20Parameters%5D%3CBR%20%2F%3E%22Port%20Number%22%3Ddword%3A00000001%3CBR%20%2F%3E%22Port%20Description%22%3D%22xxxxxxxxxxxxx%22%3CBR%20%2F%3E%22Base%20Name%22%3D%22USB%22%3CBR%20%2F%3E%22Serial%20Number%22%3D%22xxxxxxxxx%20%22%3CBR%20%2F%3E%22Interface%20Number%22%3Ddword%3A00000000%3C%2FP%3E%3CP%3EHowever%2C%20on%20Windows11%20OS%20%22Port%20Description%22%2C%20%22Base%20Name%22%2C%20%22Serial%20Number%22%2C%20%22Interface%20Number%22%20is%20not%20getting%20created.%3C%2FP%3E%3CP%3EWe%20analyzed%20USB%20data%20packets%20and%20found%20the%20required%20device%20parameters%20data%20has%20been%20sent%20to%20the%20PC%2C%20however%20the%20registries%20are%20not%20getting%20created%20in%20Windows11%20unlike%20in%20Windows10.%3C%2FP%3E%3CP%3ESince%20we%20are%20using%20Setup%20API(SetupDiGetClassDevs%2CSetupDiEnumDeviceInterfaces%2CSetupDiGetDeviceInterfaceDetail)%20to%20enumerate%20and%20get%20the%20details%20related%20to%20our%20device%2C%20we%20are%20facing%20issue%20to%20find%20our%20device(we%20filter%20our%20device%20using%20Port%20description%20which%20is%20not%20creating%20in%20Win11)%20because%20of%20incomplete%20registries%20creation%20under%20%22Computer%5CHKEY_LOCAL_MACHINE%5CSYSTEM%5CCurrentControlSet%5CControl%5CDeviceClasses%7B28d78fad-5a12-11d1-ae5b-0000f803a8c2%7D%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECould%20you%20please%20let%20us%20know%20why%20the%20registries%20not%20getting%20created%20even%20though%20our%20device%20sending%20the%20device%20parameters%20properly%20as%20requested%20by%20generic%20driver%3F%20Are%20there%20any%20design%20changes%20or%20Microsoft%20will%20correct%20this%20behavior%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi,

 

With Plug N Play printer device through USB on WIndows11 OS, We are facing an issue regarding USBPRINT port creation and metadata (Device info) creation in registry.

Generally if any Plug N Play USBPRINT device is plugged to the PC, registry entries(like Device parameters) should be created under following registry path,

"Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses{28d78fad-5a12-11d1-ae5b-0000f803a8c2}"

for e.g., (Reference from Win10)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses{28d78fad-5a12-11d1-ae5b-0000f803a8c2}##?#USB#VID_08A6&PID_8053&MI_00#6&27e1620&1&0000#{28d78fad-5a12-11d1-ae5b-0000f803a8c2}]
"DeviceInstance"="USB\\VID_08A6&PID_8053&MI_00\\6&27e1620&1&0000"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses{28d78fad-5a12-11d1-ae5b-0000f803a8c2}##?#USB#VID_08A6&PID_8053&MI_00#6&27e1620&1&0000#{28d78fad-5a12-11d1-ae5b-0000f803a8c2}#]

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses{28d78fad-5a12-11d1-ae5b-0000f803a8c2}##?#USB#VID_08A6&PID_8053&MI_00#6&27e1620&1&0000#{28d78fad-5a12-11d1-ae5b-0000f803a8c2}#\Device Parameters]
"Port Number"=dword:00000001
"Port Description"="xxxxxxxxxxxxx"
"Base Name"="USB"
"Serial Number"="xxxxxxxxx "
"Interface Number"=dword:00000000

However, on Windows11 OS "Port Description", "Base Name", "Serial Number", "Interface Number" is not getting created.

We analyzed USB data packets and found the required device parameters data has been sent to the PC, however the registries are not getting created in Windows11 unlike in Windows10.

Since we are using Setup API(SetupDiGetClassDevs,SetupDiEnumDeviceInterfaces,SetupDiGetDeviceInterfaceDetail) to enumerate and get the details related to our device, we are facing issue to find our device(we filter our device using Port description which is not creating in Win11) because of incomplete registries creation under "Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses{28d78fad-5a12-11d1-ae5b-0000f803a8c2}"

 

Could you please let us know why the registries not getting created even though our device sending the device parameters properly as requested by generic driver? Are there any design changes or Microsoft will correct this behavior?

1 Reply
Please reply to this query. It is really urgent.