how to get bus reported device description for VSP com port

YANG HONG 0 Reputation points
2024-04-23T18:20:45.4133333+00:00

Hello,

I am using C# to detect usb vsp com port for my ARM controller via usb port. My program has been working properly, but I can't get the descriptor on ARM controller because windows use universal serial device driver. I found item "bus reported device" in device manager to have controller descriptor, but when I use win32_PNPdevices to query it, I can't get this property, anybody has some solution?

Windows development | Windows API - Win32
Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 90,681 Reputation points
    2024-04-23T19:18:02.63+00:00

    From this thread https://forum.lazarus.freepascal.org/index.php?topic=59729.0

    with Win32_PnPEntity and PnpClass = "Ports"

    (Device Manager calls SetupDi APIs (SetupDiGetClassDevs and so on)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.