Hi,
when i try to access an object item, i get an error, but don't know how to catch this error:
Func GetFirewallRule($sName)
Local $oPolicy = ObjCreate("HNetCfg.FwPolicy2")
MsgBox(0, "test", $oPolicy.Rules.Item($sName)) ; throws error: The requested action with this object has failed.
EndFunc
Thanks in advance