Click here to Skip to main content
16,005,080 members
Home / Discussions / Mobile
   

Mobile

 
QuestionKeyboard hook doesn't work with Windows Media Player? Pin
ponchofiesta8-Oct-09 1:53
ponchofiesta8-Oct-09 1:53 
Questionhow to download makeCF utility Pin
pri_skit6-Oct-09 3:16
pri_skit6-Oct-09 3:16 
AnswerRe: how to download makeCF utility Pin
Richard MacCutchan6-Oct-09 4:36
mveRichard MacCutchan6-Oct-09 4:36 
GeneralRe: how to download makeCF utility Pin
pri_skit6-Oct-09 5:00
pri_skit6-Oct-09 5:00 
GeneralRe: how to download makeCF utility Pin
Richard MacCutchan6-Oct-09 5:10
mveRichard MacCutchan6-Oct-09 5:10 
QuestionNokia WRT Plug-in 2.2 for Aptana Studio Pin
mobogeek5-Oct-09 19:12
mobogeek5-Oct-09 19:12 
AnswerRe: Nokia WRT Plug-in 2.2 for Aptana Studio Pin
Nathan Campos10-Oct-09 1:45
Nathan Campos10-Oct-09 1:45 
QuestionActive scan on a WiFi NIC, including flush of old scan results - how ? Pin
amitalonm4-Oct-09 3:14
amitalonm4-Oct-09 3:14 
Hi,

I wrote a program using VC++ that should scan for available wireless networks in the area.

In my SW I use the commands OID_802_11_BSSID_LIST_SCAN and OID_802_11_BSSID_LIST.

My questions are:
1. How can I Force the Wireless NIC to do ACTIVE SCAN (as contrary to PASSIVE scan) ?

2. According to tests that I did, the card does not flush the list between scans, i.e. I get for several scan a result of an AP that was on air during an old scan, but is no longer there, and new scans return's it's data as if it is still there.

A code part that I used is attached - in order to illustrate which functions I am using.

NDIS_802_11_BSSID_LIST* m_pBSSIDList;
m_pBSSIDList = (NDIS_802_11_BSSID_LIST *) VirtualAlloc (NULL,
                                                        sizeof (NDIS_802_11_BSSID_LIST) * NUMBEROF_BSSIDS,
                                                        MEM_RESERVE | MEM_COMMIT,
                                                        PAGE_READWRITE) ;


memset (m_pBSSIDList, 0, sizeof (NDIS_802_11_BSSID_LIST) * NUMBEROF_BSSIDS);

// Do Scan
oidcode = OID_802_11_BSSID_LIST_SCAN;
DeviceIoControl (m_handle,
		IOCTL_NDIS_QUERY_GLOBAL_STATS,
		&oidcode,
		sizeof(oidcode),
		(ULONG *) NULL,
		0,
		&bytesreturned,
		NULL);

Sleep (6100); // According to the documentation the result of the scan should be valid after 6 seconds.
// The original line was delay of 2000 mSec. find out why...
//Sleep (2000);

// Read scan results
oidcode = OID_802_11_BSSID_LIST;
if (DeviceIoControl(    m_handle,
			IOCTL_NDIS_QUERY_GLOBAL_STATS,
			&oidcode,
			sizeof(oidcode),
			(ULONG *) m_pBSSIDList,
			sizeof(NDIS_802_11_BSSID_LIST) * NUMBEROF_BSSIDS,
			&bytesreturned,
			NULL) == 0)
{
	// List failed
	return NULL;
}
else
{
	return m_pBSSIDList;
}




If you have any idea of how can I solve my problems, or if you see that I forgot any important line- please let me know.
I am open to hear about completely new ways to do this. only requirement is that I will use VC++.

Thanks a lot,
--Amit.
QuestionReading data from and from phone and PC Pin
Member 8859723-Oct-09 3:19
Member 8859723-Oct-09 3:19 
Question[Message Deleted] Pin
hande543-Oct-09 2:06
hande543-Oct-09 2:06 
AnswerRe: get the data with PDA through usb connection Pin
annathor7-Oct-09 23:03
annathor7-Oct-09 23:03 
QuestionLanguage/Framework choice for Windows Mobile app Pin
nativebyte2-Oct-09 0:33
nativebyte2-Oct-09 0:33 
AnswerRe: Language/Framework choice for Windows Mobile app Pin
Joel Ivory Johnson2-Oct-09 1:38
professionalJoel Ivory Johnson2-Oct-09 1:38 
GeneralRe: Language/Framework choice for Windows Mobile app Pin
nativebyte2-Oct-09 2:06
nativebyte2-Oct-09 2:06 
QuestionPortible Email Client for Embedded OEM system Pin
Kobib1-Oct-09 3:16
Kobib1-Oct-09 3:16 
QuestionDevelope an application for Blackberry & IPhone....... Pin
shaina223124-Sep-09 18:46
shaina223124-Sep-09 18:46 
AnswerRe: Develope an application for Blackberry & IPhone....... Pin
Joel Ivory Johnson29-Sep-09 12:39
professionalJoel Ivory Johnson29-Sep-09 12:39 
Questionusb driver for microcontroller.? Pin
Mir_As22-Sep-09 4:22
Mir_As22-Sep-09 4:22 
AnswerRe: usb driver for microcontroller.? Pin
hande5425-Oct-09 1:31
hande5425-Oct-09 1:31 
QuestionI want to create my own SMS-app for my mobile, nokia-phone Pin
luke.orun21-Sep-09 9:15
luke.orun21-Sep-09 9:15 
AnswerRe: I want to create my own SMS-app for my mobile, nokia-phone Pin
HimanshuJoshi21-Sep-09 23:31
HimanshuJoshi21-Sep-09 23:31 
QuestionWakeup notification Pin
Sunshine Always21-Sep-09 0:57
Sunshine Always21-Sep-09 0:57 
QuestionPopup Menu string in soft key Pin
Muthiahr100016-Sep-09 7:32
Muthiahr100016-Sep-09 7:32 
Questiontouch global hooking/subclassing Windows Mobile Pin
elad210916-Sep-09 1:35
elad210916-Sep-09 1:35 
QuestionHow to connect to sql server 2008 through pocket pc 5.0 Pin
Felong15-Sep-09 11:35
Felong15-Sep-09 11:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.