kernel32: Use ntdll functions where possible to implement the pthread wrappers.
[wine/wine-kai.git] / dlls / msxml3 / main.c
blobb301ab7523997eb1e520beb2377a0bddf4f763ef
1 /*
2 * MSXML Class Factory
4 * Copyright 2002 Lionel Ulmer
5 * Copyright 2005 Mike McCormack
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include "config.h"
24 #define COBJMACROS
26 #include <stdarg.h>
27 #include "windef.h"
28 #include "winbase.h"
29 #include "winuser.h"
30 #include "ole2.h"
31 #include "msxml.h"
32 #include "msxml2.h"
34 #include "wine/debug.h"
36 #include "msxml_private.h"
38 #ifdef HAVE_LIBXSLT
39 #include <libxslt/xslt.h>
40 #endif
42 WINE_DEFAULT_DEBUG_CHANNEL(msxml);
44 HRESULT WINAPI DllCanUnloadNow(void)
46 FIXME("\n");
47 return S_FALSE;
50 BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
52 switch(fdwReason)
54 case DLL_PROCESS_ATTACH:
55 #ifdef HAVE_LIBXML2
56 xmlInitParser();
58 /* Set the default indent character to a single tab. */
59 xmlThrDefTreeIndentString("\t");
60 #endif
61 #ifdef HAVE_XSLTINIT
62 xsltInit();
63 #endif
65 #ifdef HAVE_LIBXML2
66 /* Set the current ident to the default */
67 xmlTreeIndentString = "\t";
68 #endif
69 DisableThreadLibraryCalls(hInstDLL);
70 break;
71 case DLL_PROCESS_DETACH:
72 #ifdef HAVE_LIBXSLT
73 xsltCleanupGlobals();
74 #endif
75 #ifdef HAVE_LIBXML2
76 xmlCleanupParser();
77 #endif
78 release_typelib();
79 break;
81 return TRUE;