Click here to Skip to main content
15,908,842 members
Home / Discussions / Mobile
   

Mobile

 
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 
AnswerRe: How to connect to sql server 2008 through pocket pc 5.0 Pin
Felong19-Oct-09 9:57
Felong19-Oct-09 9:57 
QuestionRemote accessing of Win Ce5.0 device Pin
obalesu15-Sep-09 0:24
obalesu15-Sep-09 0:24 
AnswerRe: Remote accessing of Win Ce5.0 device Pin
Sunshine Always21-Sep-09 0:59
Sunshine Always21-Sep-09 0:59 
GeneralRe: Remote accessing of Win Ce5.0 device Pin
obalesu21-Sep-09 1:57
obalesu21-Sep-09 1:57 
QuestionDeveloper conference?? Any idea about this? Pin
stevensj214-Sep-09 23:43
stevensj214-Sep-09 23:43 
QuestionActive scan on a WiFi NIC, including flush of old scan results - how ? Pin
amitalonm10-Sep-09 22:42
amitalonm10-Sep-09 22:42 
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.
QuestionProblem While Running Blackberry Application... Pin
shaina22318-Sep-09 19:28
shaina22318-Sep-09 19:28 
AnswerRe: Problem While Running Blackberry Application..(plz read this ) Pin
shaina22318-Sep-09 19:31
shaina22318-Sep-09 19:31 
QuestionHow to stream an FLV video on a device application Pin
Vivek Vijayan7-Sep-09 5:55
Vivek Vijayan7-Sep-09 5:55 
QuestionMobile Application Pin
Learpheal3-Sep-09 16:15
Learpheal3-Sep-09 16:15 
AnswerRe: Mobile Application Pin
PavanPareta3-Sep-09 20:54
PavanPareta3-Sep-09 20:54 
QuestionDigital Citation For Windows Mobile Pin
lancerta3-Sep-09 11:22
lancerta3-Sep-09 11:22 
AnswerRe: Digital Citation For Windows Mobile Pin
jzonthemtn23-Sep-09 3:43
jzonthemtn23-Sep-09 3:43 
QuestionCannot call Camera function [modified] Pin
ahzarmokhli2-Sep-09 19:33
ahzarmokhli2-Sep-09 19:33 
AnswerRe: Cannot call Camera function Pin
Joel Ivory Johnson7-Sep-09 3:01
professionalJoel Ivory Johnson7-Sep-09 3:01 
QuestionIs this a Bug in Compact Framework 2.0 ? (C#, DateTime + TimeSpan) [modified] Pin
KingLooie2-Sep-09 1:39
KingLooie2-Sep-09 1:39 
AnswerRe: Is this a Bug in Compact Framework 2.0 ? (C#, DateTime + TimeSpan) Pin
fergara2-Sep-09 2:22
fergara2-Sep-09 2:22 
GeneralRe: Is this a Bug in Compact Framework 2.0 ? (C#, DateTime + TimeSpan) Pin
KingLooie2-Sep-09 2:39
KingLooie2-Sep-09 2:39 
QuestionRunning Blackberry Application........Problem Pin
shaina223131-Aug-09 21:44
shaina223131-Aug-09 21:44 
QuestionIni file handling Pin
Sunshine Always28-Aug-09 2:38
Sunshine Always28-Aug-09 2:38 
AnswerRe: Ini file handling Pin
slumberparty7-Sep-09 20:25
slumberparty7-Sep-09 20:25 
GeneralRe: Ini file handling Pin
Sunshine Always21-Sep-09 0:53
Sunshine Always21-Sep-09 0:53 
QuestionHow to get the IMEI number of pocket PC windows Mobile Phone using VC++ Pin
programmer8127-Aug-09 19:16
programmer8127-Aug-09 19:16 

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.