ReactOS  0.4.15-dev-1397-g19779b3
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 398 of file main.c.

399 {
400  return S_FALSE;
401 }
#define S_FALSE
Definition: winerror.h:2357

◆ DllMain()

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

Definition at line 404 of file main.c.

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

◆ DllRegisterServer()

HRESULT WINAPI DllRegisterServer ( void  )

Definition at line 457 of file main.c.

458 {
460 }
HRESULT __wine_register_resources(HMODULE module) DECLSPEC_HIDDEN
Definition: register.c:98
HINSTANCE MSXML_hInstance
Definition: main.c:62

◆ DllUnregisterServer()

HRESULT WINAPI DllUnregisterServer ( void  )

Definition at line 465 of file main.c.

466 {
468 }
HRESULT __wine_unregister_resources(HMODULE module) DECLSPEC_HIDDEN
Definition: register.c:110
HINSTANCE MSXML_hInstance
Definition: main.c:62

Variable Documentation

◆ MSXML_hInstance

HINSTANCE MSXML_hInstance = NULL

Definition at line 62 of file main.c.

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