Author: cwittich
Date: Mon Mar 2 19:27:45 2015
New Revision: 66547
URL:
http://svn.reactos.org/svn/reactos?rev=66547&view=rev
Log:
[WLANAPI]
add stubs for WlanQueryInterface and WlanGetInterfaceCapability
Modified:
trunk/reactos/dll/win32/wlanapi/main.c
trunk/reactos/dll/win32/wlanapi/wlanapi.spec
trunk/reactos/include/psdk/wlanapi.h
Modified: trunk/reactos/dll/win32/wlanapi/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wlanapi/main.c?r…
==============================================================================
--- trunk/reactos/dll/win32/wlanapi/main.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/wlanapi/main.c [iso-8859-1] Mon Mar 2 19:27:45 2015
@@ -250,6 +250,37 @@
return dwError;
}
+DWORD
+WINAPI
+WlanQueryInterface(IN HANDLE hClientHandle,
+ IN const GUID *pInterfaceGuid,
+ IN WLAN_INTF_OPCODE OpCode,
+ PVOID pReserved,
+ OUT PDWORD pdwDataSize,
+ OUT PVOID *ppData,
+ WLAN_OPCODE_VALUE_TYPE *pWlanOpcodeValueType)
+{
+ if ((pReserved != NULL) || (pInterfaceGuid == NULL) || (hClientHandle == NULL) ||
(pdwDataSize == NULL) || (ppData == NULL))
+ return ERROR_INVALID_PARAMETER;
+
+ UNIMPLEMENTED;
+ return ERROR_SUCCESS;
+}
+
+DWORD
+WINAPI
+WlanGetInterfaceCapability(IN HANDLE hClientHandle,
+ IN const GUID *pInterfaceGuid,
+ PVOID pReserved,
+ OUT PWLAN_INTERFACE_CAPABILITY *ppCapability)
+{
+ if ((pReserved != NULL) || (pInterfaceGuid == NULL) || (hClientHandle == NULL) ||
(ppCapability == NULL))
+ return ERROR_INVALID_PARAMETER;
+
+ UNIMPLEMENTED;
+ return ERROR_SUCCESS;
+}
+
void __RPC_FAR * __RPC_USER
midl_user_allocate(SIZE_T len)
{
Modified: trunk/reactos/dll/win32/wlanapi/wlanapi.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wlanapi/wlanapi.…
==============================================================================
--- trunk/reactos/dll/win32/wlanapi/wlanapi.spec [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/wlanapi/wlanapi.spec [iso-8859-1] Mon Mar 2 19:27:45 2015
@@ -8,7 +8,7 @@
@ stdcall WlanFreeMemory (ptr)
@ stub WlanGetAvailableNetworkList
@ stub WlanGetFilterList
-@ stub WlanGetInterfaceCapability
+@ stdcall WlanGetInterfaceCapability (ptr ptr ptr ptr)
@ stub WlanGetNetworkBssList
@ stdcall WlanGetProfile (ptr ptr ptr ptr ptr long ptr)
@ stdcall WlanGetProfileCustomUserData (ptr ptr ptr ptr ptr ptr)
@@ -17,7 +17,7 @@
@ stub WlanIhvControl
@ stdcall WlanOpenHandle (long ptr ptr ptr)
@ stub WlanQueryAutoConfigParameter
-@ stub WlanQueryInterface
+@ stdcall WlanQueryInterface (ptr ptr ptr ptr ptr ptr ptr)
@ stub WlanReasonCodeToString
@ stub WlanRegisterNotification
@ stdcall WlanRenameProfile (ptr ptr ptr ptr ptr)
Modified: trunk/reactos/include/psdk/wlanapi.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/wlanapi.h?rev…
==============================================================================
--- trunk/reactos/include/psdk/wlanapi.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/wlanapi.h [iso-8859-1] Mon Mar 2 19:27:45 2015
@@ -24,7 +24,7 @@
wlan_opcode_value_type_set_by_group_policy,
wlan_opcode_value_type_set_by_user,
wlan_opcode_value_type_invalid
-} WLAN_OPCODE_VALUE_TYPE;
+} WLAN_OPCODE_VALUE_TYPE; /* HACK: WIDL is broken , *PWLAN_OPCODE_VALUE_TYPE; */
typedef enum _WLAN_SECURABLE_OBJECT {
wlan_secure_permit_list = 0,
@@ -51,6 +51,39 @@
wlan_connection_mode_auto,
wlan_connection_mode_invalid
} WLAN_CONNECTION_MODE, *PWLAN_CONNECTION_MODE;
+
+#if defined(__midl) || defined(__WIDL__)
+typedef [v1_enum] enum _WLAN_INTF_OPCODE {
+#else
+typedef enum _WLAN_INTF_OPCODE {
+#endif
+ wlan_intf_opcode_autoconf_start = 0x000000000,
+ wlan_intf_opcode_autoconf_enabled,
+ wlan_intf_opcode_background_scan_enabled,
+ wlan_intf_opcode_media_streaming_mode,
+ wlan_intf_opcode_radio_state,
+ wlan_intf_opcode_bss_type,
+ wlan_intf_opcode_interface_state,
+ wlan_intf_opcode_current_connection,
+ wlan_intf_opcode_channel_number,
+ wlan_intf_opcode_supported_infrastructure_auth_cipher_pairs,
+ wlan_intf_opcode_supported_adhoc_auth_cipher_pairs,
+ wlan_intf_opcode_supported_country_or_region_string_list,
+ wlan_intf_opcode_current_operation_mode,
+ wlan_intf_opcode_supported_safe_mode,
+ wlan_intf_opcode_certified_safe_mode,
+ wlan_intf_opcode_hosted_network_capable,
+ wlan_intf_opcode_management_frame_protection_capable,
+ wlan_intf_opcode_autoconf_end = 0x0fffffff,
+ wlan_intf_opcode_msm_start = 0x10000100,
+ wlan_intf_opcode_statistics,
+ wlan_intf_opcode_rssi,
+ wlan_intf_opcode_msm_end = 0x1fffffff,
+ wlan_intf_opcode_security_start = 0x20010000,
+ wlan_intf_opcode_security_end = 0x2fffffff,
+ wlan_intf_opcode_ihv_start = 0x30000000,
+ wlan_intf_opcode_ihv_end = 0x3fffffff
+} WLAN_INTF_OPCODE; /* HACK: WIDL is broken , *PWLAN_INTF_OPCODE; */
#if defined(__midl) || defined(__WIDL__)
typedef [v1_enum] enum _WLAN_INTERFACE_STATE {
@@ -193,16 +226,18 @@
DWORD WINAPI WlanConnect(IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN const
PWLAN_CONNECTION_PARAMETERS pConnectionParameters, PVOID pReserved);
DWORD WINAPI WlanDisconnect(IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, PVOID
pReserved);
DWORD WINAPI WlanEnumInterfaces(IN HANDLE hClientHandle, PVOID pReserved, OUT
PWLAN_INTERFACE_INFO_LIST *ppInterfaceList);
+DWORD WINAPI WlanGetInterfaceCapability(IN HANDLE hClientHandle, IN const GUID
*pInterfaceGuid, PVOID pReserved, OUT PWLAN_INTERFACE_CAPABILITY *ppCapability);
DWORD WINAPI WlanScan(IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN
PDOT11_SSID pDot11Ssid, IN PWLAN_RAW_DATA pIeData, PVOID pReserved);
DWORD WINAPI WlanDeleteProfile(IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN
LPCWSTR strProfileName, PVOID pReserved);
DWORD WINAPI WlanGetProfile(IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN
LPCWSTR strProfileName, PVOID pReserved, OUT LPWSTR *pstrProfileXml, DWORD *pdwFlags,
PDWORD pdwGrantedAccess);
DWORD WINAPI WlanGetProfileCustomUserData(IN HANDLE hClientHandle, IN const GUID
*pInterfaceGuid, IN LPCWSTR strProfileName, PVOID pReserved, OUT DWORD *pdwDataSize, OUT
PBYTE *ppData);
DWORD WINAPI WlanGetProfileList(IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid,
PVOID pReserved, OUT PWLAN_PROFILE_INFO_LIST *ppProfileList);
+DWORD WINAPI WlanQueryInterface(IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid,
IN WLAN_INTF_OPCODE OpCode, PVOID pReserved, OUT PDWORD pdwDataSize, OUT PVOID *ppData,
WLAN_OPCODE_VALUE_TYPE *pWlanOpcodeValueType);
+DWORD WINAPI WlanRenameProfile(IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN
LPCWSTR strOldProfileName, IN LPCWSTR strNewProfileName, PVOID pReserved);
DWORD WINAPI WlanSetProfile(IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN
DWORD dwFlags, IN LPCWSTR strProfileXml, LPCWSTR strAllUserProfileSecurity, IN BOOL
bOverwrite, PVOID pReserved, OUT DWORD *pdwReasonCode);
DWORD WINAPI WlanSetProfileCustomUserData(IN HANDLE hClientHandle, IN const GUID
*pInterfaceGuid, IN LPCWSTR strProfileName, IN DWORD dwDataSize, IN const PBYTE pData,
PVOID pReserved);
DWORD WINAPI WlanSetProfileEapUserData(IN HANDLE hClientHandle, IN const GUID
*pInterfaceGuid, IN LPCWSTR strProfileName, IN EAP_METHOD_TYPE eapType, IN DWORD dwFlags,
IN DWORD dwEapUserDataSize, IN const LPBYTE pbEapUserData, PVOID pReserved);
DWORD WINAPI WlanSetProfileList(IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid,
DWORD dwItems, IN LPCWSTR *strProfileNames, PVOID pReserved);
-DWORD WINAPI WlanRenameProfile(IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN
LPCWSTR strOldProfileName, IN LPCWSTR strNewProfileName, PVOID pReserved);
#endif
#ifdef __cplusplus