2007-10-08 19:38:06 +02:00
|
|
|
/*
|
2007-12-06 02:23:41 +01:00
|
|
|
* Main DLL interface to Queue Manager (BITS)
|
2007-10-08 19:38:06 +02:00
|
|
|
*
|
|
|
|
* 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"
|
2007-12-06 02:23:41 +01:00
|
|
|
|
2007-10-08 19:38:06 +02:00
|
|
|
#include "wine/debug.h"
|
|
|
|
|
2007-12-06 02:23:41 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(qmgr);
|
2007-10-08 19:38:06 +02:00
|
|
|
|
2007-12-06 02:23:41 +01:00
|
|
|
/* Entry point for DLL */
|
2007-10-08 19:38:06 +02:00
|
|
|
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
|
|
|
{
|
|
|
|
TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
|
|
|
|
|
|
|
|
switch (fdwReason)
|
|
|
|
{
|
2007-12-06 02:23:41 +01:00
|
|
|
case DLL_WINE_PREATTACH:
|
|
|
|
return FALSE; /* prefer native version */
|
|
|
|
case DLL_PROCESS_ATTACH:
|
|
|
|
DisableThreadLibraryCalls(hinstDLL);
|
|
|
|
break;
|
|
|
|
case DLL_PROCESS_DETACH:
|
|
|
|
break;
|
2007-10-08 19:38:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|