rsaenh: Change the way AES 128 is derived to match Windows behavior.
[wine.git] / dlls / qmgr / qmgr_main.c
blob97c206af29ebd31f1f413ff8798b8dab470a45aa
1 /*
2 * Main DLL interface to Queue Manager (BITS)
4 * Background Intelligent Transfer Service (BITS) interface. Dll is named
5 * qmgr for backwards compatibility with early versions of BITS.
7 * Copyright 2007 Google (Roy Shea)
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
24 #include <stdio.h>
26 #include "objbase.h"
27 #include "winuser.h"
28 #include "winreg.h"
29 #include "advpub.h"
30 #include "olectl.h"
31 #include "rpcproxy.h"
32 #include "winsvc.h"
34 #include "bits.h"
35 #include "qmgr.h"
36 #include "initguid.h"
38 #include "wine/debug.h"
40 WINE_DEFAULT_DEBUG_CHANNEL(qmgr);
42 /* Handle to the base address of this DLL */
43 static HINSTANCE hInst;
45 /* Entry point for DLL */
46 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
48 TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
50 switch (fdwReason)
52 case DLL_WINE_PREATTACH:
53 return FALSE; /* prefer native version */
54 case DLL_PROCESS_ATTACH:
55 DisableThreadLibraryCalls(hinstDLL);
56 hInst = hinstDLL;
57 break;
60 return TRUE;
63 HRESULT WINAPI DllRegisterServer(void)
65 return __wine_register_resources(hInst);
68 HRESULT WINAPI DllUnregisterServer(void)
70 return __wine_unregister_resources(hInst);