Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > How to use WZCSetInterface API to connect to an access point
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 4th July 21:07
arsalan ahmad
External User
 
Posts: 1
Default How to use WZCSetInterface API to connect to an access point


Hi,

I am writing an application for WinCE 5.0. I want to connect to different
wireless access point using my application and for this I am using
WZCSetInterface(). Right now what I am doing is that I delelte the preffered
list of networks at the time of start of my application as follows:

DeletePrefferedList()
{
DWORD dwInFlags = 0;

INTF_ENTRY Intf;

memset(&Intf, 0x00, sizeof(INTF_ENTRY));

Intf.wszGuid = adapter_name;

DWORD status = m_WZCSetInterface(NULL, INTF_PREFLIST, &Intf, &dwInFlags);

return status;

}

After this every time I want to connect to an access point, I create a new
list of access points having only one AP to which I want to connect and set
the preffered list of networks then.

Now the problem is that my applicaiton hangs most of the time when I try to
connect to an access point. Could any one please tell me is there any other
way to do so. I also want to tell you that I am loading WZC dll at runtime
and then I am using and then I get addresses of the WZC APIs from it using
GetProcAddress() and then I call those APIs.

Thanks,

Arsalan
  Reply With Quote


  sponsored links


2 4th July 21:07
paul g. tobey [emvp]
External User
 
Posts: 1
Default How to use WZCSetInterface API to connect to an access point


First, why? Why not just let the WZC stuff in Windows CE do its job?

If you insist that you have to take over, read the code for the WZCTool
sample found in Platform Builder. You can download the PB evaluation copy
from http://www.microsoft.com/downloads (probably by searching on ""windows ce"
evaluation platform builder" or something like that). You'll find WZCTool
in the installed path at
\wince500\public\common\oak\drivers\netsamp\wzctoo l.

Paul T.
  Reply With Quote
3 4th July 21:07
arsalan ahmad
External User
 
Posts: 1
Default How to use WZCSetInterface API to connect to an access point


Thanks,

Yah I have check WZCTool Sample and what it does that it just add your entry
to WZC preferred list of networks if it is not already present but this I
dont want. I want to connect to the access point.

Thanks,

Arsalan

"Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
  Reply With Quote
4 4th July 21:07
paul g. tobey [emvp]
External User
 
Posts: 1
Default How to use WZCSetInterface API to connect to an access point


It sure looks to me like the Set operation with WZCTool calls
WZCSetInterface(). If the SSID is known, at that point, that should
establish the connection. There's no other do***entation to find another
way to make things happen so one of the operations in WZCTool or a
combination of several would be the list of things that you can do.

Paul T.
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666