[DllImport("setupapi.dll", SetLastError = true)] public static extern int CM_Get_DevNode_Status( out int pulStatus, out int pulProblemNumber, uint dnDevInst, uint ulFlags );
Microsoft documentation: Link
Last updated 1 year ago