Do not clear FD_WINE_CONNECTED on shutdown(). FD_WINE_CONNECTED
[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 #define COM_NO_WINDOWS_H
22 #include <string.h>
23 #include "winreg.h"
24 #include "initguid.h"
25 #include "ole2.h"
26 #include "shlwapi.h"
27
28 #include "shdocvw.h"
29 #include "wine/debug.h"
30
31 WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
32
33 /***********************************************************************
34  *              DllCanUnloadNow (SHDOCVW.@)
35  */
36 HRESULT WINAPI SHDOCVW_DllCanUnloadNow(void)
37 {
38     FIXME("(void): stub\n");
39
40     return S_FALSE;
41 }
42
43 /*************************************************************************
44  *              DllGetClassObject (SHDOCVW.@)
45  */
46 HRESULT WINAPI SHDOCVW_DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
47 {
48     TRACE("\n");
49
50     if (IsEqualGUID(&IID_IClassFactory, riid))
51     {
52         /* Pass back our shdocvw class factory */
53         *ppv = (LPVOID)&SHDOCVW_ClassFactory;
54         IClassFactory_AddRef((IClassFactory*)&SHDOCVW_ClassFactory);
55
56         return S_OK;
57     }
58
59     return CLASS_E_CLASSNOTAVAILABLE;
60 }
61
62 /***********************************************************************
63  *              DllGetVersion (SHDOCVW.@)
64  */
65 HRESULT WINAPI SHDOCVW_DllGetVersion (DLLVERSIONINFO *pdvi)
66 {
67     FIXME("(void): stub\n");
68     return S_FALSE;
69 }
70
71 /*************************************************************************
72  *              DllInstall (SHDOCVW.@)
73  */
74 HRESULT WINAPI SHDOCVW_DllInstall(BOOL bInstall, LPCWSTR cmdline)
75 {
76    FIXME("(%s, %s): stub!\n", bInstall ? "TRUE":"FALSE", debugstr_w(cmdline));
77
78    return S_OK;
79 }
80
81 /***********************************************************************
82  *              DllRegisterServer (SHDOCVW.@)
83  */
84 HRESULT WINAPI SHDOCVW_DllRegisterServer()
85 {
86     FIXME("(), stub!\n");
87     return S_OK;
88 }
89
90 /***********************************************************************
91  *              DllUnregisterServer (SHDOCVW.@)
92  */
93 HRESULT WINAPI SHDOCVW_DllUnregisterServer()
94 {
95     FIXME("(), stub!\n");
96     return S_OK;
97 }