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
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.