ReactOS 0.4.15-dev-8119-g4fb2fdb
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 FIXME(fmt,...)
Definition: debug.h:114
#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 case DLL_WINE_PREATTACH:
51 return FALSE; /* prefer native version */
53 /* explicitly load riched20 since it creates the window classes at dll attach time */
54 richedit = LoadLibraryW( riched20W );
56 break;
58 FreeLibrary( richedit );
59 break;
60 }
61 return TRUE;
62}
#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  )