Fixed header dependencies to be fully compatible with the Windows
[wine/multimedia.git] / dlls / msisys / msisys.c
blobbc4ef074779ef1b306289ea68ca71d3a79ce325c
1 /*
2 * Stub implementation of MSISYS.OCX to prevent MSINFO32.EXE from crashing.
4 * Copyright 2002 Mike McCormack for Codeweavers
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.
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.
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
21 #include "config.h"
23 #include <stdarg.h>
25 #include "windef.h"
26 #include "winerror.h"
27 #include "winbase.h"
28 #include "wingdi.h"
29 #include "winuser.h"
31 #include "wine/debug.h"
33 WINE_DEFAULT_DEBUG_CHANNEL(msisys);
36 /***********************************************************************
37 * MSISYS_InitProcess (internal)
39 static BOOL MSISYS_InitProcess( void )
41 TRACE("()\n");
43 return TRUE;
46 /***********************************************************************
47 * MSISYS_UninitProcess (internal)
49 static void MSISYS_UninitProcess( void )
51 TRACE("()\n");
54 /***********************************************************************
55 * DllMain for MSISYS
57 BOOL WINAPI DllMain(
58 HINSTANCE hInstDLL,
59 DWORD fdwReason,
60 LPVOID lpvReserved )
62 TRACE("(%p,%08lx,%p)\n",hInstDLL,fdwReason,lpvReserved);
64 switch ( fdwReason )
66 case DLL_PROCESS_ATTACH:
67 DisableThreadLibraryCalls(hInstDLL);
68 if ( !MSISYS_InitProcess() )
69 return FALSE;
70 break;
71 case DLL_PROCESS_DETACH:
72 MSISYS_UninitProcess();
73 break;
76 return TRUE;
80 /***********************************************************************
81 * DllCanUnloadNow (MSISYS.@)
83 * RETURNS
84 * Success: S_OK
85 * Failure: S_FALSE
87 HRESULT WINAPI MSISYS_DllCanUnloadNow(void)
89 return S_OK;
92 /***********************************************************************
93 * DllGetClassObject (MSISYS.@)
95 HRESULT WINAPI MSISYS_DllGetClassObject(
96 const CLSID* pclsid,const IID* piid,void** ppv)
98 FIXME("\n");
100 return CLASS_E_CLASSNOTAVAILABLE;
103 /***********************************************************************
104 * DllRegisterServer (MSISYS.@)
107 HRESULT WINAPI MSISYS_DllRegisterServer( void )
109 FIXME( "(): stub\n" );
110 return E_FAIL;
113 /***********************************************************************
114 * DllUnregisterServer (MSISYS.@)
117 HRESULT WINAPI MSISYS_DllUnregisterServer( void )
119 FIXME( "(): stub\n" );
120 return E_FAIL;