PORTS Forum

Ports and Interfaces => USB => Topic started by: bcdaus on December 21, 2020, 09:41:17 pm

Title: Accessing HidD_GetSerialNumberString in Generic_Hid_cs_v62?
Post by: bcdaus on December 21, 2020, 09:41:17 pm
I am just starting to play with the Generic HID v62 code and I am trying to find a way to call the HidD_GetSerialNumberString query.
I am quite new to C# so maybe I am doing it wrong.

Anyone got any shortcuts?  I am just playing with the default app at this stage.

The other option I was thinking of was taking the DeviceID and chopping off the serial from the end.  Its not the most elegant, but would work at a pinch.

Thanks,
Bill.
Title: Re: Accessing HidD_GetSerialNumberString in Generic_Hid_cs_v62?
Post by: Jan Axelson on December 22, 2020, 10:09:05 am
These may help:

https://www.microchip.com/forums/m486807.aspx

https://www.microchip.com/forums/m431802.aspx

https://www.pinvoke.net/default.aspx/hid/HidD_GetSerialNumberString.html