Recent

Author Topic: Reading MAC address of Acess Point (wifi) from WinCE device  (Read 2054 times)

denerdener

  • New Member
  • *
  • Posts: 13
Hi,

Someone know how, or if its possible get the MAC address of Acess point in WindowsCE?

Thanks.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5444
  • Compiler Developer
Re: Reading MAC address of Acess Point (wifi) from WinCE device
« Reply #1 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.

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
Re: Reading MAC address of Acess Point (wifi) from WinCE device
« Reply #2 on: May 27, 2023, 07:56:41 am »
Hello,
Have a look here using the iphlpapi unit.
Friendly, J.P
« Last Edit: May 27, 2023, 08:42:43 am by Jurassic Pork »
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

denerdener

  • New Member
  • *
  • Posts: 13
Re: Reading MAC address of Acess Point (wifi) from WinCE device
« Reply #3 on: May 30, 2023, 05:59:28 am »
Hello,

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.

Thanks guys, this  worked perfectly for me,

now i'm  trying to get the IP address of Adapter, have some ideia?

Thanks again.

 

TinyPortal © 2005-2018