[MSISYS.OCX] Sync with Wine Staging 3.3. CORE-14434
[reactos.git] / dll / win32 / msisys.ocx / msisys.c
index f659d6f..e4b0df0 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-
-#include <config.h>
+#include "config.h"
 
 #include <stdarg.h>
 
-#include <windef.h>
-//#include "winerror.h"
-#include <winbase.h>
-//#include "wingdi.h"
-//#include "winuser.h"
-//#include "objbase.h"
+#include "windef.h"
+#include "winerror.h"
+#include "winbase.h"
+#include "wingdi.h"
+#include "winuser.h"
+#include "objbase.h"
 
-#include <wine/debug.h>
+#include "wine/debug.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(msisys);
 
 
-/***********************************************************************
- *             MSISYS_InitProcess (internal)
- */
-static BOOL MSISYS_InitProcess( void )
-{
-       TRACE("()\n");
-
-       return TRUE;
-}
-
-/***********************************************************************
- *             MSISYS_UninitProcess (internal)
- */
-static void MSISYS_UninitProcess( void )
-{
-       TRACE("()\n");
-}
-
-/***********************************************************************
- *             DllMain for MSISYS
- */
-BOOL WINAPI DllMain(
-       HINSTANCE hInstDLL,
-       DWORD fdwReason,
-       LPVOID lpvReserved )
-{
-       TRACE("(%p,%d,%p)\n",hInstDLL,fdwReason,lpvReserved);
-
-       switch ( fdwReason )
-       {
-       case DLL_PROCESS_ATTACH:
-                DisableThreadLibraryCalls(hInstDLL);
-               if ( !MSISYS_InitProcess() )
-                       return FALSE;
-               break;
-       case DLL_PROCESS_DETACH:
-               MSISYS_UninitProcess();
-               break;
-       }
-
-       return TRUE;
-}
-
-
 /***********************************************************************
  *             DllCanUnloadNow (MSISYS.@)
  *
@@ -89,7 +43,7 @@ BOOL WINAPI DllMain(
  */
 HRESULT WINAPI DllCanUnloadNow(void)
 {
-       return S_OK;
+       return S_FALSE;
 }
 
 /***********************************************************************