Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The GetNetworks method retrieves the list of networks available on the local machine.
Syntax
HRESULT GetNetworks(
[in] NLM_ENUM_NETWORK Flags,
[out] IEnumNetworks **ppEnumNetwork
);
Parameters
[in] Flags
NLM_ENUM_NETWORK enumeration value that specifies the flags for the network (specifically, connected or not connected).
[out] ppEnumNetwork
Pointer to a pointer that receives an IEnumNetworks interface instance that contains the enumerator for the list of available networks.
Return value
Returns S_OK if the method succeeds. Otherwise, the method returns one of the following values.
Return code | Description |
---|---|
|
The pointer passed is NULL. |
|
The GUID is invalid. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | netlistmgr.h |