ReactOS  0.4.15-dev-1197-g8081ba9
msftedit_main.c File Reference
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winreg.h"
#include "wingdi.h"
#include "winuser.h"
#include "richedit.h"
#include "imm.h"
#include "shlwapi.h"
#include "oleidl.h"
#include "initguid.h"
#include "textserv.h"
#include "wine/debug.h"
Include dependency graph for msftedit_main.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (msftedit)
 
BOOL WINAPI DllMain (HINSTANCE inst, DWORD reason, LPVOID reserved)
 
HRESULT WINAPI DllGetVersion (DLLVERSIONINFO *info)
 

Function Documentation

◆ DllGetVersion()

HRESULT WINAPI DllGetVersion ( DLLVERSIONINFO info)

Definition at line 67 of file msftedit_main.c.

68 {
69  if (info->cbSize != sizeof(DLLVERSIONINFO)) FIXME("support DLLVERSIONINFO2\n");
70 
71  /* this is what WINXP SP2 reports */
72  info->dwMajorVersion = 41;
73  info->dwMinorVersion = 15;
74  info->dwBuildNumber = 1507;
75  info->dwPlatformID = 1;
76  return NOERROR;
77 }
#define NOERROR
Definition: winerror.h:2354
#define FIXME(fmt,...)
Definition: debug.h:111

◆ DllMain()

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

Definition at line 43 of file msftedit_main.c.

44 {
45  static const WCHAR riched20W[] = {'r','i','c','h','e','d','2','0','.','d','l','l',0};
46  static HMODULE richedit;
47 
48  switch(reason)
49  {
50  case DLL_WINE_PREATTACH:
51  return FALSE; /* prefer native version */
52  case DLL_PROCESS_ATTACH:
53  /* explicitly load riched20 since it creates the window classes at dll attach time */
54  richedit = LoadLibraryW( riched20W );
56  break;
57  case DLL_PROCESS_DETACH:
58  FreeLibrary( richedit );
59  break;
60  }
61  return TRUE;
62 }
#define TRUE
Definition: types.h:120
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define FALSE
Definition: types.h:117
#define LoadLibraryW(x)
Definition: compat.h:495
#define DLL_PROCESS_DETACH
Definition: compat.h:130
#define FreeLibrary(x)
Definition: compat.h:496
__wchar_t WCHAR
Definition: xmlstorage.h:180
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1904

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( msftedit  )