From 9bf0b3470c2af2f59597f974363f513043a758c7 Mon Sep 17 00:00:00 2001 From: Louis Lenders Date: Sun, 22 Nov 2009 01:34:36 +0100 Subject: mapistub: add stubbed dll mapistub.dll: --- configure | 9 ++ configure.ac | 1 + dlls/mapistub/Makefile.in | 13 +++ dlls/mapistub/main.c | 48 +++++++++++ dlls/mapistub/mapistub.spec | 185 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 256 insertions(+), 0 deletions(-) create mode 100644 dlls/mapistub/Makefile.in create mode 100644 dlls/mapistub/main.c create mode 100644 dlls/mapistub/mapistub.spec diff --git a/configure b/configure index 15652b4..0ee7b69 100755 --- a/configure +++ b/configure @@ -15295,6 +15295,14 @@ dlls/mapi32/tests/Makefile: dlls/mapi32/tests/Makefile.in dlls/Maketest.rules" ac_config_files="$ac_config_files dlls/mapi32/tests/Makefile" ALL_MAKEFILES="$ALL_MAKEFILES \\ + dlls/mapistub/Makefile" +test "x$enable_mapistub" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\ + mapistub" +ALL_MAKEFILE_DEPENDS="$ALL_MAKEFILE_DEPENDS +dlls/mapistub/Makefile: dlls/mapistub/Makefile.in dlls/Makedll.rules" +ac_config_files="$ac_config_files dlls/mapistub/Makefile" + +ALL_MAKEFILES="$ALL_MAKEFILES \\ dlls/mciavi32/Makefile" test "x$enable_mciavi32" != xno && ALL_DLL_DIRS="$ALL_DLL_DIRS \\ mciavi32" @@ -18979,6 +18987,7 @@ do "dlls/lzexpand.dll16/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lzexpand.dll16/Makefile" ;; "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;; "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;; + "dlls/mapistub/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapistub/Makefile" ;; "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;; "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;; "dlls/mciqtz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciqtz32/Makefile" ;; diff --git a/configure.ac b/configure.ac index a5f1b8a..500a0a4 100644 --- a/configure.ac +++ b/configure.ac @@ -2298,6 +2298,7 @@ WINE_CONFIG_MAKEFILE([dlls/lz32/tests/Makefile],[dlls/Maketest.rules],[dlls],[AL WINE_CONFIG_MAKEFILE([dlls/lzexpand.dll16/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS],[enable_win16]) WINE_CONFIG_MAKEFILE([dlls/mapi32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/mapi32/tests/Makefile],[dlls/Maketest.rules],[dlls],[ALL_TEST_DIRS],[enable_tests]) +WINE_CONFIG_MAKEFILE([dlls/mapistub/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/mciavi32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/mcicda/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) WINE_CONFIG_MAKEFILE([dlls/mciqtz32/Makefile],[dlls/Makedll.rules],[dlls],[ALL_DLL_DIRS]) diff --git a/dlls/mapistub/Makefile.in b/dlls/mapistub/Makefile.in new file mode 100644 index 0000000..8f56d23 --- /dev/null +++ b/dlls/mapistub/Makefile.in @@ -0,0 +1,13 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = mapistub.dll +IMPORTS = kernel32 + +C_SRCS = \ + main.c + +@MAKE_DLL_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/dlls/mapistub/main.c b/dlls/mapistub/main.c new file mode 100644 index 0000000..9e20917 --- /dev/null +++ b/dlls/mapistub/main.c @@ -0,0 +1,48 @@ +/* + * Copyright 2009 Louis Lenders + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include "config.h" +#include + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(mapistub); + +/***************************************************** + * DllMain + */ +BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) +{ + TRACE("(%p, %d, %p)\n", hinst, reason, reserved); + + switch(reason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls( hinst ); + break; + + case DLL_PROCESS_DETACH: + break; + } + return TRUE; +} diff --git a/dlls/mapistub/mapistub.spec b/dlls/mapistub/mapistub.spec new file mode 100644 index 0000000..82ab253 --- /dev/null +++ b/dlls/mapistub/mapistub.spec @@ -0,0 +1,185 @@ +@ stub MAPISTUB_8 +@ stub MAPILogonEx +@ stub MAPILogonEx@20 +@ stub MAPIAllocateBuffer +@ stub MAPIAllocateBuffer@8 +@ stub MAPIAllocateMore +@ stub MAPIAllocateMore@12 +@ stub MAPIFreeBuffer +@ stub MAPIFreeBuffer@4 +@ stub MAPIAdminProfiles +@ stub MAPIAdminProfiles@8 +@ stub MAPIInitialize +@ stub MAPIInitialize@4 +@ stub MAPIUninitialize +@ stub MAPIUninitialize@0 +@ stub PRProviderInit +@ stub LAUNCHWIZARD +@ stub LaunchWizard@20 +@ stub DllGetClassObject +@ stub MAPIOpenFormMgr +@ stub MAPIOpenLocalFormContainer +@ stub MAPIOpenLocalFormContainer@4 +@ stub ScInitMapiUtil@4 +@ stub DeinitMapiUtil@0 +@ stub ScGenerateMuid@4 +@ stub HrAllocAdviseSink@12 +@ stub WrapProgress@20 +@ stub HrThisThreadAdviseSink@8 +@ stub ScBinFromHexBounded@12 +@ stub FBinFromHex@8 +@ stub HexFromBin@12 +@ stub BuildDisplayTable@40 +@ stub SwapPlong@8 +@ stub SwapPword@8 +@ stub MAPIInitIdle@4 +@ stub MAPIDeinitIdle@0 +@ stub InstallFilterHook@4 +@ stub FtgRegisterIdleRoutine@20 +@ stub EnableIdleRoutine@8 +@ stub DeregisterIdleRoutine@4 +@ stub ChangeIdleRoutine@28 +@ stub MAPIGetDefaultMalloc@0 +@ stub CreateIProp@24 +@ stub CreateTable@36 +@ stub MNLS_lstrlenW@4 +@ stub MNLS_lstrcmpW@8 +@ stub MNLS_lstrcpyW@8 +@ stub MNLS_CompareStringW@24 +@ stub MNLS_MultiByteToWideChar@24 +@ stub MNLS_WideCharToMultiByte@32 +@ stub MNLS_IsBadStringPtrW@8 +@ stub FEqualNames@8 +@ stub WrapStoreEntryID@24 +@ stub IsBadBoundedStringPtr@8 +@ stub HrQueryAllRows@24 +@ stub PropCopyMore@16 +@ stub UlPropSize@4 +@ stub FPropContainsProp@12 +@ stub FPropCompareProp@12 +@ stub LPropCompareProp@8 +@ stub HrAddColumns@16 +@ stub HrAddColumnsEx@20 +@ stub FtAddFt@16 +@ stub FtAdcFt@20 +@ stub FtSubFt@16 +@ stub FtMulDw@12 +@ stub FtMulDwDw@8 +@ stub FtNegFt@8 +@ stub FtDivFtBogus@20 +@ stub UlAddRef@4 +@ stub UlRelease@4 +@ stub SzFindCh@8 +@ stub SzFindLastCh@8 +@ stub SzFindSz@8 +@ stub UFromSz@4 +@ stub HrGetOneProp@12 +@ stub HrSetOneProp@8 +@ stub FPropExists@8 +@ stub PpropFindProp@12 +@ stub FreePadrlist@4 +@ stub FreeProws@4 +@ stub HrSzFromEntryID@12 +@ stub HrEntryIDFromSz@12 +@ stub HrComposeEID@28 +@ stub HrDecomposeEID@28 +@ stub HrComposeMsgID@24 +@ stub HrDecomposeMsgID@24 +@ stub OpenStreamOnFile@24 +@ stub OpenStreamOnFile +@ stub OpenTnefStream@28 +@ stub OpenTnefStream +@ stub OpenTnefStreamEx@32 +@ stub OpenTnefStreamEx +@ stub GetTnefStreamCodepage@12 +@ stub GetTnefStreamCodepage +@ stub UlFromSzHex@4 +@ stub UNKOBJ_ScAllocate@12 +@ stub UNKOBJ_Free@8 +@ stub UNKOBJ_FreeRows@8 +@ stub UNKOBJ_ScCOAllocate@12 +@ stub UNKOBJ_ScCOReallocate@12 +@ stub UNKOBJ_COFree@8 +@ stub UNKOBJ_ScSzFromIdsAlloc@20 +@ stub ScCountNotifications@12 +@ stub ScCopyNotifications@16 +@ stub ScRelocNotifications@20 +@ stub ScCountProps@12 +@ stub ScRelocProps@20 +@ stub LpValFindProp@12 +@ stub ScDupPropset@16 +@ stub FBadRglpszA@8 +@ stub FBadRglpszW@8 +@ stub FBadRowSet@4 +@ stub FBadRglpNameID@8 +@ stub FBadPropTag@4 +@ stub FBadRow@4 +@ stub FBadProp@4 +@ stub FBadColumnSet@4 +@ stub RTFSync@12 +@ stub RTFSync +@ stub WrapCompressedRTFStream@12 +@ stub WrapCompressedRTFStream +@ stub __ValidateParameters@8 +@ stub __CPPValidateParameters@8 +@ stub FBadSortOrderSet@4 +@ stub FBadEntryList@4 +@ stub FBadRestriction@4 +@ stub ScUNCFromLocalPath@12 +@ stub ScLocalPathFromUNC@12 +@ stub HrIStorageFromStream@16 +@ stub HrValidateIPMSubtree@20 +@ stub OpenIMsgSession@12 +@ stub CloseIMsgSession@4 +@ stub OpenIMsgOnIStg@44 +@ stub SetAttribIMsgOnIStg@16 +@ stub GetAttribIMsgOnIStg@12 +@ stub MapStorageSCode@4 +@ stub ScMAPIXFromCMC +@ stub ScMAPIXFromSMAPI +@ stub EncodeID@12 +@ stub FDecodeID@12 +@ stub CchOfEncoding@4 +@ stub CbOfEncoded@4 +@ stub MAPISendDocuments +@ stub MAPILogon +@ stub MAPILogoff +@ stub MAPISendMail +@ stub MAPISaveMail +@ stub MAPIReadMail +@ stub MAPIFindNext +@ stub MAPIDeleteMail +@ stub MAPIAddress +@ stub MAPIDetails +@ stub MAPIResolveName +@ stub BMAPISendMail +@ stub BMAPISaveMail +@ stub BMAPIReadMail +@ stub BMAPIGetReadMail +@ stub BMAPIFindNext +@ stub BMAPIAddress +@ stub BMAPIGetAddress +@ stub BMAPIDetails +@ stub BMAPIResolveName +@ stub cmc_act_on +@ stub cmc_free +@ stub cmc_list +@ stub cmc_logoff +@ stub cmc_look_up +@ stub cmc_query_configuration +@ stub cmc_read +@ stub cmc_send +@ stub cmc_send_documents +@ stub HrDispatchNotifications@4 +@ stub HrValidateParameters@8 +@ stub ScCreateConversationIndex@16 +@ stub HrGetOmiProvidersFlags +@ stub HrGetOmiProvidersFlags@8 +@ stub HrSetOmiProvidersFlagsInvalid +@ stub HrSetOmiProvidersFlagsInvalid@4 +@ stub GetOutlookVersion +@ stub GetOutlookVersion@0 +@ stub FixMAPI +@ stub FixMAPI@0 +@ stub FGetComponentPath +@ stub FGetComponentPath@20 -- 1.6.3.3