IDot11AdHocNetwork interface (adhoc.h)

The IDot11AdHocNetwork interface represents an available ad hoc network destination within connection range. Before an application can connect to a network, the network must have been created using IDot11AdHocManager::CreateNetwork and committed using IDot11AdHocManager::CommitCreatedNetwork.

Note  Ad hoc mode might not be available in future versions of Windows. Starting with Windows 8.1 and Windows Server 2012 R2, use Wi-Fi Direct instead.
 

Inheritance

The IDot11AdHocNetwork interface inherits from the IUnknown interface. IDot11AdHocNetwork also has these types of members:

Methods

The IDot11AdHocNetwork interface has these methods.

 
IDot11AdHocNetwork::Connect

Connects to a previously created wireless ad hoc network.
IDot11AdHocNetwork::DeleteProfile

Deletes any profile associated with the network.
IDot11AdHocNetwork::Disconnect

Disconnects from an ad hoc network.
IDot11AdHocNetwork::GetContextGuid

Gets the context identifier associated with the network.
IDot11AdHocNetwork::GetInterface

Gets the interface associated with a network.
IDot11AdHocNetwork::GetProfileName

Gets the profile name associated with the network.
IDot11AdHocNetwork::GetSecuritySetting

Gets the security settings for the network.
IDot11AdHocNetwork::GetSignalQuality

Gets the signal quality values associated with the network's radio.
IDot11AdHocNetwork::GetSignature

Gets the unique signature associated with the ad hoc network.
IDot11AdHocNetwork::GetSSID

Gets the SSID of the network.
IDot11AdHocNetwork::GetStatus

Gets the connection status of the network.
IDot11AdHocNetwork::HasProfile

Returns a boolean value that specifies whether there is a saved profile associated with the network.

Requirements

Requirement Value
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

IDot11AdHocManager