2005-08-02 11:29:04 +00:00
|
|
|
/*
|
|
|
|
* MSXML Class Factory
|
|
|
|
*
|
|
|
|
* Copyright 2002 Lionel Ulmer
|
|
|
|
* Copyright 2005 Mike McCormack
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 12:49:52 +00:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2005-08-02 11:29:04 +00:00
|
|
|
*/
|
|
|
|
|
2005-08-09 11:17:47 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
2005-08-02 11:29:04 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "winuser.h"
|
2005-08-12 11:20:26 +00:00
|
|
|
#include "winreg.h"
|
2005-08-02 11:29:04 +00:00
|
|
|
#include "ole2.h"
|
2005-11-08 19:59:36 +00:00
|
|
|
#include "msxml2.h"
|
2005-08-02 11:29:04 +00:00
|
|
|
|
|
|
|
#include "wine/debug.h"
|
|
|
|
|
2005-08-09 11:17:47 +00:00
|
|
|
#include "msxml_private.h"
|
|
|
|
|
2005-08-02 11:29:04 +00:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(msxml);
|
|
|
|
|
2005-08-08 17:35:28 +00:00
|
|
|
HRESULT WINAPI DllCanUnloadNow(void)
|
2005-08-02 11:29:04 +00:00
|
|
|
{
|
|
|
|
FIXME("\n");
|
|
|
|
return S_FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
|
|
|
|
{
|
|
|
|
switch(fdwReason)
|
|
|
|
{
|
|
|
|
case DLL_PROCESS_ATTACH:
|
2005-08-09 11:17:47 +00:00
|
|
|
#ifdef HAVE_LIBXML2
|
|
|
|
xmlInitParser();
|
|
|
|
#endif
|
2005-08-02 11:29:04 +00:00
|
|
|
DisableThreadLibraryCalls(hInstDLL);
|
|
|
|
break;
|
|
|
|
case DLL_PROCESS_DETACH:
|
2005-08-09 11:17:47 +00:00
|
|
|
#ifdef HAVE_LIBXML2
|
|
|
|
xmlCleanupParser();
|
|
|
|
#endif
|
2005-08-02 11:29:04 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|