Hi there
Could someone help me programmatically retrieve the MAC address of the network interfaces in my Psion Workabout Pro?
It uses Windows Mobile 2003 Second Edition v4.21.1088 (build 15077.3.0.0) Processor: XScale PXA255A0
I have it browsing the internet using WiFi.
It has Psion Tecklogix GPRS2 in an expansion slot, where I suspect the WiFi adapter is situated too.
When I run either of these code snippets I get only one adapter with a null address:
version 1:
Dim adapters As AdapterCollection = Networking.GetAdapters()
Dim mac As String = Nothing
Dim x() As Byte
For Each a As Adapter In adapters
x = a.MacAddress
MessageBox.Show(System.Text.Encoding.ASCII.GetString(x, 0, x.Length))
Next
version 2:
Dim interfaces() As NetworkInformation.NetworkInterface = NetworkInformation.NetworkInterface.GetAllNetworkInterfaces
For Each i As NetworkInformation.NetworkInterface In interfaces
MessageBox.Show(i.GetPhysicalAddress().ToString)
Next
I'd really appreciate any insight.
Cheers
M