Finding a device given a physical device object name

Solution 1:

Solution

From the official documentation:

When a bus driver detects that child devices have been plugged in or unplugged, it informs the Plug and Play (PnP) manager. In response, the PnP manager asks the bus driver to create a physical device object (PDO) for each child device that is connected to the parent device (that is, the bus).

Source: WDM Concepts for WDF Drivers

To get the required information, open a command prompt and run the following command:

wmic path Win32_PnPSignedDriver where "pdo like '%0000007c'" get devicename,pdo

Further reading

  • Win32_PnPSignedDriver class
  • Command-Line Reference