TwclNetworkListManager.GetNetworks(TwclNlmEnumNetwork,TwclNlmNetworks) Method
Retrieves the list of networks available on the local machine.
public function GetNetworks(const Flags: TwclNlmEnumNetwork; out Networks: TwclNlmNetworks): Integer;
Parameters
- Flags
- Type: TwclNlmEnumNetwork
The value specifies the flags for the network (specifically, connected or not connected).
- Networks
- Type: TwclNlmNetworks
A dynamic array that receives the TwclNlmNetwork class objects for available networks. An application is responsible to free all the
Networkobjects in the array as well as release the memory allocated for the dynamic array.
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.