After modifying a few examples, I've gotten this code:
$aCall = DllCall("iphlpapi.dll", "dword", "GetIpNetTable", "ptr*", 0, "dword*", 0, "int", 1)
$iSize = $aCall[2]
$MIB_IPNETROW = 'dword;dword;byte[' & $iSize & '];dword;dword'
$pIpNetTable = DllStructCreate("dword;" & $MIB_IPNETROW)
$aCall = DllCall("iphlpapi.dll", "dword", "GetIpNetTable", "ptr", DllStructGetPtr($pIpNetTable), "dword*", $iSize, "int", 1)
ConsoleWrite ((DllStructGetData($pIpNetTable,1,1)-2)&@CRLF)
Now it shows the correct number of items in the ARP table
How am i can get it from this structure ?