question

kavehrahimi-5744 avatar image
0 Votes"
kavehrahimi-5744 asked TianyuSun-MSFT edited

Device serial number

Hi ,I want to find the seial number of inserted device in USB drive I don't know how to do that.
Please guide me by some example.
Thanks

windows-api
· 1
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.

I mean MAC Address by serial number.

0 Votes 0 ·

1 Answer

Castorix31 avatar image
0 Votes"
Castorix31 answered

Device Serial Number is at STORAGE_DEVICE_DESCRIPTOR.SerialNumberOffset

You can find many samples from Google, like
Get Physical Drive Serial Number – Part 1
or one I had posted in VB : Get serial number of USB Drive (correctly)


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.