The WlanHostedNetworkQueryProperty function queries the current static properties of the wireless Hosted Network.
The identifier for property to be queried. This identifier can be any of the values in the WLAN_HOSTED_NETWORK_OPCODE enumeration defined in the Wlanapi.h header file.
A pointer to a value that specifies the size, in bytes, of the buffer returned in the ppvData parameter, if the call to the WlanHostedNetworkQueryProperty function succeeds.
On input, this parameter must be NULL.
On output, this parameter receives a pointer to a buffer returned with the static property requested, if the call to the WlanHostedNetworkQueryProperty function succeeds. The data type associated with this buffer depends upon the value of OpCode parameter.
A pointer to a value that receives the value type of the wireless Hosted Network property, if the call to the WlanHostedNetworkQueryProperty function succeeds. The returned value is an enumerated type in the WLAN_OPCODE_VALUE_TYPE enumeration defined in the Wlanapi.h header file.
The configuration data for the wireless Hosted Network is unconfigured. This error is returned if the application calls the WlanHostedNetworkQueryProperty function with the OpCode parameter set to wlan_hosted_network_opcode_station_profile or wlan_hosted_network_opcode_connection_settings before a SSID is configured in the wireless Hosted Network.
OpCode is not one of the enumerated values defined in the WLAN_HOSTED_NETWORK_OPCODE.
The WlanHostedNetworkQueryProperty function is an extension to native wireless APIs added to support the wireless Hosted Network on Windows 7 and on Windows Server 2008 R2 with the Wireless LAN Service installed.
A client application calls the WlanHostedNetworkQueryProperty function to query the current static properties of the wireless Hosted Network. This function does not change the state or properties of the wireless Hosted Network.
If the function succeeds, the ppvData parameter points to a buffer that contains the requested property. The size of this buffer is returned in a pointer returned in the pwdDataSizeparameter. The WLAN_OPCODE_VALUE_TYPE is returned in a pointer returned in the pWlanOpcodeValueType parameter. The memory used for the buffer in the ppvData parameter that is returned should be released by calling the WlanFreeMemory function after the buffer is no longer needed.
wlan_hosted_network_opcode_connection_settings A pointer to a WLAN_HOSTED_NETWORK_CONNECTION_SETTINGS structure is returned.
wlan_hosted_network_opcode_security_settings A pointer to a WLAN_HOSTED_NETWORK_SECURITY_SETTINGS structure is returned.
wlan_hosted_network_opcode_station_profile A PWSTR to contains an XML WLAN profile for connecting to the wireless Hosted Network is returned.
wlan_hosted_network_opcode_enable A PBOOL that indicates if wireless Hosted Network is enabled is returned.
Any user can call the WlanHostedNetworkQueryProperty function to query the Hosted Network properties.