Qt 4.8
Classes | Functions
main.cpp File Reference
#include "qnativewifiengine.h"
#include "platformdefs.h"
#include <QtCore/private/qsystemlibrary_p.h>
#include <QtNetwork/private/qbearerplugin_p.h>

Go to the source code of this file.

Classes

class  QNativeWifiEnginePlugin
 

Functions

static void resolveLibrary ()
 

Function Documentation

◆ resolveLibrary()

static void resolveLibrary ( )
static

Definition at line 53 of file main.cpp.

Referenced by QNativeWifiEnginePlugin::create().

54 {
55  static bool triedResolve = false;
56  if (!triedResolve) {
57  QSystemLibrary wlanapi(QLatin1String("wlanapi"));
58  if (wlanapi.load()) {
60  wlanapi.resolve("WlanOpenHandle");
62  wlanapi.resolve("WlanRegisterNotification");
64  wlanapi.resolve("WlanEnumInterfaces");
66  wlanapi.resolve("WlanGetAvailableNetworkList");
68  wlanapi.resolve("WlanQueryInterface");
70  wlanapi.resolve("WlanConnect");
72  wlanapi.resolve("WlanDisconnect");
74  wlanapi.resolve("WlanScan");
76  wlanapi.resolve("WlanFreeMemory");
78  wlanapi.resolve("WlanCloseHandle");
79  }
80  triedResolve = true;
81  }
82 }
DWORD(WINAPI * WlanQueryInterfaceProto)(HANDLE hClientHandle, const GUID *pInterfaceGuid, WLAN_INTF_OPCODE OpCode, PVOID pReserved, PDWORD pdwDataSize, PVOID *ppData, WLAN_OPCODE_VALUE_TYPE *pWlanOpcodeValueType)
Definition: platformdefs.h:303
WlanConnectProto local_WlanConnect
DWORD(WINAPI * WlanCloseHandleProto)(HANDLE hClientHandle, PVOID pReserved)
Definition: platformdefs.h:314
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
VOID(WINAPI * WlanFreeMemoryProto)(PVOID pMemory)
Definition: platformdefs.h:313
DWORD(WINAPI * WlanOpenHandleProto)(DWORD dwClientVersion, PVOID pReserved, PDWORD pdwNegotiatedVersion, PHANDLE phClientHandle)
Definition: platformdefs.h:292
WlanOpenHandleProto local_WlanOpenHandle
WlanGetAvailableNetworkListProto local_WlanGetAvailableNetworkList
DWORD(WINAPI * WlanConnectProto)(HANDLE hClientHandle, const GUID *pInterfaceGuid, const WLAN_CONNECTION_PARAMETERS *pConnectionParameters, PVOID pReserved)
Definition: platformdefs.h:306
DWORD(WINAPI * WlanGetAvailableNetworkListProto)(HANDLE hClientHandle, const GUID *pInterfaceGuid, DWORD dwFlags, PVOID pReserved, WLAN_AVAILABLE_NETWORK_LIST **ppAvailableNetworkList)
Definition: platformdefs.h:300
WlanScanProto local_WlanScan
WlanFreeMemoryProto local_WlanFreeMemory
WlanDisconnectProto local_WlanDisconnect
WlanEnumInterfacesProto local_WlanEnumInterfaces
DWORD(WINAPI * WlanEnumInterfacesProto)(HANDLE hClientHandle, PVOID pReserved, WLAN_INTERFACE_INFO_LIST **ppInterfaceList)
Definition: platformdefs.h:298
WlanRegisterNotificationProto local_WlanRegisterNotification
DWORD(WINAPI * WlanScanProto)(HANDLE hClientHandle, const GUID *pInterfaceGuid, const DOT11_SSID *pDot11Ssid, const WLAN_RAW_DATA *pIeData, PVOID pReserved)
Definition: platformdefs.h:311
WlanQueryInterfaceProto local_WlanQueryInterface
DWORD(WINAPI * WlanRegisterNotificationProto)(HANDLE hClientHandle, DWORD dwNotifSource, BOOL bIgnoreDuplicate, WLAN_NOTIFICATION_CALLBACK funcCallback, PVOID pCallbackContext, PVOID pReserved, PDWORD pdwPrevNotifSource)
Definition: platformdefs.h:294
DWORD(WINAPI * WlanDisconnectProto)(HANDLE hClientHandle, const GUID *pInterfaceGuid, PVOID pReserved)
Definition: platformdefs.h:309
WlanCloseHandleProto local_WlanCloseHandle