Open GoogleCodeExporter opened 9 years ago
I download the source and while debuging with VS 2008
Public Function GetInterfaceName(ThisInterface As String) As String
Try
Dim searcher As New ManagementObjectSearcher( _
"root\CIMV2", _
"SELECT * FROM Win32_NetworkAdapter WHERE MACAddress = '" &
ThisInterface.Replace("-",":") & "'")
'
For Each queryObj As ManagementObject in searcher.Get()
Application.DoEvents
Return queryObj("NetConnectionID") <<<<<----- This is where FileNotFound fires
off :P
Next
Catch err As ManagementException
Return ""
End Try
End Function
Original comment by miguelmc...@gmail.com
on 15 May 2009 at 9:48
[deleted comment]
[deleted comment]
[deleted comment]
"SELECT * FROM Win32_NetworkAdapter ....
Win32_NetworkAdapterConfiguration maybe?
Original comment by miguelmc...@gmail.com
on 15 May 2009 at 10:54
Original issue reported on code.google.com by
miguelmc...@gmail.com
on 15 May 2009 at 9:36