Share via

DxDiag code for Camera Location

Abraham Carrillo 36 Reputation points
2023-08-15T20:17:25.4833333+00:00

DxDiag shows us for Video Capture Devices the location of the camera (Front or rear).

I need to know how to do it in a windows forms c# application.

I don't have the option to use UWP.

Thank you

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.


Answer accepted by question author

Castorix31 91,876 Reputation points
2023-08-21T19:24:09.8166667+00:00

From docs (I have no real camera to test), it could be PKEY_Devices_PhysicalDeviceLocation (with SetupDi APIs)

6.1.8. _PLD (Physical Location of Device)

from

https://uefi.org/htmlspecs/ACPI_Spec_6_4_html/06_Device_Configuration/Device_Configuration.html

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.