kernel: Implement FT_Exit directly in assembly to avoid the overhead
[wine/multimedia.git] / dlls / msisys / msisys.c
blobdbcb52fa70b8aa16d606ecb6ae8532882cc6d98f
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"
30 #include "objbase.h"
32 #include "wine/debug.h"
34 WINE_DEFAULT_DEBUG_CHANNEL(msisys);
37 /***********************************************************************
38 * MSISYS_InitProcess (internal)
40 static BOOL MSISYS_InitProcess( void )
42 TRACE("()\n");
44 return TRUE;
47 /***********************************************************************
48 * MSISYS_UninitProcess (internal)
50 static void MSISYS_UninitProcess( void )
52 TRACE("()\n");
55 /***********************************************************************
56 * DllMain for MSISYS
58 BOOL WINAPI DllMain(
59 HINSTANCE hInstDLL,
60 DWORD fdwReason,
61 LPVOID lpvReserved )
63 TRACE("(%p,%ld,%p)\n",hInstDLL,fdwReason,lpvReserved);
65 switch ( fdwReason )
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;
77 return TRUE;
81 /***********************************************************************
82 * DllCanUnloadNow (MSISYS.@)
84 * RETURNS
85 * Success: S_OK
86 * Failure: S_FALSE
88 HRESULT WINAPI DllCanUnloadNow(void)
90 return S_OK;
93 /***********************************************************************
94 * DllGetClassObject (MSISYS.@)
96 HRESULT WINAPI DllGetClassObject(REFCLSID pclsid, const IID* piid, LPVOID *ppv)
98 FIXME("\n");
100 return CLASS_E_CLASSNOTAVAILABLE;
103 /***********************************************************************
104 * DllRegisterServer (MSISYS.@)
107 HRESULT WINAPI DllRegisterServer( void )
109 FIXME( "(): stub\n" );
110 return E_FAIL;
113 /***********************************************************************
114 * DllUnregisterServer (MSISYS.@)
117 HRESULT WINAPI DllUnregisterServer( void )
119 FIXME( "(): stub\n" );
120 return E_FAIL;