qmgr: Skeleton implementation of Background Intelligent Transfer Service (BITS).

This commit is contained in:
Roy Shea 2007-10-08 10:38:06 -07:00 committed by Alexandre Julliard
parent c881875c07
commit 2b0255f6d8
7 changed files with 72 additions and 0 deletions

View File

@ -347,6 +347,7 @@ ALL_MAKEFILES = \
dlls/psapi/tests/Makefile \
dlls/pstorec/Makefile \
dlls/qcap/Makefile \
dlls/qmgr/Makefile \
dlls/quartz/Makefile \
dlls/quartz/tests/Makefile \
dlls/query/Makefile \
@ -717,6 +718,7 @@ dlls/psapi/Makefile: dlls/psapi/Makefile.in dlls/Makedll.rules
dlls/psapi/tests/Makefile: dlls/psapi/tests/Makefile.in dlls/Maketest.rules
dlls/pstorec/Makefile: dlls/pstorec/Makefile.in dlls/Makedll.rules
dlls/qcap/Makefile: dlls/qcap/Makefile.in dlls/Makedll.rules
dlls/qmgr/Makefile: dlls/qmgr/Makefile.in dlls/Makedll.rules
dlls/quartz/Makefile: dlls/quartz/Makefile.in dlls/Makedll.rules
dlls/quartz/tests/Makefile: dlls/quartz/tests/Makefile.in dlls/Maketest.rules
dlls/query/Makefile: dlls/query/Makefile.in dlls/Makedll.rules

3
configure vendored
View File

@ -20650,6 +20650,8 @@ ac_config_files="$ac_config_files dlls/pstorec/Makefile"
ac_config_files="$ac_config_files dlls/qcap/Makefile"
ac_config_files="$ac_config_files dlls/qmgr/Makefile"
ac_config_files="$ac_config_files dlls/quartz/Makefile"
ac_config_files="$ac_config_files dlls/quartz/tests/Makefile"
@ -21737,6 +21739,7 @@ do
"dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
"dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
"dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
"dlls/qmgr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qmgr/Makefile" ;;
"dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
"dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
"dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;

View File

@ -1745,6 +1745,7 @@ AC_CONFIG_FILES([dlls/psapi/Makefile])
AC_CONFIG_FILES([dlls/psapi/tests/Makefile])
AC_CONFIG_FILES([dlls/pstorec/Makefile])
AC_CONFIG_FILES([dlls/qcap/Makefile])
AC_CONFIG_FILES([dlls/qmgr/Makefile])
AC_CONFIG_FILES([dlls/quartz/Makefile])
AC_CONFIG_FILES([dlls/quartz/tests/Makefile])
AC_CONFIG_FILES([dlls/query/Makefile])

View File

@ -157,6 +157,7 @@ BASEDIRS = \
psapi \
pstorec \
qcap \
qmgr \
quartz \
query \
rasapi32 \

14
dlls/qmgr/Makefile.in Normal file
View File

@ -0,0 +1,14 @@
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR = @srcdir@
VPATH = @srcdir@
MODULE = qmgr.dll
IMPORTS = kernel32
EXTRALIBS =
C_SRCS = \
bits_main.c
@MAKE_DLL_RULES@
@DEPENDENCIES@ # everything below this line is overwritten by make depend

49
dlls/qmgr/bits_main.c Normal file
View File

@ -0,0 +1,49 @@
/*
* Implementation of qmgr.dll
*
* Background Intelligent Transfer Service (BITS) interface. Dll is named
* qmgr for backwards compatibility with early versions of BITS.
*
* 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;
}

2
dlls/qmgr/qmgr.spec Normal file
View File

@ -0,0 +1,2 @@
@ stub DllRegisterServer
@ stub DllUnregisterServer