ReactOS  0.4.15-dev-1171-gab82533
mscms_main.c File Reference
#include "config.h"
#include "wine/port.h"
#include "wine/debug.h"
#include "wine/library.h"
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "icm.h"
#include "mscms_priv.h"
Include dependency graph for mscms_main.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (mscms)
 
BOOL WINAPI DllMain (HINSTANCE hinst, DWORD reason, LPVOID reserved)
 

Function Documentation

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hinst,
DWORD  reason,
LPVOID  reserved 
)

Definition at line 46 of file mscms_main.c.

47 {
48  TRACE( "(%p, %d, %p)\n", hinst, reason, reserved );
49 
50  switch (reason)
51  {
52  case DLL_PROCESS_ATTACH:
54 #ifdef HAVE_LCMS2
55  cmsSetLogErrorHandler( lcms_error_handler );
56 #else
57  ERR( "No support for liblcms2, expect problems\n" );
58 #endif
59  break;
60  case DLL_PROCESS_DETACH:
61  if (reserved) break;
62 #ifdef HAVE_LCMS2
63  free_handle_tables();
64 #endif
65  break;
66  }
67  return TRUE;
68 }
#define TRUE
Definition: types.h:120
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
r reserved
Definition: btrfs.c:2940
#define DLL_PROCESS_DETACH
Definition: compat.h:130
#define TRACE(s)
Definition: solgame.cpp:4
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1904
#define ERR(fmt,...)
Definition: debug.h:110
static HINSTANCE hinst
Definition: edit.c:551

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( mscms  )