bits[1/3]: Minimal Background Intelligent Transfer Service (bits) implementation

Roy Shea roy at cs.hmc.edu
Wed Sep 26 17:34:16 CDT 2007


Resubmission of a bare bones bits implementation.

-------------- next part --------------
diff --git a/dlls/bits/Makefile.in b/dlls/bits/Makefile.in
new file mode 100644
index 0000000..2c9e293
--- /dev/null
+++ b/dlls/bits/Makefile.in
@@ -0,0 +1,16 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = bits.dll
+IMPORTS   = kernel32
+EXTRALIBS = 
+
+C_SRCS = \
+	bits_main.c
+
+#RC_SRCS = version.rc
+
+ at MAKE_DLL_RULES@
+
+ at DEPENDENCIES@  # everything below this line is overwritten by make depend
diff --git a/dlls/bits/bits.spec b/dlls/bits/bits.spec
new file mode 100644
index 0000000..c5fc87a
--- /dev/null
+++ b/dlls/bits/bits.spec
@@ -0,0 +1,4 @@
+@ stub DllCanUnloadNow
+@ stub DllGetClassObject
+@ stub DllRegisterServer
+@ stub DllUnregisterServer
diff --git a/dlls/bits/bits_main.c b/dlls/bits/bits_main.c
new file mode 100644
index 0000000..cc34c01
--- /dev/null
+++ b/dlls/bits/bits_main.c
@@ -0,0 +1,47 @@
+/*
+ * Implementation of bits.dll
+ * Background Intelligent Transfer Service (bits) interface
+ *
+ * Copyright 2007 Google (Roy Shea)
+ *
+ * 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 <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+#include "objbase.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(bits);
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+    TRACE("(%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;
+}


More information about the wine-patches mailing list