Create a branch for Aleksandar Andrejevic for his work on NTVDM. See http://jira...
[reactos.git] / dll / win32 / 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 #define WIN32_NO_STATUS
22
23 #include <config.h>
24
25 #include <stdarg.h>
26
27 #include <windef.h>
28 //#include "winerror.h"
29 #include <winbase.h>
30 //#include "wingdi.h"
31 //#include "winuser.h"
32 //#include "objbase.h"
33
34 #include <wine/debug.h>
35
36 WINE_DEFAULT_DEBUG_CHANNEL(msisys);
37
38
39 /***********************************************************************
40 * MSISYS_InitProcess (internal)
41 */
42 static BOOL MSISYS_InitProcess( void )
43 {
44 TRACE("()\n");
45
46 return TRUE;
47 }
48
49 /***********************************************************************
50 * MSISYS_UninitProcess (internal)
51 */
52 static void MSISYS_UninitProcess( void )
53 {
54 TRACE("()\n");
55 }
56
57 /***********************************************************************
58 * DllMain for MSISYS
59 */
60 BOOL WINAPI DllMain(
61 HINSTANCE hInstDLL,
62 DWORD fdwReason,
63 LPVOID lpvReserved )
64 {
65 TRACE("(%p,%d,%p)\n",hInstDLL,fdwReason,lpvReserved);
66
67 switch ( fdwReason )
68 {
69 case DLL_PROCESS_ATTACH:
70 DisableThreadLibraryCalls(hInstDLL);
71 if ( !MSISYS_InitProcess() )
72 return FALSE;
73 break;
74 case DLL_PROCESS_DETACH:
75 MSISYS_UninitProcess();
76 break;
77 }
78
79 return TRUE;
80 }
81
82
83 /***********************************************************************
84 * DllCanUnloadNow (MSISYS.@)
85 *
86 * RETURNS
87 * Success: S_OK
88 * Failure: S_FALSE
89 */
90 HRESULT WINAPI DllCanUnloadNow(void)
91 {
92 return S_OK;
93 }
94
95 /***********************************************************************
96 * DllGetClassObject (MSISYS.@)
97 */
98 HRESULT WINAPI DllGetClassObject(REFCLSID pclsid, REFIID piid, LPVOID *ppv)
99 {
100 FIXME("\n");
101
102 return CLASS_E_CLASSNOTAVAILABLE;
103 }
104
105 /***********************************************************************
106 * DllRegisterServer (MSISYS.@)
107 */
108
109 HRESULT WINAPI DllRegisterServer( void )
110 {
111 FIXME( "(): stub\n" );
112 return E_FAIL;
113 }
114
115 /***********************************************************************
116 * DllUnregisterServer (MSISYS.@)
117 */
118
119 HRESULT WINAPI DllUnregisterServer( void )
120 {
121 FIXME( "(): stub\n" );
122 return E_FAIL;
123 }