I need to get the Device Instance Path from the drive letter in C#. Using WMI is also fine.
I need to get the Device Instance Path from the drive letter in C#. Using WMI is also fine.
Thanks for immediate response. Do we have any code snippet in c#? if yes, Please share the link
SetupDiGetClassDevs, SetupDiEnumDeviceInterfaces , SetupDiGetDeviceInterfaceDetail
+
DeviceIoControl and IOCTL_STORAGE_GET_DEVICE_NUMBER
Hi sathishviswanathan-5522,
David Ching has provided a solution that using a Windows API in this thread, and you can refer to it.
Best Regards,
Daniel Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
9 people are following this question.
Insert a node as child ,before or after a node in nested dynamic JSON Node using C#
Visual Studio 2019: Undefined behavior in a C++/CLI wrapper project.
Example for how to get Package Metadata from Azure DevOps Rest-Api Artifacts using c#
How to collapse individual nested grids/stackpanels inside a grid?