mspocketpc.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Getting WLAN MAC Address

 
Post new topic   Reply to topic    mspocketpc.org Forum Index -> Developer Networking
Author Message
Vikky



Joined: 22 Aug 2007
Posts: 17

PostPosted: Mon Feb 11, 2008 6:42 am    Post subject: Getting WLAN MAC Address Reply with quote

Hi,
I have an application which needs to get the IP and MAC address of WLAN.
I am able to get the IP address, but for some reason haven't been able to get
the MAC address. GetLastError () returns 0. So, I am stuck. For your
reference I am providing the code which is used to get the MAC Address.

DWORD oidB = OID_802_11_BSSID ;
NDIS_WLAN_BSSID bSsid = {0,} ;
HANDLE m_hFileHandle ;

m_hFileHandle = CreateFile(NDISUIO_DEVICE_NAME,GENERIC_READ|GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED, INVALID_HANDLE_VALUE);

bl = DeviceIoControl (m_hFileHandle, IOCTL_NDIS_QUERY_GLOBAL_STATS, &oidB,
sizeof(DWORD), &bSsid, sizeof(bSsid), &dwReturned, NULL) ;

Is there something I am missing?
Thanks in advance.

Archived from group: microsoft>public>pocketpc>developer>networking
Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Reading mac/IP address of Wlan access point We have been developing an application on Pocket pc 2003 using 802.11b CF cards. I want to constitute a mobile environment with Wlan accesspoint. What I want to do is that while roaming in this environment with pocket pc 2003 (with 802.11b CF cards) I pro

Network browsing using WLAN Hi, I have a windows mobile 5.0 device with WLAN built-in. Now once connected to LAN, i need to find all devices/PC's on LAN. How do i do this? What should be the approach? Any help will be greatlt appreciated. Thanks. Regards, Veena

LSP WLAN and the Connection manager. HI, I am having a problem with our LSP and the Connection manager. Occationally when powering on and off the WLAN card the connection manager gets stuck in the connecting state. Our LSP esentially does nothing at the moment and is based on the ms example.

Lsp Wlan and connection manager problem I have a problem with the lsp and wlan connections, 50% of the time after reseting the device no longer reports succesfully associate with an access point. The problem seams to be related to the connection mangager so internet explorer does not get a chan

Disable WLAN adapter in Expansion Pack ? Greetings, I have a question and not really sure if this could be accomplished I am trying to conserve power on my iPAQ with disabling the WLAN adapter which is installed in the PCMCIA Expansion Pack. I know I can just pull the card out of the slot, but I
Post new topic   Reply to topic    mspocketpc.org Forum Index -> Developer Networking All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group