D
D
Door2014-02-06 21:58:50
C++ / C#
Door, 2014-02-06 21:58:50

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

But I don't know if the camera, for example, will only support WPD_CONTENT_TYPE_VIDEO, WPD_CONTENT_TYPE_IMAGEand WPD_CONTENT_TYPE_FOLDER?
There is also Windows Image Acquisition ( msdn ), but this thing does not even see the phone (only a scanner, maybe something else).
Someone faced similar?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question