}
defer devInfoList.Close()
- // Retrieve information associated with a device information set.
- // TODO: Is this really necessary?
- _, err = devInfoList.GetDeviceInfoListDetail()
- if err != nil {
- return nil, err
- }
-
// Windows requires each interface to have a different name. When
// enforcing this, Windows treats interface names case-insensitive. If an
// interface "FooBar" exists and this function reports there is no
}
defer devInfoList.Close()
- // Retrieve information associated with a device information set.
- // TODO: Is this really necessary?
- _, err = devInfoList.GetDeviceInfoListDetail()
- if err != nil {
- return false, false, err
- }
-
// Iterate.
for index := 0; ; index++ {
// Get the device from the list.