IWCNDevice::GetNetworkProfile method (wcndevice.h)

The IWCNDevice::GetNetworkProfile method gets a network profile from the device.

Syntax

HRESULT GetNetworkProfile(
  [in]  DWORD  cchMaxStringLength,
  [out] LPWSTR wszProfile
);

Parameters

[in] cchMaxStringLength

The allocated size, in characters, of wszProfile.

[out] wszProfile

A string that specifies the XML WLAN network profile type.

Return value

This method can return one of these values.

Return code Description
S_OK
The network profile was successfully retrieved.

Remarks

This function can only be called after IWCNDevice::Connect has been called, and the session has completed successfully.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header wcndevice.h

See also

IWCNDevice

IWCNDevice::Connect