Better implementation of GetCalendarInfo{A,W}, not perfect.
[wine] / dlls / shdocvw / shdocvw_main.c
1 /*
2  * SHDOCVW - Internet Explorer Web Control
3  *
4  * Copyright 2001 John R. Sheets (for CodeWeavers)
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #include <string.h>
22 #include "winreg.h"
23 #include "initguid.h"
24 #include "ole2.h"
25 #include "shlwapi.h"
26
27 #include "shdocvw.h"
28 #include "wine/debug.h"
29
30 WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
31
32 /***********************************************************************
33  *              DllCanUnloadNow (SHDOCVW.109) */
34 HRESULT WINAPI SHDOCVW_DllCanUnloadNow(void)
35 {
36     FIXME("(void): stub\n");
37
38     return S_FALSE;
39 }
40
41 /*************************************************************************
42  *              DllGetClassObject (SHDOCVW.312)
43  */
44 HRESULT WINAPI SHDOCVW_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
45 {
46     TRACE("\n");
47
48     if (IsEqualGUID(&IID_IClassFactory, riid))
49     {
50         /* Pass back our shdocvw class factory */
51         *ppv = (LPVOID)&SHDOCVW_ClassFactory;
52         IClassFactory_AddRef((IClassFactory*)&SHDOCVW_ClassFactory);
53
54         return S_OK;
55     }
56
57     return CLASS_E_CLASSNOTAVAILABLE;
58 }
59
60 /***********************************************************************
61  *              DllGetVersion (SHDOCVW.113)
62  */
63 HRESULT WINAPI SHDOCVW_DllGetVersion (DLLVERSIONINFO *pdvi)
64 {
65     FIXME("(void): stub\n");
66     return S_FALSE;
67 }
68
69 /*************************************************************************
70  *              DllInstall (SHDOCVW.114)
71  */
72 HRESULT WINAPI SHDOCVW_DllInstall(BOOL bInstall, LPCWSTR cmdline)
73 {
74    FIXME("(%s, %s): stub!\n", bInstall ? "TRUE":"FALSE", debugstr_w(cmdline));
75
76    return S_OK;
77 }
78
79 /***********************************************************************
80  *              DllRegisterServer (SHDOCVW.124)
81  */
82 HRESULT WINAPI SHDOCVW_DllRegisterServer()
83 {
84     FIXME("(), stub!\n");
85     return S_OK;
86 }
87
88 /***********************************************************************
89  *              DllUnregisterServer (SHDOCVW.127)
90  */
91 HRESULT WINAPI SHDOCVW_DllUnregisterServer()
92 {
93     FIXME("(), stub!\n");
94     return S_OK;
95 }
96