How to find out the Serial number or IMEI number of Mobile device connected to windows using MFC application(win32 API's) RRS feed

  • Question

  • I need to find out the serial number or IMEI  number of mobile device connected to the windows machine  using usb cables    

    Is there any API for this ?

    I tried with USB device descriptor  for for finding the serial number but only getting the index number .How can i get the actual serial number

    Please help

    Monday, March 4, 2019 1:11 PM


  • You can get what the device refers to as its serial number, but there is no guarantee that it is also the IMEI or that the serial number is unique. You need to learn more about USB, or none of this is going to make sense. You might start with USB in a Nutshell. USB allows devices to store strings in many languages, each language stored in a different table. You select the table using a language ID, and get the string using the index.


    Azius Developer Training Windows device driver, internals, security, & forensics training and consulting. Blog at

    Monday, March 4, 2019 6:05 PM