TwclWiFiClient.EnumAvailableNetworks(TGUID,TwclWiFiAvailableNetworkFilters,TwclWiFiAvailableNetworks) Method

Retrieves the list of available networks on a wireless LAN interface.

Namespace: wclWiFi
public
 function EnumAvailableNetworks(const IfaceId: TGUID;
 const Filters: TwclWiFiAvailableNetworkFilters;
 out Networks: TwclWiFiAvailableNetworks): Integer;

Parameters

IfaceId
Type: TGUID

The Wireless LAN interface's ID to be queried.

Filters
Type: TwclWiFiAvailableNetworkFilters

A set of flags that control the type of networks returned in the list.

Networks
Type: TwclWiFiAvailableNetworks

A dynamic array to receive the returned list of visible networks.

Return Value

Type: Integer

If the function succeed the return value is wclErrors.WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

The caller is responsible to despose the memory allocated for the dynamic array contains the available network list.