1*c2c66affSColin Finck /*
2*c2c66affSColin Finck * Wireless LAN API (wlanapi.dll)
3*c2c66affSColin Finck *
4*c2c66affSColin Finck * Copyright 2009 Christoph von Wittich (Christoph@ApiViewer.de)
5*c2c66affSColin Finck *
6*c2c66affSColin Finck * This library is free software; you can redistribute it and/or
7*c2c66affSColin Finck * modify it under the terms of the GNU Lesser General Public
8*c2c66affSColin Finck * License as published by the Free Software Foundation; either
9*c2c66affSColin Finck * version 2.1 of the License, or (at your option) any later version.
10*c2c66affSColin Finck *
11*c2c66affSColin Finck * This library is distributed in the hope that it will be useful,
12*c2c66affSColin Finck * but WITHOUT ANY WARRANTY; without even the implied warranty of
13*c2c66affSColin Finck * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14*c2c66affSColin Finck * Lesser General Public License for more details.
15*c2c66affSColin Finck *
16*c2c66affSColin Finck * You should have received a copy of the GNU Lesser General Public
17*c2c66affSColin Finck * License along with this library; if not, write to the Free Software
18*c2c66affSColin Finck * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19*c2c66affSColin Finck */
20*c2c66affSColin Finck
21*c2c66affSColin Finck
22*c2c66affSColin Finck /* INCLUDES ****************************************************************/
23*c2c66affSColin Finck #define WIN32_NO_STATUS
24*c2c66affSColin Finck #define _INC_WINDOWS
25*c2c66affSColin Finck #define COM_NO_WINDOWS_H
26*c2c66affSColin Finck #include <stdarg.h>
27*c2c66affSColin Finck #include <windef.h>
28*c2c66affSColin Finck #include <winbase.h>
29*c2c66affSColin Finck #include <wlansvc_c.h>
30*c2c66affSColin Finck
31*c2c66affSColin Finck #include <wine/debug.h>
32*c2c66affSColin Finck
33*c2c66affSColin Finck WINE_DEFAULT_DEBUG_CHANNEL(wlanapi);
34*c2c66affSColin Finck
35*c2c66affSColin Finck DWORD
WlanRpcStatusToWinError(RPC_STATUS Status)36*c2c66affSColin Finck WlanRpcStatusToWinError(RPC_STATUS Status)
37*c2c66affSColin Finck {
38*c2c66affSColin Finck switch (Status)
39*c2c66affSColin Finck {
40*c2c66affSColin Finck case RPC_S_INVALID_BINDING:
41*c2c66affSColin Finck case RPC_X_SS_IN_NULL_CONTEXT:
42*c2c66affSColin Finck return ERROR_INVALID_HANDLE;
43*c2c66affSColin Finck
44*c2c66affSColin Finck case RPC_X_ENUM_VALUE_OUT_OF_RANGE:
45*c2c66affSColin Finck case RPC_X_BYTE_COUNT_TOO_SMALL:
46*c2c66affSColin Finck return ERROR_INVALID_PARAMETER;
47*c2c66affSColin Finck
48*c2c66affSColin Finck case RPC_X_NULL_REF_POINTER:
49*c2c66affSColin Finck return ERROR_INVALID_ADDRESS;
50*c2c66affSColin Finck
51*c2c66affSColin Finck default:
52*c2c66affSColin Finck return (DWORD)Status;
53*c2c66affSColin Finck }
54*c2c66affSColin Finck }
55*c2c66affSColin Finck
56*c2c66affSColin Finck handle_t __RPC_USER
WLANSVC_HANDLE_bind(WLANSVC_HANDLE szMachineName)57*c2c66affSColin Finck WLANSVC_HANDLE_bind(WLANSVC_HANDLE szMachineName)
58*c2c66affSColin Finck {
59*c2c66affSColin Finck handle_t hBinding = NULL;
60*c2c66affSColin Finck LPWSTR pszStringBinding;
61*c2c66affSColin Finck RPC_STATUS Status;
62*c2c66affSColin Finck
63*c2c66affSColin Finck TRACE("RPC_SERVICE_STATUS_HANDLE_bind() called\n");
64*c2c66affSColin Finck
65*c2c66affSColin Finck Status = RpcStringBindingComposeW(NULL,
66*c2c66affSColin Finck L"ncalrpc",
67*c2c66affSColin Finck szMachineName,
68*c2c66affSColin Finck L"wlansvc",
69*c2c66affSColin Finck NULL,
70*c2c66affSColin Finck &pszStringBinding);
71*c2c66affSColin Finck if (Status != RPC_S_OK)
72*c2c66affSColin Finck {
73*c2c66affSColin Finck ERR("RpcStringBindingCompose returned 0x%x\n", Status);
74*c2c66affSColin Finck return NULL;
75*c2c66affSColin Finck }
76*c2c66affSColin Finck
77*c2c66affSColin Finck /* Set the binding handle that will be used to bind to the server. */
78*c2c66affSColin Finck Status = RpcBindingFromStringBindingW(pszStringBinding,
79*c2c66affSColin Finck &hBinding);
80*c2c66affSColin Finck if (Status != RPC_S_OK)
81*c2c66affSColin Finck {
82*c2c66affSColin Finck ERR("RpcBindingFromStringBinding returned 0x%x\n", Status);
83*c2c66affSColin Finck }
84*c2c66affSColin Finck
85*c2c66affSColin Finck Status = RpcStringFreeW(&pszStringBinding);
86*c2c66affSColin Finck if (Status != RPC_S_OK)
87*c2c66affSColin Finck {
88*c2c66affSColin Finck ERR("RpcStringFree returned 0x%x\n", Status);
89*c2c66affSColin Finck }
90*c2c66affSColin Finck
91*c2c66affSColin Finck return hBinding;
92*c2c66affSColin Finck }
93*c2c66affSColin Finck
94*c2c66affSColin Finck void __RPC_USER
WLANSVC_HANDLE_unbind(WLANSVC_HANDLE szMachineName,handle_t hBinding)95*c2c66affSColin Finck WLANSVC_HANDLE_unbind(WLANSVC_HANDLE szMachineName,
96*c2c66affSColin Finck handle_t hBinding)
97*c2c66affSColin Finck {
98*c2c66affSColin Finck RPC_STATUS Status;
99*c2c66affSColin Finck
100*c2c66affSColin Finck TRACE("WLANSVC_HANDLE_unbind() called\n");
101*c2c66affSColin Finck
102*c2c66affSColin Finck Status = RpcBindingFree(&hBinding);
103*c2c66affSColin Finck if (Status != RPC_S_OK)
104*c2c66affSColin Finck {
105*c2c66affSColin Finck ERR("RpcBindingFree returned 0x%x\n", Status);
106*c2c66affSColin Finck }
107*c2c66affSColin Finck }
108*c2c66affSColin Finck
109*c2c66affSColin Finck PVOID
110*c2c66affSColin Finck WINAPI
WlanAllocateMemory(IN DWORD dwSize)111*c2c66affSColin Finck WlanAllocateMemory(IN DWORD dwSize)
112*c2c66affSColin Finck {
113*c2c66affSColin Finck return HeapAlloc(GetProcessHeap(), 0, dwSize);
114*c2c66affSColin Finck }
115*c2c66affSColin Finck
116*c2c66affSColin Finck VOID
117*c2c66affSColin Finck WINAPI
WlanFreeMemory(IN PVOID pMem)118*c2c66affSColin Finck WlanFreeMemory(IN PVOID pMem)
119*c2c66affSColin Finck {
120*c2c66affSColin Finck HeapFree(GetProcessHeap(), 0, pMem);
121*c2c66affSColin Finck }
122*c2c66affSColin Finck
123*c2c66affSColin Finck DWORD
124*c2c66affSColin Finck WINAPI
WlanConnect(IN HANDLE hClientHandle,IN const GUID * pInterfaceGuid,IN const PWLAN_CONNECTION_PARAMETERS pConnectionParameters,PVOID pReserved)125*c2c66affSColin Finck WlanConnect(IN HANDLE hClientHandle,
126*c2c66affSColin Finck IN const GUID *pInterfaceGuid,
127*c2c66affSColin Finck IN const PWLAN_CONNECTION_PARAMETERS pConnectionParameters,
128*c2c66affSColin Finck PVOID pReserved)
129*c2c66affSColin Finck {
130*c2c66affSColin Finck DWORD dwResult = ERROR_SUCCESS;
131*c2c66affSColin Finck
132*c2c66affSColin Finck if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL) || (pConnectionParameters == NULL))
133*c2c66affSColin Finck return ERROR_INVALID_PARAMETER;
134*c2c66affSColin Finck
135*c2c66affSColin Finck RpcTryExcept
136*c2c66affSColin Finck {
137*c2c66affSColin Finck dwResult = _RpcConnect(hClientHandle, pInterfaceGuid, &pConnectionParameters);
138*c2c66affSColin Finck }
139*c2c66affSColin Finck RpcExcept(EXCEPTION_EXECUTE_HANDLER)
140*c2c66affSColin Finck {
141*c2c66affSColin Finck dwResult = WlanRpcStatusToWinError(RpcExceptionCode());
142*c2c66affSColin Finck }
143*c2c66affSColin Finck RpcEndExcept;
144*c2c66affSColin Finck
145*c2c66affSColin Finck return dwResult;
146*c2c66affSColin Finck }
147*c2c66affSColin Finck
148*c2c66affSColin Finck DWORD
149*c2c66affSColin Finck WINAPI
WlanDisconnect(IN HANDLE hClientHandle,IN const GUID * pInterfaceGuid,PVOID pReserved)150*c2c66affSColin Finck WlanDisconnect(IN HANDLE hClientHandle,
151*c2c66affSColin Finck IN const GUID *pInterfaceGuid,
152*c2c66affSColin Finck PVOID pReserved)
153*c2c66affSColin Finck {
154*c2c66affSColin Finck DWORD dwResult = ERROR_SUCCESS;
155*c2c66affSColin Finck
156*c2c66affSColin Finck if ((pReserved != NULL) || (hClientHandle == NULL) || (pInterfaceGuid == NULL))
157*c2c66affSColin Finck return ERROR_INVALID_PARAMETER;
158*c2c66affSColin Finck
159*c2c66affSColin Finck RpcTryExcept
160*c2c66affSColin Finck {
161*c2c66affSColin Finck dwResult = _RpcDisconnect(hClientHandle, pInterfaceGuid);
162*c2c66affSColin Finck }
163*c2c66affSColin Finck RpcExcept(EXCEPTION_EXECUTE_HANDLER)
164*c2c66affSColin Finck {
165*c2c66affSColin Finck dwResult = WlanRpcStatusToWinError(RpcExceptionCode());
166*c2c66affSColin Finck }
167*c2c66affSColin Finck RpcEndExcept;
168*c2c66affSColin Finck
169*c2c66affSColin Finck return dwResult;
170*c2c66affSColin Finck }
171*c2c66affSColin Finck
172*c2c66affSColin Finck DWORD
173*c2c66affSColin Finck WINAPI
WlanOpenHandle(IN DWORD dwClientVersion,PVOID pReserved,OUT DWORD * pdwNegotiatedVersion,OUT HANDLE * phClientHandle)174*c2c66affSColin Finck WlanOpenHandle(IN DWORD dwClientVersion,
175*c2c66affSColin Finck PVOID pReserved,
176*c2c66affSColin Finck OUT DWORD *pdwNegotiatedVersion,
177*c2c66affSColin Finck OUT HANDLE *phClientHandle)
178*c2c66affSColin Finck {
179*c2c66affSColin Finck DWORD dwResult = ERROR_SUCCESS;
180*c2c66affSColin Finck WCHAR szDummy[] = L"localhost";
181*c2c66affSColin Finck
182*c2c66affSColin Finck if ((pReserved != NULL) || (pdwNegotiatedVersion == NULL) || (phClientHandle == NULL))
183*c2c66affSColin Finck return ERROR_INVALID_PARAMETER;
184*c2c66affSColin Finck
185*c2c66affSColin Finck RpcTryExcept
186*c2c66affSColin Finck {
187*c2c66affSColin Finck dwResult = _RpcOpenHandle(szDummy,
188*c2c66affSColin Finck dwClientVersion,
189*c2c66affSColin Finck pdwNegotiatedVersion,
190*c2c66affSColin Finck (WLANSVC_RPC_HANDLE) phClientHandle);
191*c2c66affSColin Finck }
192*c2c66affSColin Finck RpcExcept(EXCEPTION_EXECUTE_HANDLER)
193*c2c66affSColin Finck {
194*c2c66affSColin Finck dwResult = WlanRpcStatusToWinError(RpcExceptionCode());
195*c2c66affSColin Finck }
196*c2c66affSColin Finck RpcEndExcept;
197*c2c66affSColin Finck
198*c2c66affSColin Finck return dwResult;
199*c2c66affSColin Finck }
200*c2c66affSColin Finck
201*c2c66affSColin Finck DWORD
202*c2c66affSColin Finck WINAPI
WlanCloseHandle(IN HANDLE hClientHandle,PVOID pReserved)203*c2c66affSColin Finck WlanCloseHandle(IN HANDLE hClientHandle,
204*c2c66affSColin Finck PVOID pReserved)
205*c2c66affSColin Finck {
206*c2c66affSColin Finck DWORD dwResult = ERROR_SUCCESS;
207*c2c66affSColin Finck
208*c2c66affSColin Finck if ((pReserved != NULL) || (hClientHandle == NULL))
209*c2c66affSColin Finck return ERROR_INVALID_PARAMETER;
210*c2c66affSColin Finck
211*c2c66affSColin Finck RpcTryExcept
212*c2c66affSColin Finck {
213*c2c66affSColin Finck dwResult = _RpcCloseHandle(&hClientHandle);
214*c2c66affSColin Finck }
215*c2c66affSColin Finck RpcExcept(EXCEPTION_EXECUTE_HANDLER)
216*c2c66affSColin Finck {
217*c2c66affSColin Finck dwResult = WlanRpcStatusToWinError(RpcExceptionCode());
218*c2c66affSColin Finck }
219*c2c66affSColin Finck RpcEndExcept;
220*c2c66affSColin Finck
221*c2c66affSColin Finck return dwResult;
222*c2c66affSColin Finck }
223*c2c66affSColin Finck
224*c2c66affSColin Finck DWORD
225*c2c66affSColin Finck WINAPI
WlanEnumInterfaces(IN HANDLE hClientHandle,PVOID pReserved,OUT PWLAN_INTERFACE_INFO_LIST * ppInterfaceList)226*c2c66affSColin Finck WlanEnumInterfaces(IN HANDLE hClientHandle,
227*c2c66affSColin Finck PVOID pReserved,
228*c2c66affSColin Finck OUT PWLAN_INTERFACE_INFO_LIST *ppInterfaceList)
229*c2c66affSColin Finck {
230*c2c66affSColin Finck DWORD dwResult = ERROR_SUCCESS;
231*c2c66affSColin Finck
232*c2c66affSColin Finck if ((pReserved != NULL) || (ppInterfaceList == NULL) || (hClientHandle == NULL))
233*c2c66affSColin Finck return ERROR_INVALID_PARAMETER;
234*c2c66affSColin Finck
235*c2c66affSColin Finck RpcTryExcept
236*c2c66affSColin Finck {
237*c2c66affSColin Finck dwResult = _RpcEnumInterfaces(hClientHandle, ppInterfaceList);
238*c2c66affSColin Finck }
239*c2c66affSColin Finck RpcExcept(EXCEPTION_EXECUTE_HANDLER)
240*c2c66affSColin Finck {
241*c2c66affSColin Finck dwResult = WlanRpcStatusToWinError(RpcExceptionCode());
242*c2c66affSColin Finck }
243*c2c66affSColin Finck RpcEndExcept;
244*c2c66affSColin Finck
245*c2c66affSColin Finck return dwResult;
246*c2c66affSColin Finck }
247*c2c66affSColin Finck
248*c2c66affSColin Finck DWORD
249*c2c66affSColin Finck WINAPI
WlanScan(IN HANDLE hClientHandle,IN const GUID * pInterfaceGuid,IN PDOT11_SSID pDot11Ssid,IN PWLAN_RAW_DATA pIeData,PVOID pReserved)250*c2c66affSColin Finck WlanScan(IN HANDLE hClientHandle,
251*c2c66affSColin Finck IN const GUID *pInterfaceGuid,
252*c2c66affSColin Finck IN PDOT11_SSID pDot11Ssid,
253*c2c66affSColin Finck IN PWLAN_RAW_DATA pIeData,
254*c2c66affSColin Finck PVOID pReserved)
255*c2c66affSColin Finck {
256*c2c66affSColin Finck DWORD dwResult = ERROR_SUCCESS;
257*c2c66affSColin Finck
258*c2c66affSColin Finck if ((pReserved != NULL) || (pInterfaceGuid == NULL) || (hClientHandle == NULL))
259*c2c66affSColin Finck return ERROR_INVALID_PARAMETER;
260*c2c66affSColin Finck
261*c2c66affSColin Finck RpcTryExcept
262*c2c66affSColin Finck {
263*c2c66affSColin Finck dwResult = _RpcScan(hClientHandle, pInterfaceGuid, pDot11Ssid, pIeData);
264*c2c66affSColin Finck }
265*c2c66affSColin Finck RpcExcept(EXCEPTION_EXECUTE_HANDLER)
266*c2c66affSColin Finck {
267*c2c66affSColin Finck dwResult = WlanRpcStatusToWinError(RpcExceptionCode());
268*c2c66affSColin Finck }
269*c2c66affSColin Finck RpcEndExcept;
270*c2c66affSColin Finck
271*c2c66affSColin Finck return dwResult;
272*c2c66affSColin Finck }
273*c2c66affSColin Finck
274*c2c66affSColin Finck DWORD
275*c2c66affSColin Finck 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)276*c2c66affSColin Finck WlanQueryInterface(IN HANDLE hClientHandle,
277*c2c66affSColin Finck IN const GUID *pInterfaceGuid,
278*c2c66affSColin Finck IN WLAN_INTF_OPCODE OpCode,
279*c2c66affSColin Finck PVOID pReserved,
280*c2c66affSColin Finck OUT PDWORD pdwDataSize,
281*c2c66affSColin Finck OUT PVOID *ppData,
282*c2c66affSColin Finck WLAN_OPCODE_VALUE_TYPE *pWlanOpcodeValueType)
283*c2c66affSColin Finck {
284*c2c66affSColin Finck if ((pReserved != NULL) || (pInterfaceGuid == NULL) || (hClientHandle == NULL) || (pdwDataSize == NULL) || (ppData == NULL))
285*c2c66affSColin Finck return ERROR_INVALID_PARAMETER;
286*c2c66affSColin Finck
287*c2c66affSColin Finck UNIMPLEMENTED;
288*c2c66affSColin Finck return ERROR_SUCCESS;
289*c2c66affSColin Finck }
290*c2c66affSColin Finck
291*c2c66affSColin Finck DWORD
292*c2c66affSColin Finck WINAPI
WlanGetInterfaceCapability(IN HANDLE hClientHandle,IN const GUID * pInterfaceGuid,PVOID pReserved,OUT PWLAN_INTERFACE_CAPABILITY * ppCapability)293*c2c66affSColin Finck WlanGetInterfaceCapability(IN HANDLE hClientHandle,
294*c2c66affSColin Finck IN const GUID *pInterfaceGuid,
295*c2c66affSColin Finck PVOID pReserved,
296*c2c66affSColin Finck OUT PWLAN_INTERFACE_CAPABILITY *ppCapability)
297*c2c66affSColin Finck {
298*c2c66affSColin Finck if ((pReserved != NULL) || (pInterfaceGuid == NULL) || (hClientHandle == NULL) || (ppCapability == NULL))
299*c2c66affSColin Finck return ERROR_INVALID_PARAMETER;
300*c2c66affSColin Finck
301*c2c66affSColin Finck UNIMPLEMENTED;
302*c2c66affSColin Finck return ERROR_SUCCESS;
303*c2c66affSColin Finck }
304*c2c66affSColin Finck
WlanRegisterNotification(IN HANDLE hClientHandle,IN DWORD dwNotifSource,IN BOOL bIgnoreDuplicate,WLAN_NOTIFICATION_CALLBACK funcCallback,PVOID pCallbackContext,PVOID pReserved,PDWORD pdwPrevNotifSource)305*c2c66affSColin Finck DWORD WINAPI WlanRegisterNotification(IN HANDLE hClientHandle,
306*c2c66affSColin Finck IN DWORD dwNotifSource,
307*c2c66affSColin Finck IN BOOL bIgnoreDuplicate,
308*c2c66affSColin Finck WLAN_NOTIFICATION_CALLBACK funcCallback,
309*c2c66affSColin Finck PVOID pCallbackContext,
310*c2c66affSColin Finck PVOID pReserved,
311*c2c66affSColin Finck PDWORD pdwPrevNotifSource)
312*c2c66affSColin Finck {
313*c2c66affSColin Finck UNIMPLEMENTED;
314*c2c66affSColin Finck return ERROR_SUCCESS;
315*c2c66affSColin Finck }
316*c2c66affSColin Finck
317*c2c66affSColin Finck DWORD
318*c2c66affSColin Finck WINAPI
WlanReasonCodeToString(IN DWORD dwReasonCode,IN DWORD dwBufferSize,IN PWCHAR pStringBuffer,PVOID pReserved)319*c2c66affSColin Finck WlanReasonCodeToString(IN DWORD dwReasonCode,
320*c2c66affSColin Finck IN DWORD dwBufferSize,
321*c2c66affSColin Finck IN PWCHAR pStringBuffer,
322*c2c66affSColin Finck PVOID pReserved)
323*c2c66affSColin Finck {
324*c2c66affSColin Finck if ((pReserved != NULL) || (pStringBuffer == NULL) || (dwBufferSize == 0))
325*c2c66affSColin Finck return ERROR_INVALID_PARAMETER;
326*c2c66affSColin Finck
327*c2c66affSColin Finck UNIMPLEMENTED;
328*c2c66affSColin Finck return ERROR_SUCCESS;
329*c2c66affSColin Finck }
330*c2c66affSColin Finck
331*c2c66affSColin Finck DWORD
332*c2c66affSColin Finck 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)333*c2c66affSColin Finck WlanIhvControl(IN HANDLE hClientHandle,
334*c2c66affSColin Finck IN const GUID *pInterfaceGuid,
335*c2c66affSColin Finck IN WLAN_IHV_CONTROL_TYPE Type,
336*c2c66affSColin Finck IN DWORD dwInBufferSize,
337*c2c66affSColin Finck IN PVOID pInBuffer,
338*c2c66affSColin Finck IN DWORD dwOutBufferSize,
339*c2c66affSColin Finck PVOID pOutBuffer,
340*c2c66affSColin Finck OUT PDWORD pdwBytesReturned)
341*c2c66affSColin Finck {
342*c2c66affSColin Finck if ((hClientHandle == NULL) || (pInterfaceGuid == NULL) || (pdwBytesReturned == NULL))
343*c2c66affSColin Finck return ERROR_INVALID_PARAMETER;
344*c2c66affSColin Finck
345*c2c66affSColin Finck UNIMPLEMENTED;
346*c2c66affSColin Finck return ERROR_SUCCESS;
347*c2c66affSColin Finck }
348*c2c66affSColin Finck
349*c2c66affSColin Finck DWORD
350*c2c66affSColin Finck WINAPI
WlanSetSecuritySettings(IN HANDLE hClientHandle,IN WLAN_SECURABLE_OBJECT SecurableObject,IN LPCWSTR strModifiedSDDL)351*c2c66affSColin Finck WlanSetSecuritySettings(IN HANDLE hClientHandle,
352*c2c66affSColin Finck IN WLAN_SECURABLE_OBJECT SecurableObject,
353*c2c66affSColin Finck IN LPCWSTR strModifiedSDDL)
354*c2c66affSColin Finck {
355*c2c66affSColin Finck DWORD dwResult = ERROR_SUCCESS;
356*c2c66affSColin Finck
357*c2c66affSColin Finck if ((hClientHandle == NULL) || (strModifiedSDDL == NULL) || (SecurableObject >= WLAN_SECURABLE_OBJECT_COUNT))
358*c2c66affSColin Finck return ERROR_INVALID_PARAMETER;
359*c2c66affSColin Finck
360*c2c66affSColin Finck RpcTryExcept
361*c2c66affSColin Finck {
362*c2c66affSColin Finck dwResult = _RpcSetSecuritySettings(hClientHandle, SecurableObject, strModifiedSDDL);
363*c2c66affSColin Finck }
364*c2c66affSColin Finck RpcExcept(EXCEPTION_EXECUTE_HANDLER)
365*c2c66affSColin Finck {
366*c2c66affSColin Finck dwResult = WlanRpcStatusToWinError(RpcExceptionCode());
367*c2c66affSColin Finck }
368*c2c66affSColin Finck RpcEndExcept;
369*c2c66affSColin Finck
370*c2c66affSColin Finck return dwResult;
371*c2c66affSColin Finck }
372*c2c66affSColin Finck
373*c2c66affSColin Finck DWORD
374*c2c66affSColin Finck WINAPI
WlanGetAvailableNetworkList(IN HANDLE hClientHandle,IN const GUID * pInterfaceGuid,IN DWORD dwFlags,PVOID pReserved,OUT PWLAN_AVAILABLE_NETWORK_LIST * ppAvailableNetworkList)375*c2c66affSColin Finck WlanGetAvailableNetworkList(IN HANDLE hClientHandle,
376*c2c66affSColin Finck IN const GUID *pInterfaceGuid,
377*c2c66affSColin Finck IN DWORD dwFlags,
378*c2c66affSColin Finck PVOID pReserved,
379*c2c66affSColin Finck OUT PWLAN_AVAILABLE_NETWORK_LIST *ppAvailableNetworkList)
380*c2c66affSColin Finck {
381*c2c66affSColin Finck if ((pReserved != NULL) || (pInterfaceGuid == NULL) || (hClientHandle == NULL) || (ppAvailableNetworkList == NULL))
382*c2c66affSColin Finck return ERROR_INVALID_PARAMETER;
383*c2c66affSColin Finck
384*c2c66affSColin Finck UNIMPLEMENTED;
385*c2c66affSColin Finck return ERROR_SUCCESS;
386*c2c66affSColin Finck }
387*c2c66affSColin Finck
388*c2c66affSColin Finck void __RPC_FAR * __RPC_USER
midl_user_allocate(SIZE_T len)389*c2c66affSColin Finck midl_user_allocate(SIZE_T len)
390*c2c66affSColin Finck {
391*c2c66affSColin Finck return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len);
392*c2c66affSColin Finck }
393*c2c66affSColin Finck
394*c2c66affSColin Finck void __RPC_USER
midl_user_free(void __RPC_FAR * ptr)395*c2c66affSColin Finck midl_user_free(void __RPC_FAR * ptr)
396*c2c66affSColin Finck {
397*c2c66affSColin Finck HeapFree(GetProcessHeap(), 0, ptr);
398*c2c66affSColin Finck }
399*c2c66affSColin Finck
400