Windows 10 c++:How to associate the USB device and WPD device?

  • Thread starter Thread starter 2 freeman
  • Start date Start date
2

2 freeman

Hi,I want to write a c++ program to read files on a specified mobile phone. This program receives three parameters: the USB vendor ID, the USB product ID and the USB serial number. These three parameters should identify the mobile phone.What puzzles me is: how can I determine which WPD device corresponds to the phone based on these parameters?I try to get the serial number through WPD:```c++this->pIPortableDevice->Content(&pContent);pContent->Properties(&pProperties);pProperties->GetValues(WPD_DEVICE_OBJECT_ID, NULL, &pValues);pValues->GetStringValue(WPD_D

Continue reading...
 
Back
Top