Arsalan ahmad 2012-07-04 20:07:19
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:
DWORD dwInFlags = 0;
memset(&Intf, 0x00, sizeof(INTF_ENTRY));
Intf.wszGuid = adapter_name;
DWORD status = m_WZCSetInterface(NULL, INTF_PREFLIST, &Intf, &dwInFlags);
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.
Paul g. tobey 2012-07-04 20:07:29
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 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
Arsalan ahmad 2012-07-04 20:07:31
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.
“Paul G. Tobey [eMVP]”
Paul g. tobey 2012-07-04 20:07:32
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 documentation 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.