GetAdaptersInfo
Info |
Optional. A variable that will be assigned a dictionary describing the current networking configuration of the local computer. |
Comments: |
The dictionary maintained in variable Info, has 3 members. Each of the members holds an array of equal size, with one element per network interface. "InterfaceID" Holds the interface ID number that Windows has assigned to the network interface. "Name" Holds the textual name of the interface. "UniqueID" Holds a UUID assigned to the interface by Windows. |
Example:
If GetAdaptersInfo(NetworkInfo); [ NumInterfaces = ArraySize(NetworkInfo["InterfaceID"]); I = 0; WhileLoop(I < NumInterfaces, InterfaceInfo = Concat("ID: ", NetworkInfo["InterfaceID"][I], " Name: ", NetworkInfo["Name"][I], " UniqueID: ", NetworkInfo["UniqueID"][I]); I++; ); ]
This will set InterfaceInfo to a string describing each network interface in turn.