Forum > Windows CE
Reading MAC address of Acess Point (wifi) from WinCE device
(1/1)
denerdener:
Hi,
Someone know how, or if its possible get the MAC address of Acess point in WindowsCE?
Thanks.
PascalDragon:
You should take a look at the SendARP function that is provided by Windows (both NT and CE). You essentially send an ARP packet to the IP address of the router and it will reply with it's MAC address.
Please note that SendARP is available in the jwaiphlpapi unit on win32 and win64 and would normally be available in the iphlpapi unit on wince, but the unit is essentially stubbed out... However you should be able to copy the declaration from the jwaiphlapi unit.
Jurassic Pork:
Hello,
Have a look here using the iphlpapi unit.
Friendly, J.P
denerdener:
Hello,
--- Quote from: PascalDragon on May 26, 2023, 10:01:52 pm ---You should take a look at the SendARP function that is provided by Windows (both NT and CE). You essentially send an ARP packet to the IP address of the router and it will reply with it's MAC address.
Please note that SendARP is available in the jwaiphlpapi unit on win32 and win64 and would normally be available in the iphlpapi unit on wince, but the unit is essentially stubbed out... However you should be able to copy the declaration from the jwaiphlapi unit.
--- End quote ---
Thanks guys, this worked perfectly for me,
now i'm trying to get the IP address of Adapter, have some ideia?
Thanks again.
Navigation
[0] Message Index