ProgrammingChapter —7
268 700Series Color MobileComputer User’s Manual
Basic Connect/Disconnect Functions
Below are functions available for the 700 Color Computer when enab led
with the 802.11b or 802.11b/g radio module.

RadioConnect()

Connects to the available radio. Use this function if you plan on usi ng a
lot of API calls that talk directly to the radio. Note that the 802.11b or
802.11b/g radio must be enabled via NDISTRAY before you can connect
to it.
Syntax UINT RadioConnect( );
Parameters None.
Return Values ERROR_SUCCESSwhen successful, otherwise
ERR_CONNECT_FAILED
Remarks Call this function before you call any oth er function found within
this API. It hunts out and connects to the 802.11b or 802.11b/g
radioavailable on the system. Check extended error codes if it re-
turns anything else forinformation.
Definitions #ifdef DYNAMIC_LOADING
typedef UINT (*PFN_RadioConnect)();
#else
UINT RadioConnect();
#endif

RadioDisconnect()

Call this function when done using the 802.11 API to clean up a
connection from a previous RadioConnect() call. If you do not call this
function, you may leave memory allocated.
Syntax UINT RadioDisconnect( );
Parameters None.
Return Values ERROR_SUCCESSwhen successful, otherwise
ERR_CONNECT_FAILED.
Remarks None.
Definitions #ifdef DYNAMIC_LOADING
typedef UINT (*PFN_RadioDisconnect)();
#else
UINT RadioDisconnect();
#endif