Basically, I want to know if any camera is built into the device [...], is there any way to request this?
With UWP, you can check the DeviceInformation
enclosureLocation
camera. panel
property:
front
/ back
/ etc for the integrated camera orunknown
for external camera
A complete example is available at CameraStarterKit .
However , if you cannot use UWP, you can still find some basic information. With MF, you must have access to MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_SYMBOLIC_LINK
.
It will be something like
\\?\usb
The built-in camera must register its physical location in
HKLM\SYSTEM\CurrentControlSet\Control\InternalDeviceModification\{GUID}
If the value of the PLD_Panel
key must be a DWORD with values ββvery similar to the panel
enumeration mentioned above.
Here 6
means unknown
. Therefore, you should be able to check for the presence of this registry key and, if so, to check its value. I suspect this is similar to what UWP does under the hood.
Otherwise, you can crack support by hard-coding some values ββfor the camera vendor and product ID or MF_DEVSOURCE_ATTRIBUTE_FRIENDLY_NAME
.
source share