[DllImport("setupapi.dll", SetLastError = true, CharSet = CharSet.Ansi)] public static extern int CM_Locate_DevNodeA( out uint pdnDevInst, string pDeviceID, uint ulFlags );
Microsoft documentation: Link
Last updated 1 year ago