Important  The Native 802.11 Wireless LAN interface is deprecated in Windows 10 and later. Please use the WLAN Device Driver Interface (WDI) instead. For more information about WDI, see WLAN Universal Windows driver model.
The IHV Extensions DLL calls the Dot11ExtQueryVirtualStationProperties function to query the properties of a virtual 802.11 station.


DOT11EXT_QUERY_VIRTUAL_STATION_PROPERTIES Dot11extQueryVirtualStationProperties;

DWORD Dot11extQueryVirtualStationProperties(
  HANDLE hDot11SvcHandle,
  BOOL *pbIsVirtualStation,
  GUID *pgPrimary,
  LPVOID pvReserved



A handle used by the operating system to reference the primary physical wireless LAN (WLAN) adapter. This handle value was received as the hDot11SvcHandle parameter through a previous call to the Dot11ExtIhvInitAdapter IHV Handler function.


A pointer to a Boolean value that indicates whether the primary physical WLAN adapter pointed to by the hDot11SvcHandle parameter is a virtual station adapter or not. If the value is TRUE, the queried adapter is a virtual station, otherwise it is not a virtual station.


A pointer to a GUID value that identifies the primary physical WLAN adapter that hosts a virtual station. This parameter is valid only if pbIsVirtualStation points to a value that is TRUE.


This parameter is reserved for use by the operating system and should be NULL.

Return Value

If the call succeeds, the function returns ERROR_SUCCESS. Otherwise, it returns an error code defined in Winerror.h.


Minimum supported client Available in Windows 7 and later versions of the Windows operating systems.
Target Platform Desktop
Header wlanihv.h (include Wlanihv.h)

See Also