Qt 4.8
platformdefs.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
4 ** Contact: http://www.qt-project.org/legal
5 **
6 ** This file is part of the plugins of the Qt Toolkit.
7 **
8 ** $QT_BEGIN_LICENSE:LGPL$
9 ** Commercial License Usage
10 ** Licensees holding valid commercial Qt licenses may use this file in
11 ** accordance with the commercial license agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia. For licensing terms and
14 ** conditions see http://qt.digia.com/licensing. For further information
15 ** use the contact form at http://qt.digia.com/contact-us.
16 **
17 ** GNU Lesser General Public License Usage
18 ** Alternatively, this file may be used under the terms of the GNU Lesser
19 ** General Public License version 2.1 as published by the Free Software
20 ** Foundation and appearing in the file LICENSE.LGPL included in the
21 ** packaging of this file. Please review the following information to
22 ** ensure the GNU Lesser General Public License version 2.1 requirements
23 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 **
25 ** In addition, as a special exception, Digia gives you certain additional
26 ** rights. These rights are described in the Digia Qt LGPL Exception
27 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28 **
29 ** GNU General Public License Usage
30 ** Alternatively, this file may be used under the terms of the GNU
31 ** General Public License version 3.0 as published by the Free Software
32 ** Foundation and appearing in the file LICENSE.GPL included in the
33 ** packaging of this file. Please review the following information to
34 ** ensure the GNU General Public License version 3.0 requirements will be
35 ** met: http://www.gnu.org/copyleft/gpl.html.
36 **
37 **
38 ** $QT_END_LICENSE$
39 **
40 ****************************************************************************/
41 
42 #ifndef PLATFORMDEFS_H
43 #define PLATFORMDEFS_H
44 
45 #include <wtypes.h>
46 #undef interface
47 
48 //proper header is wlanapi.h, but that is not included in windows XP
49 
50 #define WLAN_MAX_NAME_LENGTH 256
51 #define WLAN_MAX_PHY_TYPE_NUMBER 8
52 #define WLAN_NOTIFICATION_SOURCE_ACM 0x00000008
53 #define WLAN_NOTIFICATION_SOURCE_ALL 0x0000ffff
54 #define WLAN_AVAILABLE_NETWORK_CONNECTED 1
55 #define WLAN_AVAILABLE_NETWORK_HAS_PROFILE 2
56 #define DOT11_SSID_MAX_LENGTH 32
57 
59 
64  DWORD dwDataSize;
65  PVOID pData;
66 };
67 
77 };
78 
81  WCHAR strInterfaceDescription[WLAN_MAX_NAME_LENGTH];
83 };
84 
87  DWORD dwIndex;
88  WLAN_INTERFACE_INFO InterfaceInfo[1];
89 };
90 
91 struct DOT11_SSID {
92  ULONG uSSIDLength;
93  UCHAR ucSSID[DOT11_SSID_MAX_LENGTH];
94 };
95 
97  UCHAR Type;
98  UCHAR Revision;
99  USHORT Size;
100 };
101 
102 typedef UCHAR DOT11_MAC_ADDRESS[6];
107  DOT11_MAC_ADDRESS BSSIDs[1];
108 };
109 
114 };
115 
128 };
129 
140 };
141 
153 };
154 
156  WCHAR strProfileName[WLAN_MAX_NAME_LENGTH];
169  DWORD dwFlags;
170  DWORD dwReserved;
171 };
172 
175  DWORD dwIndex;
177 };
178 
204 };
205 
211 };
212 
220 };
221 
224  LPCWSTR strProfile;
228  DWORD dwFlags;
229 };
230 
232  DWORD dwDataSize;
233  BYTE DataBlob[1];
234 };
235 
261 };
262 
270  ULONG ulRxRate;
271  ULONG ulTxRate;
272 };
273 
279 };
280 
284  WCHAR strProfileName[WLAN_MAX_NAME_LENGTH];
287 };
288 
289 typedef void (WINAPI *WLAN_NOTIFICATION_CALLBACK)(WLAN_NOTIFICATION_DATA *, PVOID);
290 
291 typedef DWORD (WINAPI *WlanOpenHandleProto)
292  (DWORD dwClientVersion, PVOID pReserved, PDWORD pdwNegotiatedVersion, PHANDLE phClientHandle);
293 typedef DWORD (WINAPI *WlanRegisterNotificationProto)
294  (HANDLE hClientHandle, DWORD dwNotifSource, BOOL bIgnoreDuplicate,
295  WLAN_NOTIFICATION_CALLBACK funcCallback, PVOID pCallbackContext,
296  PVOID pReserved, PDWORD pdwPrevNotifSource);
297 typedef DWORD (WINAPI *WlanEnumInterfacesProto)
298  (HANDLE hClientHandle, PVOID pReserved, WLAN_INTERFACE_INFO_LIST **ppInterfaceList);
299 typedef DWORD (WINAPI *WlanGetAvailableNetworkListProto)
300  (HANDLE hClientHandle, const GUID* pInterfaceGuid, DWORD dwFlags, PVOID pReserved,
301  WLAN_AVAILABLE_NETWORK_LIST **ppAvailableNetworkList);
302 typedef DWORD (WINAPI *WlanQueryInterfaceProto)
303  (HANDLE hClientHandle, const GUID *pInterfaceGuid, WLAN_INTF_OPCODE OpCode, PVOID pReserved,
304  PDWORD pdwDataSize, PVOID *ppData, WLAN_OPCODE_VALUE_TYPE *pWlanOpcodeValueType);
305 typedef DWORD (WINAPI *WlanConnectProto)
306  (HANDLE hClientHandle, const GUID *pInterfaceGuid,
307  const WLAN_CONNECTION_PARAMETERS *pConnectionParameters, PVOID pReserved);
308 typedef DWORD (WINAPI *WlanDisconnectProto)
309  (HANDLE hClientHandle, const GUID *pInterfaceGuid, PVOID pReserved);
310 typedef DWORD (WINAPI *WlanScanProto)
311  (HANDLE hClientHandle, const GUID *pInterfaceGuid, const DOT11_SSID *pDot11Ssid,
312  const WLAN_RAW_DATA *pIeData, PVOID pReserved);
313 typedef VOID (WINAPI *WlanFreeMemoryProto)(PVOID pMemory);
314 typedef DWORD (WINAPI *WlanCloseHandleProto)(HANDLE hClientHandle, PVOID pReserved);
315 
326 
328 
329 #endif // PLATFORMDEFS_H
DOT11_CIPHER_ALGORITHM dot11CipherAlgorithm
Definition: platformdefs.h:278
DOT11_BSS_TYPE dot11BssType
Definition: platformdefs.h:158
DOT11_BSS_TYPE dot11BssType
Definition: platformdefs.h:227
DOT11_AUTH_ALGORITHM dot11DefaultAuthAlgorithm
Definition: platformdefs.h:167
#define QT_END_NAMESPACE
This macro expands to.
Definition: qglobal.h:90
DOT11_BSSID_LIST * pDesiredBssidList
Definition: platformdefs.h:226
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
#define BYTE
DOT11_PHY_TYPE
Definition: platformdefs.h:116
Definition: quuid.h:52
WLAN_CONNECTION_MODE wlanConnectionMode
Definition: platformdefs.h:223
UCHAR DOT11_MAC_ADDRESS[6]
Definition: platformdefs.h:102
WlanConnectProto local_WlanConnect
WLAN_OPCODE_VALUE_TYPE
Definition: platformdefs.h:206
DOT11_MAC_ADDRESS dot11Bssid
Definition: platformdefs.h:266
ULONG uTotalNumOfEntries
Definition: platformdefs.h:106
DWORD(WINAPI * WlanCloseHandleProto)(HANDLE hClientHandle, PVOID pReserved)
Definition: platformdefs.h:314
VOID(WINAPI * WlanFreeMemoryProto)(PVOID pMemory)
Definition: platformdefs.h:313
WLAN_CONNECTION_MODE
Definition: platformdefs.h:213
DWORD(WINAPI * WlanOpenHandleProto)(DWORD dwClientVersion, PVOID pReserved, PDWORD pdwNegotiatedVersion, PHANDLE phClientHandle)
Definition: platformdefs.h:292
WLAN_ASSOCIATION_ATTRIBUTES wlanAssociationAttributes
Definition: platformdefs.h:285
WlanOpenHandleProto local_WlanOpenHandle
NDIS_OBJECT_HEADER Header
Definition: platformdefs.h:104
void(WINAPI * WLAN_NOTIFICATION_CALLBACK)(WLAN_NOTIFICATION_DATA *, PVOID)
Definition: platformdefs.h:289
WlanGetAvailableNetworkListProto local_WlanGetAvailableNetworkList
DOT11_AUTH_ALGORITHM
Definition: platformdefs.h:130
DWORD(WINAPI * WlanConnectProto)(HANDLE hClientHandle, const GUID *pInterfaceGuid, const WLAN_CONNECTION_PARAMETERS *pConnectionParameters, PVOID pReserved)
Definition: platformdefs.h:306
#define QT_BEGIN_NAMESPACE
This macro expands to.
Definition: qglobal.h:89
WLAN_SECURITY_ATTRIBUTES wlanSecurityAttributes
Definition: platformdefs.h:286
WLAN_CONNECTION_MODE wlanConnectionMode
Definition: platformdefs.h:283
#define DOT11_SSID_MAX_LENGTH
Definition: platformdefs.h:56
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
void * HANDLE
Definition: qnamespace.h:1671
WLAN_NOTIFICATION_ACM
Definition: platformdefs.h:236
DOT11_BSS_TYPE
Definition: platformdefs.h:110
WlanDisconnectProto local_WlanDisconnect
WlanEnumInterfacesProto local_WlanEnumInterfaces
DOT11_CIPHER_ALGORITHM dot11DefaultCipherAlgorithm
Definition: platformdefs.h:168
DWORD(WINAPI * WlanEnumInterfacesProto)(HANDLE hClientHandle, PVOID pReserved, WLAN_INTERFACE_INFO_LIST **ppInterfaceList)
Definition: platformdefs.h:298
DOT11_AUTH_ALGORITHM dot11AuthAlgorithm
Definition: platformdefs.h:277
WLAN_INTERFACE_STATE isState
Definition: platformdefs.h:282
WLAN_INTF_OPCODE
Definition: platformdefs.h:179
WlanRegisterNotificationProto local_WlanRegisterNotification
ULONG uSSIDLength
Definition: platformdefs.h:92
#define WLAN_MAX_PHY_TYPE_NUMBER
Definition: platformdefs.h:51
WLAN_INTERFACE_STATE isState
Definition: platformdefs.h:82
DWORD(WINAPI * WlanScanProto)(HANDLE hClientHandle, const GUID *pInterfaceGuid, const DOT11_SSID *pDot11Ssid, const WLAN_RAW_DATA *pIeData, PVOID pReserved)
Definition: platformdefs.h:311
WLAN_INTERFACE_STATE
Definition: platformdefs.h:68
WlanQueryInterfaceProto local_WlanQueryInterface
#define WLAN_MAX_NAME_LENGTH
Definition: platformdefs.h:50
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
DOT11_CIPHER_ALGORITHM
Definition: platformdefs.h:142
WlanCloseHandleProto local_WlanCloseHandle