Assorted typo, spelling, wording and case fixes.
[wine] / dlls / mmcndmgr / mmcndmgr.c
1 /*
2  *
3  * Copyright 2011 Alistair Leslie-Hughes
4  *
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.
9  *
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.
14  *
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
18  */
19
20 #include <stdarg.h>
21
22 #define COBJMACROS
23 #include "windef.h"
24 #include "winbase.h"
25 #include "winuser.h"
26 #include "ole2.h"
27 #include "rpcproxy.h"
28
29 #include "wine/unicode.h"
30 #include "wine/debug.h"
31 #include "wine/library.h"
32
33 #include "mmc.h"
34
35 WINE_DEFAULT_DEBUG_CHANNEL(mmc);
36
37 static HINSTANCE MMC_hInstance;
38
39 HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
40 {
41     FIXME("(%s, %s, %p): stub\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
42     if(!ppv)
43         return E_INVALIDARG;
44
45     return E_NOTIMPL;
46 }
47
48 HRESULT WINAPI DllRegisterServer(void)
49 {
50     return __wine_register_resources( MMC_hInstance );
51 }
52
53 HRESULT WINAPI DllUnregisterServer(void)
54 {
55     return __wine_unregister_resources( MMC_hInstance );
56 }
57
58 HRESULT WINAPI DllCanUnloadNow(void)
59 {
60     return S_FALSE;
61 }
62
63 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
64 {
65     TRACE("(%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
66
67     switch (fdwReason)
68     {
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;
76     }
77     return TRUE;
78 }