CaduNunes79 / netprofilesmod

Automatically exported from code.google.com/p/netprofilesmod
0 stars 0 forks source link

Get rid of WMI #58

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
WMI (Windows Management Instrumentation) is used for retrieving the list of 
network adapters and the current IP settings. The new settings are also applied 
using WMI. It has turned out that WMI has many disadvantages and is not very 
reliable:
- it is dependent of driver quality, adapters might not be detected (see also 
issue 55)
- disconnected adapters are visible in Windows XP and invisible in Windows 7
- applying settings for disconnected adapters is impossible (Win7) or leads to 
unexpected results (XP)
- activating DHCP needs a workaround to prevent 2 active default gateways
- unable to retrieve the connection type and therefore unable to display the 
appropriate icon for the profiles (WLAN, bluetooth, wired)
- sometimes the query for current adapters delivers old results if executed 
immediately with the NetworkAvailabilityChanged handler
- no reliable method for filtering only physical adapters

Original issue reported on code.google.com by u...@urx.ch on 19 May 2013 at 8:16

GoogleCodeExporter commented 9 years ago

Original comment by u...@urx.ch on 19 May 2013 at 8:17

GoogleCodeExporter commented 9 years ago

Original comment by u...@urx.ch on 11 May 2014 at 6:18

GoogleCodeExporter commented 9 years ago

Original comment by u...@urx.ch on 16 Jun 2014 at 8:06

GoogleCodeExporter commented 9 years ago
After more issues are reported for Windows 8, replacing WMI is now getting 
important. It looks like the Internet Protocol Helper (IP Helper) API is what 
should be used as for applying IP settings: 
http://msdn.microsoft.com/en-us/library/aa366073(v=vs.85).aspx

Original comment by u...@urx.ch on 16 Jun 2014 at 8:19