Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenmsftedit_main.c
Go to the documentation of this file.
00001 /* 00002 * msftedit main file 00003 * 00004 * Copyright (C) 2008 Rico Schüller 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00019 * 00020 */ 00021 00022 #include "config.h" 00023 #include "wine/port.h" 00024 00025 #include <stdarg.h> 00026 00027 #include "windef.h" 00028 #include "winbase.h" 00029 #include "winreg.h" 00030 #include "wingdi.h" 00031 #include "winuser.h" 00032 #include "richedit.h" 00033 #include "imm.h" 00034 #include "shlwapi.h" 00035 #include "oleidl.h" 00036 #include "initguid.h" 00037 #include "textserv.h" 00038 00039 #include "wine/debug.h" 00040 00041 WINE_DEFAULT_DEBUG_CHANNEL(msftedit); 00042 00043 /*********************************************************************** 00044 * DllMain. 00045 */ 00046 BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) 00047 { 00048 static const WCHAR riched20W[] = {'r','i','c','h','e','d','2','0','.','d','l','l',0}; 00049 static HMODULE richedit; 00050 00051 switch(reason) 00052 { 00053 case DLL_WINE_PREATTACH: 00054 return FALSE; /* prefer native version */ 00055 case DLL_PROCESS_ATTACH: 00056 /* explicitly load riched20 since it creates the window classes at dll attach time */ 00057 richedit = LoadLibraryW( riched20W ); 00058 DisableThreadLibraryCalls(inst); 00059 break; 00060 case DLL_PROCESS_DETACH: 00061 FreeLibrary( richedit ); 00062 break; 00063 } 00064 return TRUE; 00065 } 00066 00067 /*********************************************************************** 00068 * DllGetVersion (msftedit.@) 00069 */ 00070 HRESULT WINAPI DllGetVersion(DLLVERSIONINFO *info) 00071 { 00072 if (info->cbSize != sizeof(DLLVERSIONINFO)) FIXME("support DLLVERSIONINFO2\n"); 00073 00074 /* this is what WINXP SP2 reports */ 00075 info->dwMajorVersion = 41; 00076 info->dwMinorVersion = 15; 00077 info->dwBuildNumber = 1507; 00078 info->dwPlatformID = 1; 00079 return NOERROR; 00080 } Generated on Thu May 24 2012 04:25:15 for ReactOS by
1.7.6.1
|