ReactOS 0.4.16-dev-959-g2ec3a19
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 69 of file msftedit_main.c.

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

◆ 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#ifndef __REACTOS__
51 case DLL_WINE_PREATTACH:
52 return FALSE; /* prefer native version */
53#endif
55 /* explicitly load riched20 since it creates the window classes at dll attach time */
56 richedit = LoadLibraryW( riched20W );
58 break;
60 FreeLibrary( richedit );
61 break;
62 }
63 return TRUE;
64}
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
static WCHAR reason[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1904
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130
#define FreeLibrary(x)
Definition: compat.h:748
#define LoadLibraryW(x)
Definition: compat.h:747
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
__wchar_t WCHAR
Definition: xmlstorage.h:180

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( msftedit  )