msisys.ocx: Fix the signature of DllGetClassObject to match that declared in the...
[wine] / dlls / msisys.ocx / msisys.c
1 /*
2  * Stub implementation of MSISYS.OCX to prevent MSINFO32.EXE from crashing.
3  *
4  * Copyright 2002 Mike McCormack 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20
21 #include "config.h"
22
23 #include <stdarg.h>
24
25 #include "windef.h"
26 #include "winerror.h"
27 #include "winbase.h"
28 #include "wingdi.h"
29 #include "winuser.h"
30 #include "objbase.h"
31
32 #include "wine/debug.h"
33
34 WINE_DEFAULT_DEBUG_CHANNEL(msisys);
35
36
37 /***********************************************************************
38  *              MSISYS_InitProcess (internal)
39  */
40 static BOOL MSISYS_InitProcess( void )
41 {
42         TRACE("()\n");
43
44         return TRUE;
45 }
46
47 /***********************************************************************
48  *              MSISYS_UninitProcess (internal)
49  */
50 static void MSISYS_UninitProcess( void )
51 {
52         TRACE("()\n");
53 }
54
55 /***********************************************************************
56  *              DllMain for MSISYS
57  */
58 BOOL WINAPI DllMain(
59         HINSTANCE hInstDLL,
60         DWORD fdwReason,
61         LPVOID lpvReserved )
62 {
63         TRACE("(%p,%d,%p)\n",hInstDLL,fdwReason,lpvReserved);
64
65         switch ( fdwReason )
66         {
67         case DLL_PROCESS_ATTACH:
68                 DisableThreadLibraryCalls(hInstDLL);
69                 if ( !MSISYS_InitProcess() )
70                         return FALSE;
71                 break;
72         case DLL_PROCESS_DETACH:
73                 MSISYS_UninitProcess();
74                 break;
75         }
76
77         return TRUE;
78 }
79
80
81 /***********************************************************************
82  *              DllCanUnloadNow (MSISYS.@)
83  *
84  * RETURNS
85  *    Success: S_OK
86  *    Failure: S_FALSE
87  */
88 HRESULT WINAPI DllCanUnloadNow(void)
89 {
90         return S_OK;
91 }
92
93 /***********************************************************************
94  *              DllGetClassObject (MSISYS.@)
95  */
96 HRESULT WINAPI DllGetClassObject(REFCLSID pclsid, REFIID piid, LPVOID *ppv)
97 {
98         FIXME("\n");
99
100         return CLASS_E_CLASSNOTAVAILABLE;
101 }
102
103 /***********************************************************************
104  *              DllRegisterServer (MSISYS.@)
105  */
106
107 HRESULT WINAPI DllRegisterServer( void )
108 {
109         FIXME( "(): stub\n" );
110         return E_FAIL;
111 }
112
113 /***********************************************************************
114  *              DllUnregisterServer (MSISYS.@)
115  */
116
117 HRESULT WINAPI DllUnregisterServer( void )
118 {
119         FIXME( "(): stub\n" );
120         return E_FAIL;
121 }