native WiFi API on Windows XP embedded SP2.

R

Raymond Rogers

I'm trying to use the native WiFi API on a Windows XP embedded system
and I'm not having a lot of luck. I have a test application that works
on my desktop/development system. The same application fails when I
call the WlanSetProfile() function with a return code of 3, and the
reason code is 0. The WlanEnumInterfaces() and
WlanGetAvailableNetworkList() functions work on both platforms. I don't
know if the WlanGetProfileList() or WlanGetProfile() functions work on
XPe because I can't set a profile. I'm assuming that I'm missing some
component from my XPe image, but I have no clue what. I have not been
able to find anything that tells me what this API depends on.

I have also tried the WPS API and it does not work either.

I know that the network interface is installed and working (at least a
little) because it will automatically connect to an open AP.
 
G

Guest

Wich version of Visual C++ do you use? Do you know not microsoft example on
how to use native Wi-Fi API?
 
A

Arkady Frenkel

Maybe ask that additionally on
microsoft.public.windowsce.platbuilder . obviously embedded XP and CE are
different Oses but modularity of the both system allow to propose that maybe
MSFT guys in charge of that have that knowledge how its done in both

Arkady
 
R

Raymond Rogers

I'm using VS2005. I have code that works on XP pro but fails on XPe. I
have also tried the AutoConfig sample with the same results. If I install
the device drivers and open my access point it will auto connect so I'm
reasonably sure that the card/drivers are all working. I'm just trying to
figure out what components are required for the native WiFi API. Here is a
list of items I have added trying to get this working:

* MSXML 6.0 is required and I have a component to install it.
* Network Provisioning Service, but I'm not sure if it is required.
* Wireless Zero Configuration
* WindowsXP-KB918997-v6-x86-ENU.exe installed.
* VS2005 runtime libraries (vcredist_x86.exe) installed.
* device drivers for my wireless card.

Can anyone tell me what I might be missing from this list.
 
K

KM

Raymond,

Assuming the driver got installed correcly (you can check it out in
setupapi.log) it looks like you got all the components required to get this
working.

Am I right assuming you are running your app under Administrator account?
Otherwise, without proper user group setup, it will fail because of not
enough permission. (By default, only a user who is logged on as a member of
the Administrators group or the Network Configuration Operators group can
use the Native Wifi API).
Just before calling WlanSetProfile you may want to check if you got adequate
permissions though a call to WlanGetSecuritySettings.

Wondering if you tried calling Wireless provisioning service API to create
WiFI profile instead? Something like
IProvisioningProfileWireless::CreateProfile.

As has been mentioned in one post here, the following two components are
also nice to have to get WPS API working:
"Simple Network Management Protocol"
"Network Location Awareness Service"

Also, check if "Primitive: Wzcsvc" got into your image config.


If you are saying it works on XP Pro, did you try launching your app on XPe
image with DependencyWalker (Profile feature) running? If not, you amy want
t\o give it a try. Then you either see missing parts or you can compare it
to the same log captured on XP Pro machine. See if there is any difference
in the way how the API call stack works on both OSes.

Regards,
KM
 
A

Arkady Frenkel

Hi, Raymond !
I'm just trying to figure out what components are required for the native
WiFi API.
That's why I advised you to ask in platformbuilder NG, there the MSFT guys
know all about components :)
Arkady
 
Joined
Jul 29, 2008
Messages
2
Reaction score
0
I received the same error 3 (Path not found), when I had a mismatch with the WLANAPI.DLL file on a system. In my case, I had the SDK version of the DLL on an XP system that had SP3 installed. When I reinstalled SP3, I found the proper wlanapi.dll file in %system%\system32 and I deleted the other versions from the system.
 
Joined
Jul 31, 2008
Messages
1
Reaction score
0
Hi Mardovar,

Could you get this working yet? I have a similar problem but the error code is 5023.

Please let me know if you find anything.

Thanks,

John.
 
Joined
Jul 29, 2008
Messages
2
Reaction score
0
johngummadi said:
Hi Mardovar,

Could you get this working yet? I have a similar problem but the error code is 5023.

Please let me know if you find anything.

Thanks,

John.
I am not sure what more I can say for you. Yes, I have it working. My problem was that I did not have the proper WLANAPI.DLL file on my machine. Winodws XP SP3 should put a new version in %systemroot%\system32 and did so when I reinstalled that SP. I had older copies on the machine from various SDKs and I removed them. Now it works great.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top