Author: cwittich
Date: Tue Mar 3 11:43:24 2015
New Revision: 66553
URL:
http://svn.reactos.org/svn/reactos?rev=66553&view=rev
Log:
[WLANAPI]
add stubs for WlanReasonCodeToString, WlanIhvControl, WlanSetSecuritySettings and
WlanGetAvailableNetworkList
Modified:
trunk/reactos/base/services/wlansvc/rpcserver.c
trunk/reactos/dll/win32/wlanapi/main.c
trunk/reactos/dll/win32/wlanapi/wlanapi.spec
trunk/reactos/include/psdk/wlanapi.h
Modified: trunk/reactos/base/services/wlansvc/rpcserver.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/wlansvc/rpcs…
==============================================================================
--- trunk/reactos/base/services/wlansvc/rpcserver.c [iso-8859-1] (original)
+++ trunk/reactos/base/services/wlansvc/rpcserver.c [iso-8859-1] Tue Mar 3 11:43:24 2015
@@ -39,9 +39,6 @@
DWORD dwIndex;
MIB_IF_ROW2 IfRow;
PWLAN_INTERFACE_INFO_LIST InterfaceList;
-
- if (!hClientHandle || !ppInterfaceList)
- return ERROR_INVALID_PARAMETER;
dwResult = GetNumberOfInterfaces(&dwNumInterfaces);
dwSize = sizeof(WLAN_INTERFACE_INFO_LIST);
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] Tue Mar 3 11:43:24 2015
@@ -281,6 +281,66 @@
return ERROR_SUCCESS;
}
+DWORD
+WINAPI
+WlanReasonCodeToString(IN DWORD dwReasonCode,
+ IN DWORD dwBufferSize,
+ IN PWCHAR pStringBuffer,
+ PVOID pReserved)
+{
+ if ((pReserved != NULL) || (pStringBuffer == NULL) || (dwBufferSize == 0))
+ return ERROR_INVALID_PARAMETER;
+
+ UNIMPLEMENTED;
+ return ERROR_SUCCESS;
+}
+
+DWORD
+WINAPI
+WlanIhvControl(IN HANDLE hClientHandle,
+ IN const GUID *pInterfaceGuid,
+ IN WLAN_IHV_CONTROL_TYPE Type,
+ IN DWORD dwInBufferSize,
+ IN PVOID pInBuffer,
+ IN DWORD dwOutBufferSize,
+ PVOID pOutBuffer,
+ OUT PDWORD pdwBytesReturned)
+{
+ if ((hClientHandle == NULL) || (pInterfaceGuid == NULL) || (pdwBytesReturned ==
NULL))
+ return ERROR_INVALID_PARAMETER;
+
+ UNIMPLEMENTED;
+ return ERROR_SUCCESS;
+}
+
+DWORD
+WINAPI
+WlanSetSecuritySettings(IN HANDLE hClientHandle,
+ IN WLAN_SECURABLE_OBJECT SecurableObject,
+ IN LPCWSTR strModifiedSDDL)
+{
+ if ((hClientHandle == NULL) || (strModifiedSDDL == NULL) || (SecurableObject >=
WLAN_SECURABLE_OBJECT_COUNT))
+ return ERROR_INVALID_PARAMETER;
+
+ UNIMPLEMENTED;
+ return ERROR_SUCCESS;
+}
+
+DWORD
+WINAPI
+WlanGetAvailableNetworkList(IN HANDLE hClientHandle,
+ IN const GUID *pInterfaceGuid,
+ IN DWORD dwFlags,
+ PVOID pReserved,
+ OUT PWLAN_AVAILABLE_NETWORK_LIST *ppAvailableNetworkList)
+{
+ if ((pReserved != NULL) || (pInterfaceGuid == NULL) || (hClientHandle == NULL) ||
(ppAvailableNetworkList == 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] Tue Mar 3 11:43:24 2015
@@ -6,7 +6,7 @@
@ stdcall WlanEnumInterfaces (ptr ptr ptr)
@ stub WlanExtractPsdIEDataList
@ stdcall WlanFreeMemory (ptr)
-@ stub WlanGetAvailableNetworkList
+@ stdcall WlanGetAvailableNetworkList (ptr ptr long ptr ptr)
@ stub WlanGetFilterList
@ stdcall WlanGetInterfaceCapability (ptr ptr ptr ptr)
@ stub WlanGetNetworkBssList
@@ -14,11 +14,11 @@
@ stdcall WlanGetProfileCustomUserData (ptr ptr ptr ptr ptr ptr)
@ stdcall WlanGetProfileList (ptr ptr ptr ptr)
@ stub WlanGetSecuritySettings
-@ stub WlanIhvControl
+@ stdcall WlanIhvControl (ptr ptr ptr long ptr long ptr ptr)
@ stdcall WlanOpenHandle (long ptr ptr ptr)
@ stub WlanQueryAutoConfigParameter
@ stdcall WlanQueryInterface (ptr ptr ptr ptr ptr ptr ptr)
-@ stub WlanReasonCodeToString
+@ stdcall WlanReasonCodeToString (long long ptr ptr)
@ stub WlanRegisterNotification
@ stdcall WlanRenameProfile (ptr ptr ptr ptr ptr)
@ stub WlanSaveTemporaryProfile
@@ -33,4 +33,4 @@
@ stdcall WlanSetProfileList (ptr ptr long ptr ptr)
@ stub WlanSetProfilePosition
@ stub WlanSetPsdIEDataList
-@ stub WlanSetSecuritySettings
+@ stdcall WlanSetSecuritySettings (ptr long 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] Tue Mar 3 11:43:24 2015
@@ -51,6 +51,15 @@
wlan_connection_mode_auto,
wlan_connection_mode_invalid
} WLAN_CONNECTION_MODE, *PWLAN_CONNECTION_MODE;
+
+#if defined(__midl) || defined(__WIDL__)
+typedef [v1_enum] enum _WLAN_IHV_CONTROL_TYPE {
+#else
+typedef enum _WLAN_IHV_CONTROL_TYPE {
+#endif
+ wlan_ihv_control_type_service,
+ wlan_ihv_control_type_driver
+} WLAN_IHV_CONTROL_TYPE; /* HACK , *PWLAN_IHV_CONTROL_TYPE; */
#if defined(__midl) || defined(__WIDL__)
typedef [v1_enum] enum _WLAN_INTF_OPCODE {
@@ -226,18 +235,22 @@
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 WlanGetAvailableNetworkList(IN HANDLE hClientHandle, IN const GUID
*pInterfaceGuid, IN DWORD dwFlags, PVOID pReserved, OUT PWLAN_AVAILABLE_NETWORK_LIST
*ppAvailableNetworkList);
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 WlanIhvControl(IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN
WLAN_IHV_CONTROL_TYPE Type, IN DWORD dwInBufferSize, IN PVOID pInBuffer, IN DWORD
dwOutBufferSize, PVOID pOutBuffer, OUT PDWORD pdwBytesReturned);
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 WlanReasonCodeToString(IN DWORD dwReasonCode, IN DWORD dwBufferSize, IN
PWCHAR pStringBuffer, PVOID pReserved);
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 WlanSetSecuritySettings(IN HANDLE hClientHandle, IN WLAN_SECURABLE_OBJECT
SecurableObject, IN LPCWSTR strModifiedSDDL);
+DWORD WINAPI WlanScan(IN HANDLE hClientHandle, IN const GUID *pInterfaceGuid, IN
PDOT11_SSID pDot11Ssid, IN PWLAN_RAW_DATA pIeData, PVOID pReserved);
#endif
#ifdef __cplusplus