Device serial number

kaveh rahimi 61 Reputation points

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.

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

    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