1. Adding a WLAN network (using WZCSetInterface API?)
I'm using the WZC API to add a preferred network and I'm getting some strange behavior so I think I'm doing something wrong. Here's how I'm doing it now. I start by calling WZCQueryInterface for my adapter to get the INTF_ENTRY struct. Then I build a new list of networks (WZC_802_11_CONFIG_LIST) based on the old one but with my new network added. I updated the pointer in my INTF_ENTRY to point to my new WZC_802_11_CONFIG_LIST. Finally I write the updated INTF_ENTRY back to WZC using WZCSetInterface. Is there a better way to add a new network? I guess my main uncertainty about this method is memory allocation, and when to call WZCDeleteIntfObj.
2. Setting WZC Preferred Config List with API call - Pocket PC Networking
First of all, I am aware of the fact that the WZC API has changed in XP
SP2 and that there is no official MS documentation on the subject (at
least for XP).
I did find out that INTF_ENTRY has changed and after some testing I
found what the new struct looks like:
public struct INTF_ENTRY
{
private IntPtr wszGuid;
private IntPtr wszDescr;
private int nExtra1; // new in SP2
private uint ulMediaState;
private uint ulMediaType;
private uint ulPhysicalMediaType;
private int nInfraMode;
private int nAuthMode;
private int nWepStatus;
private uint dwCtlFlags;
private int nExtra2; // new in SP2
private uint dwCapabilities;
private RAW_DATA rdSSID;
private RAW_DATA rdBSSID;
private RAW_DATA rdBSSIDList;
private RAW_DATA rdStSSIDList;
private RAW_DATA rdCtrlData;
private int bInitialized;
}
With this struct I'm able to get the current accesspoint information
using the WZCQueryInterface function.
But it seems that the WZCSetInterface does not work. I created a new
NDIS_WLAN_BSSID object with the approriate SSID, WEP key, etc. Then I
put the data of this object in the rdStSSIDList object and call the
WZCSetInterface function with this INTF_ENTRY.
On the screen I do get a popup in the system tray saying that it was
unable to connect to that SSID.
I don't get any errorcode returned from WZCSetInterface, so it does
seem to work properly, but it isn't able to connect to the network (and
I know it should do, because if I do it manually it does connect).
Anyone has an idea what I might have missed?
4. STOPPING WZCSVC with WZCSetInterface
5. WZCSetInterface under XP: setting the 802.1x authentication
6. WZCSetInterface error 2 semantics - Pocketpc Developer
Hi,
Coud anyone please tell me how can I use WZCSetInterface() function to add a
network access point that uses certificates for authentication (EAP). I know
that this function uses INTF_ENTRY structure pointer. This structure
contains WZC_WLAN_CONFIG structure variable also which has a variable used
for 802.11x parameters. This variable is:
WZC_EAPOL_PARAMS EapolParams; // 802.1x parameters
and this strucrure is defined as follows:
typedef struct _WZC_EAPOL_PARAMS
{
BOOL bEnable8021x;
DWORD dwEapFlags;
DWORD dwEapType;
DWORD dwAuthDataLen;
BYTE *pbAuthData; // Pointer to provider specific config blob
} WZC_EAPOL_PARAMS, *PWZC_EAPOL_PARAMS;
Could anyone please explain what does this pbAuthData contains in case of
EAP-TLS or EAP-PEAP or EAP-MD5.
Thanks,
Arsalan
8. WCE 5.2 WEP WZCSetInterface() and DHCP addr - Pocketpc Developer