wlanapi: new dll

Ričardas Barkauskas miegalius at gmail.com
Wed Oct 20 03:24:08 CDT 2010


Allows OnLive to start. Someone from US could try if it works :)


Ričardas Barkauskas
REalm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20101020/066176c5/attachment.htm>
-------------- next part --------------
From faeca61a6a298b4c1e6ba8f044bf35e3919bdc36 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ri=C4=8Dardas=20Barkauskas?= <miegalius at gmail.com>
Date: Wed, 20 Oct 2010 11:21:15 +0300
Subject: wlanapi: new dll

---
 dlls/wlanapi/Makefile.in  |    6 +++++
 dlls/wlanapi/main.c       |   46 +++++++++++++++++++++++++++++++++++++++++++++
 dlls/wlanapi/wlanapi.spec |   36 +++++++++++++++++++++++++++++++++++
 3 files changed, 88 insertions(+), 0 deletions(-)
 create mode 100644 dlls/wlanapi/Makefile.in
 create mode 100644 dlls/wlanapi/main.c
 create mode 100644 dlls/wlanapi/wlanapi.spec

diff --git a/dlls/wlanapi/Makefile.in b/dlls/wlanapi/Makefile.in
new file mode 100644
index 0000000..1dce793
--- /dev/null
+++ b/dlls/wlanapi/Makefile.in
@@ -0,0 +1,6 @@
+MODULE    = wlanapi.dll
+
+C_SRCS = \
+	main.c
+
+ at MAKE_DLL_RULES@
diff --git a/dlls/wlanapi/main.c b/dlls/wlanapi/main.c
new file mode 100644
index 0000000..97ffd79
--- /dev/null
+++ b/dlls/wlanapi/main.c
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2010 Ričardas Barkauskas
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "config.h"
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(wlanapi);
+
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+    TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
+
+    switch (fdwReason)
+    {
+        case DLL_WINE_PREATTACH:
+            return FALSE;    /* prefer native version */
+        case DLL_PROCESS_ATTACH:
+            DisableThreadLibraryCalls(hinstDLL);
+            break;
+        case DLL_PROCESS_DETACH:
+            break;
+    }
+
+    return TRUE;
+}
diff --git a/dlls/wlanapi/wlanapi.spec b/dlls/wlanapi/wlanapi.spec
new file mode 100644
index 0000000..670c41f
--- /dev/null
+++ b/dlls/wlanapi/wlanapi.spec
@@ -0,0 +1,36 @@
+@ stub WlanAllocateMemory
+@ stub WlanCloseHandle
+@ stub WlanConnect
+@ stub WlanDeleteProfile
+@ stub WlanDisconnect
+@ stub WlanEnumInterfaces
+@ stub WlanExtractPsdIEDataList
+@ stub WlanFreeMemory
+@ stub WlanGetAvailableNetworkList
+@ stub WlanGetFilterList
+@ stub WlanGetInterfaceCapability
+@ stub WlanGetNetworkBssList
+@ stub WlanGetProfile
+@ stub WlanGetProfileCustomUserData
+@ stub WlanGetProfileList
+@ stub WlanGetSecuritySettings
+@ stub WlanIhvControl
+@ stub WlanOpenHandle
+@ stub WlanQueryAutoConfigParameter
+@ stub WlanQueryInterface
+@ stub WlanReasonCodeToString
+@ stub WlanRegisterNotification
+@ stub WlanRenameProfile
+@ stub WlanSaveTemporaryProfile
+@ stub WlanScan
+@ stub WlanSetAutoConfigParameter
+@ stub WlanSetFilterList
+@ stub WlanSetInterface
+@ stub WlanSetProfile
+@ stub WlanSetProfileCustomUserData
+@ stub WlanSetProfileEapUserData
+@ stub WlanSetProfileEapXmlUserData
+@ stub WlanSetProfileList
+@ stub WlanSetProfilePosition
+@ stub WlanSetPsdIEDataList
+@ stub WlanSetSecuritySettings
-- 
1.7.1


More information about the wine-patches mailing list