Reactos
at listview 183 lines 5.6 kB view raw
1/* 2 * Wireless LAN API (wlanapi.dll) 3 * 4 * Copyright 2009 Christoph von Wittich (Christoph@ApiViewer.de) 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 */ 20 21 22/* INCLUDES ****************************************************************/ 23#define WIN32_NO_STATUS 24#define _INC_WINDOWS 25#define COM_NO_WINDOWS_H 26#include <stdarg.h> 27#include <windef.h> 28#include <winbase.h> 29#include <wlansvc_c.h> 30 31#include <wine/debug.h> 32 33WINE_DEFAULT_DEBUG_CHANNEL(wlanapi); 34 35DWORD 36WINAPI 37WlanDeleteProfile(IN HANDLE hClientHandle, 38 IN const GUID *pInterfaceGuid, 39 IN LPCWSTR strProfileName, 40 PVOID pReserved) 41{ 42 DWORD dwResult = ERROR_SUCCESS; 43 44 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (strProfileName == NULL)) 45 return ERROR_INVALID_PARAMETER; 46 47 RpcTryExcept 48 { 49 dwResult = _RpcDeleteProfile(hClientHandle, pInterfaceGuid, strProfileName); 50 } 51 RpcExcept(EXCEPTION_EXECUTE_HANDLER) 52 { 53 dwResult = RpcExceptionCode(); 54 } 55 RpcEndExcept; 56 57 return dwResult; 58} 59 60DWORD 61WINAPI 62WlanRenameProfile(IN HANDLE hClientHandle, 63 IN const GUID *pInterfaceGuid, 64 IN LPCWSTR strOldProfileName, 65 IN LPCWSTR strNewProfileName, 66 PVOID pReserved) 67{ 68 DWORD dwResult = ERROR_SUCCESS; 69 70 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (strOldProfileName == NULL) || (strNewProfileName == NULL)) 71 return ERROR_INVALID_PARAMETER; 72 73 RpcTryExcept 74 { 75 dwResult = _RpcRenameProfile(hClientHandle, pInterfaceGuid, strOldProfileName, strNewProfileName); 76 } 77 RpcExcept(EXCEPTION_EXECUTE_HANDLER) 78 { 79 dwResult = RpcExceptionCode(); 80 } 81 RpcEndExcept; 82 83 return dwResult; 84} 85 86DWORD 87WINAPI 88WlanGetProfile(IN HANDLE hClientHandle, 89 IN const GUID *pInterfaceGuid, 90 IN LPCWSTR strProfileName, 91 PVOID pReserved, 92 OUT LPWSTR *pstrProfileXml, 93 DWORD *pdwFlags, 94 PDWORD pdwGrantedAccess) 95{ 96 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (pstrProfileXml == NULL)) 97 return ERROR_INVALID_PARAMETER; 98 99 UNIMPLEMENTED; 100 return ERROR_SUCCESS; 101} 102 103DWORD 104WINAPI 105WlanSetProfile(IN HANDLE hClientHandle, 106 IN const GUID *pInterfaceGuid, 107 IN DWORD dwFlags, 108 IN LPCWSTR strProfileXml, 109 LPCWSTR strAllUserProfileSecurity, 110 IN BOOL bOverwrite, 111 PVOID pReserved, 112 OUT DWORD *pdwReasonCode) 113{ 114 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (strProfileXml == NULL) || (pdwReasonCode == NULL)) 115 return ERROR_INVALID_PARAMETER; 116 117 UNIMPLEMENTED; 118 return ERROR_SUCCESS; 119} 120 121DWORD 122WINAPI 123WlanGetProfileCustomUserData(IN HANDLE hClientHandle, 124 IN const GUID *pInterfaceGuid, 125 IN LPCWSTR strProfileName, 126 PVOID pReserved, 127 OUT DWORD *pdwDataSize, 128 OUT PBYTE *ppData) 129{ 130 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (strProfileName == NULL)) 131 return ERROR_INVALID_PARAMETER; 132 133 UNIMPLEMENTED; 134 return ERROR_SUCCESS; 135} 136 137DWORD 138WINAPI 139WlanSetProfileCustomUserData(IN HANDLE hClientHandle, 140 IN const GUID *pInterfaceGuid, 141 IN LPCWSTR strProfileName, 142 IN DWORD dwDataSize, 143 IN const PBYTE pData, 144 PVOID pReserved) 145{ 146 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (strProfileName == NULL)) 147 return ERROR_INVALID_PARAMETER; 148 149 if ((dwDataSize != 0) && (pData == NULL)) 150 return ERROR_INVALID_PARAMETER; 151 152 UNIMPLEMENTED; 153 return ERROR_SUCCESS; 154} 155 156DWORD 157WINAPI 158WlanGetProfileList(IN HANDLE hClientHandle, 159 IN const GUID *pInterfaceGuid, 160 PVOID pReserved, 161 OUT PWLAN_PROFILE_INFO_LIST *ppProfileList) 162{ 163 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (ppProfileList == NULL)) 164 return ERROR_INVALID_PARAMETER; 165 166 UNIMPLEMENTED; 167 return ERROR_SUCCESS; 168} 169 170DWORD 171WINAPI 172WlanSetProfileList(IN HANDLE hClientHandle, 173 IN const GUID *pInterfaceGuid, 174 DWORD dwItems, 175 IN LPCWSTR *strProfileNames, 176 PVOID pReserved) 177{ 178 if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (strProfileNames == NULL) || (dwItems == 0)) 179 return ERROR_INVALID_PARAMETER; 180 181 UNIMPLEMENTED; 182 return ERROR_SUCCESS; 183}