setupapi: add DeviceInstanceID()
This commit is contained in:
parent
eaf17becfa
commit
bb3f1932fa
3 changed files with 41 additions and 0 deletions
|
|
@ -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())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue