ntdll: Add default COM device for DragonFly BSD.
[wine/multimedia.git] / dlls / mmcndmgr / mmcndmgr.c
blob2a7e0d468c0eeb30ece4773a451da5de7f5387da
1 /*
3 * Copyright 2011 Alistair Leslie-Hughes
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #include <stdarg.h>
22 #define COBJMACROS
23 #include "windef.h"
24 #include "winbase.h"
25 #include "winuser.h"
26 #include "ole2.h"
27 #include "rpcproxy.h"
29 #include "wine/unicode.h"
30 #include "wine/debug.h"
31 #include "wine/library.h"
33 #include "mmc.h"
35 WINE_DEFAULT_DEBUG_CHANNEL(mmc);
37 static HINSTANCE MMC_hInstance;
39 HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
41 FIXME("(%s, %s, %p): stub\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
42 if(!ppv)
43 return E_INVALIDARG;
45 return E_NOTIMPL;
48 HRESULT WINAPI DllRegisterServer(void)
50 return __wine_register_resources( MMC_hInstance );
53 HRESULT WINAPI DllUnregisterServer(void)
55 return __wine_unregister_resources( MMC_hInstance );
58 HRESULT WINAPI DllCanUnloadNow(void)
60 return S_FALSE;
63 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
65 TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
67 switch (fdwReason)
69 case DLL_WINE_PREATTACH:
70 return FALSE; /* prefer native version */
71 case DLL_PROCESS_ATTACH:
72 MMC_hInstance = hinstDLL;
73 break;
74 case DLL_PROCESS_DETACH:
75 break;
77 return TRUE;