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#
{count} votes

Accepted answer
  1. Castorix31 90,686 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


0 additional answers

Sort by: Most helpful

Your answer

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