Programming—Chapter 7
283700Series Color Mobile Computer User’sManual
RemoveWep()
Call this function with a key index of 0–3 to remove the WEP key at that
index.
Syntax UINT RemoveWep( ULONG );
Parameters ULONGvalue th ats pecifies the key indexto set. Valid values are 0–3.
Return Values ERROR_SUCCESS when successful, ERR_QUERY_FAILED when th e query failed, or
ERR_CONNECT_FAILED if a connection with t he radio failed.
Remarks Ondisassociation with all BSSIDs of the current service set, WEPkey is removed by the adapter.
Definitions #ifdef DYNAMIC_LOADING
typedef UINT (*PFN_RemoveWEP)(ULONG);
#else
UINT RemoveWEP(ULONG);
#endif
Helper FunctionsConfigureProfile()
If using the Intermec 802.11 Profile Management system, you can pro-
gram the API toconfigure the radio to a specific profile by passing the
profile name.
Syntax UINT ConfigureProfile( TCHAR * );
Parameters Pointer to a character array that contains the profilename. This should be null-terminated.
Return Values ERROR_SUCCESS when successful, ERR_QUERY_FAILED when th e query failed, or
ERR_CONNECT_FAILED if a connection with t he radio failed.
Remarks Callthis function with a pointer to a null-terminated TCHAR array that contains the name of the
profileyou wish to configure. This function reads profile data from the profile manager, sets that
profileas the default active profile, and configures the radio appropriately.
If needed, the supplicant and any other related services are automatically started and stopped.
Definitions #ifdef DYNAMIC_LOADING
typedef UINT (*PFN_ConfigureProfile)(TCHAR *);
#else
UINT ConfigureProfile(TCHAR *);
#endif