Determine WPD device type in Delphi

前端 未结 2 1491
粉色の甜心
粉色の甜心 2021-01-27 08:28

I\'m trying to determine what type my WPD device is in Delphi.

In my application I need to know if the device is a Phone or Camera or what ever it is.

According

2条回答
  •  时光说笑
    2021-01-27 08:41

    Your HRESULT is $80070002. That's a COM error code that wraps the Win32 error code, ERROR_FILE_NOT_FOUND. And that means that either the device ID or property name are incorrect. Assuming that you have indeed got the correct device ID, the obvious conclusion is that you are attempting to read the value of a property that does not exist.

提交回复
热议问题