![]() Added code to retrieve the COM Port associated to USB Devices emulating a serial port.Ref RegType, intptrBuffer, BUFFER_SIZE, ref RequiredSize))ĭP.DevicePhysicalObjectName = Marshal.PtrToStringAuto(intptrBuffer) If (Win32Wrapper.SetupDiGetDeviceRegistryProperty(h, ref DevInfoData, ![]() Copy Code public static bool GetUSBDevice( UInt32 VID, UInt32 PID, ref List ListOfDP, bool GetCOMPort, Nullable MI= null)ĭP.DevicePhysicalObjectName = String.Empty
0 Comments
Leave a Reply. |