Device serial number

kaveh rahimi 61 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 API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,420 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 81,636 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