Author: cwittich
Date: Mon Mar 16 11:23:58 2009
New Revision: 40054
URL:
http://svn.reactos.org/svn/reactos?rev=40054&view=rev
Log:
implement WlanCloseHandle
Modified:
trunk/reactos/dll/win32/wlanapi/main.c
trunk/reactos/dll/win32/wlanapi/wlanapi.rbuild
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 16 11:23:58 2009
@@ -18,9 +18,13 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
+/* INCLUDES ****************************************************************/
#include <windows.h>
-#include <wlanapi.h>
+#include "wlansvc_c.h"
+#define NDEBUG
+#include <debug.h>
PVOID
WINAPI
@@ -36,3 +40,36 @@
HeapFree(GetProcessHeap(), 0, pMem);
}
+DWORD
+WINAPI
+WlanCloseHandle(IN HANDLE hClientHandle,
+ PVOID pReserved)
+{
+ DWORD dwError = ERROR_SUCCESS;
+
+ RpcTryExcept
+ {
+ _RpcCloseHandle(hClientHandle);
+ }
+ RpcExcept(EXCEPTION_EXECUTE_HANDLER)
+ {
+ dwError = RpcExceptionCode();
+ }
+ RpcEndExcept;
+
+ return dwError;
+}
+
+void __RPC_FAR * __RPC_USER
+midl_user_allocate(size_t len)
+{
+ return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len);
+}
+
+
+void __RPC_USER
+midl_user_free(void __RPC_FAR * ptr)
+{
+ HeapFree(GetProcessHeap(), 0, ptr);
+}
+
Modified: trunk/reactos/dll/win32/wlanapi/wlanapi.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wlanapi/wlanapi.…
==============================================================================
--- trunk/reactos/dll/win32/wlanapi/wlanapi.rbuild [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/wlanapi/wlanapi.rbuild [iso-8859-1] Mon Mar 16 11:23:58 2009
@@ -1,7 +1,11 @@
<module name="wlanapi" type="win32dll"
baseaddress="${BASEADDRESS_WLANAPI}" installbase="system32"
installname="wlanapi.dll" entrypoint="0">
<importlibrary definition="wlanapi.spec" />
<include base="wlanapi">.</include>
+ <include base="wlansvc_client">.</include>
+ <library>wlansvc_client</library>
<library>kernel32</library>
+ <library>rpcrt4</library>
+ <library>pseh</library>
<library>ntdll</library>
<file>main.c</file>
<!-- See
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38054#c7 -->
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 16 11:23:58 2009
@@ -188,6 +188,8 @@
#if !defined(__midl) && !defined(__WIDL__)
PVOID WINAPI WlanAllocateMemory(DWORD dwSize);
VOID WINAPI WlanFreeMemory(PVOID pMemory);
+DWORD WINAPI WlanOpenHandle(IN DWORD dwClientVersion, PVOID pReserved, OUT DWORD
*pdwNegotiatedVersion, OUT HANDLE *phClientHandle);
+DWORD WINAPI WlanCloseHandle(IN HANDLE hClientHandle, PVOID pReserved);
#endif
#ifdef __cplusplus