﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2454	"if WMI Obj need ""Join"",au3 crashed."	thesnoW		"the 2rd round work on old version
the 1rd round will crash with not object.
{{{
_NetworkAdapterInfo()		
Func _NetworkAdapterInfo()
	Local $colItems = """"
	Local $objWMIService
	Local $NetworkAdapterGateway = """"
	$objWMIService = ObjGet(""winmgmts:\\localhost\root\CIMV2"")
	$colItems = $objWMIService.ExecQuery(""SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled != 0"", ""WQL"", 0x10 + 0x20)
	Local $colItem2 = $objWMIService.ExecQuery('SELECT * FROM Win32_NetworkAdapter WHERE NetConnectionStatus >0', ""WQL"", 0x10 + 0x20)
	If IsObj($colItems) Then
		For $objItem In $colItems
;1RD			
;~ 			If IsObj($objItem.DefaultIPGateway) Then
			FOR $Element IN $objItem.DefaultIPGateway
				$NetworkAdapterGateway= $Element
				MsgBox(32,"""",$NetworkAdapterGateway)
			NEXT
;~ 			EndIf

;2RD
		MsgBox(32,"""",$NetworkAdapterGateway(0))
		Next
	EndIf
EndFunc   ;==>_NetworkAdapterInfo
}}}


VBS version:
strDefaultIPGateway = Join(objItem.DefaultIPGateway, "","")
"	Bug	closed		AutoIt	3.3.9.19	None	Works For Me		
