Device serial number

kaveh rahimi 66 Reputation points
2021-06-21T08:51:55.243+00:00

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 development Windows API - Win32
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 90,521 Reputation points
    2021-06-21T09:07:16.29+00:00

    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)

    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.