setupapi: add DeviceInstanceID()

This commit is contained in:
Jason A. Donenfeld
2019-06-09 17:22:59 +02:00
parent eaf17becfa
commit bb3f1932fa
3 changed files with 41 additions and 0 deletions

View File

@@ -139,6 +139,11 @@ func TestSetupDiEnumDeviceInfo(t *testing.T) {
if data.ClassGUID != deviceClassNetGUID {
t.Error("SetupDiEnumDeviceInfo returned different class GUID")
}
_, err = devInfoList.DeviceInstanceID(data)
if err != nil {
t.Errorf("Error calling SetupDiGetDeviceInstanceId: %s", err.Error())
}
}
}