Answer the question
In order to leave comments, you need to log in
Is there a way to distinguish between a camera and a mobile phone?
In general, I subscribed to notifications - ::RegisterDeviceNotification()
( msdn ), after processing everything else (message WM_DEVICECHANGE
( msdn ), etc.), there is a DEV_BROADCAST_DEVICEINTERFACE
( msdn ) structure at the input.
Is it possible to find out what it is, for example, a camera or a phone?
The only thing I googled is Windows Portable Devices ( msdn ).
If used DEV_BROADCAST_DEVICEINTERFACE::dbcc_name
as an argument for the method IPortableDevice::Open
( msdn ), then you can, among other things, get a list of content "supported" by the device ( msdn ), for example:
WPD_CONTENT_TYPE_IMAGE
WPD_CONTENT_TYPE_AUDIO
WPD_CONTENT_TYPE_PLAYLIST
WPD_CONTENT_TYPE_VIDEO
WPD_CONTENT_TYPE_DOCUMENT
WPD_CONTENT_TYPE_UNSPECIFIED
WPD_CONTENT_TYPE_FOLDER
WPD_CONTENT_TYPE_VIDEO
, WPD_CONTENT_TYPE_IMAGE
and WPD_CONTENT_TYPE_FOLDER
? Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question