IDot11AdHocInterface::GetIEnumDot11AdHocNetworks method (adhoc.h)

Gets the collection of networks associated with this NIC.

Syntax

HRESULT GetIEnumDot11AdHocNetworks(
  GUID                    *pFilterGuid,
  IEnumDot11AdHocNetworks **ppEnum
);

Parameters

pFilterGuid

An optional parameter that specifies the GUID of the application that created the network. An application can use this identifier to limit the networks enumerated to networks created by the application. For this filtering to work correctly, all instances of the application on all machines must use the same GUID.

ppEnum

A pointer to a IEnumDot11AdHocNetworks interface that contains the enumerated networks.

Return value

Possible return values include, but are not limited to, the following.

Return code Description
S_OK
The method completed successfully.
E_FAIL
The method failed.
E_INVALIDARG
One of the parameters is invalid.
E_OUTOFMEMORY
The method could not allocate the memory required to perform this operation.
E_POINTER
A pointer passed as a parameter is not valid.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header adhoc.h

See also

IDot11AdHocInterface