ReactOS 0.4.15-dev-8222-g9164419
main.c File Reference
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "ole2.h"
#include "rpcproxy.h"
#include "msxml.h"
#include "msxml6.h"
#include "wine/unicode.h"
#include "wine/debug.h"
#include "wine/library.h"
#include "msxml_private.h"
Include dependency graph for main.c:

Go to the source code of this file.

Macros

#define COBJMACROS
 

Functions

HRESULT WINAPI DllCanUnloadNow (void)
 
BOOL WINAPI DllMain (HINSTANCE hInstDLL, DWORD fdwReason, LPVOID reserved)
 
HRESULT WINAPI DllRegisterServer (void)
 
HRESULT WINAPI DllUnregisterServer (void)
 

Variables

HINSTANCE MSXML_hInstance = NULL
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 25 of file main.c.

Function Documentation

◆ DllCanUnloadNow()

HRESULT WINAPI DllCanUnloadNow ( void  )

Definition at line 396 of file main.c.

397{
398 return S_FALSE;
399}
#define S_FALSE
Definition: winerror.h:2357

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hInstDLL,
DWORD  fdwReason,
LPVOID  reserved 
)

Definition at line 402 of file main.c.

403{
404 MSXML_hInstance = hInstDLL;
405
406 switch(fdwReason)
407 {
409#ifdef HAVE_LIBXML2
411
412 /* Set the default indent character to a single tab,
413 for this thread and as default for new threads */
414 xmlTreeIndentString = "\t";
416
417 /* Register callbacks for loading XML files */
418 if(xmlRegisterInputCallbacks(wineXmlMatchCallback, wineXmlOpenCallback,
419 wineXmlReadCallback, wineXmlFileCloseCallback) == -1)
420 WARN("Failed to register callbacks\n");
421
422 init_char_encoders();
423
424 schemasInit();
425 init_libxslt();
426#endif
428 break;
430 if (reserved) break;
431#ifdef HAVE_LIBXML2
432#ifdef SONAME_LIBXSLT
433 if (libxslt_handle)
434 {
435 pxsltCleanupGlobals();
436 wine_dlclose(libxslt_handle, NULL, 0);
437 }
438#endif
439 /* Restore default Callbacks */
442
444 schemasCleanup();
445#endif
447 break;
448 }
449 return TRUE;
450}
void release_typelib(void)
Definition: apps.c:159
#define WARN(fmt,...)
Definition: debug.h:115
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
HINSTANCE MSXML_hInstance
Definition: main.c:62
r reserved
Definition: btrfs.c:3006
int wine_dlclose(void *handle, char *error, size_t errorsize)
Definition: loader.c:58
XMLPUBFUN const char *XMLCALL xmlThrDefTreeIndentString(const char *v)
Definition: globals.c:907
XMLPUBVAR const char * xmlTreeIndentString
Definition: globals.h:387
XMLPUBFUN void XMLCALL xmlCleanupParser(void)
Definition: parser.c:14739
XMLPUBFUN void XMLCALL xmlInitParser(void)
Definition: parser.c:14676
XMLPUBFUN int XMLCALL xmlRegisterInputCallbacks(xmlInputMatchCallback matchFunc, xmlInputOpenCallback openFunc, xmlInputReadCallback readFunc, xmlInputCloseCallback closeFunc)
XMLPUBFUN void XMLCALL xmlCleanupInputCallbacks(void)
XMLPUBFUN void XMLCALL xmlRegisterDefaultInputCallbacks(void)

◆ DllRegisterServer()

HRESULT WINAPI DllRegisterServer ( void  )

Definition at line 455 of file main.c.

456{
458}
HRESULT __wine_register_resources(HMODULE module) DECLSPEC_HIDDEN
Definition: register.c:98

◆ DllUnregisterServer()

HRESULT WINAPI DllUnregisterServer ( void  )

Definition at line 463 of file main.c.

464{
466}
HRESULT __wine_unregister_resources(HMODULE module) DECLSPEC_HIDDEN
Definition: register.c:110

Variable Documentation

◆ MSXML_hInstance

HINSTANCE MSXML_hInstance = NULL

Definition at line 62 of file main.c.

Referenced by DllMain(), DllRegisterServer(), and DllUnregisterServer().