mapi32: Forward WrapCompressedRTFStream to the registered provider, if any.

This commit is contained in:
Hans Leidekker 2012-10-17 11:09:08 +02:00 committed by Alexandre Julliard
parent 7879326f8a
commit ce2bd9eb1f
3 changed files with 16 additions and 2 deletions

View File

@ -122,8 +122,8 @@
182 stdcall FBadColumnSet@4(ptr) FBadColumnSet
183 stub RTFSync@12
184 stub RTFSync
185 stub WrapCompressedRTFStream@12
186 stub WrapCompressedRTFStream
185 stdcall WrapCompressedRTFStream@12(ptr long ptr) WrapCompressedRTFStream
186 stdcall WrapCompressedRTFStream(ptr long ptr)
187 stub __ValidateParameters@8
188 stub __CPPValidateParameters@8
189 stub FBadSortOrderSet@4

View File

@ -935,6 +935,18 @@ HRESULT WINAPI HrQueryAllRows(LPMAPITABLE lpTable, LPSPropTagArray lpPropTags,
return MAPI_E_CALL_FAILED;
}
/**************************************************************************
* WrapCompressedRTFStream (MAPI32.186)
*/
HRESULT WINAPI WrapCompressedRTFStream(LPSTREAM compressed, ULONG flags, LPSTREAM *uncompressed)
{
if (mapiFunctions.WrapCompressedRTFStream)
return mapiFunctions.WrapCompressedRTFStream(compressed, flags, uncompressed);
FIXME("(%p, 0x%08x, %p): stub\n", compressed, flags, uncompressed);
return MAPI_E_NO_SUPPORT;
}
static HMODULE mapi_provider;
static HMODULE mapi_ex_provider;
@ -1099,6 +1111,7 @@ void load_mapi_providers(void)
mapiFunctions.MAPIOpenLocalFormContainer = (void *) GetProcAddress(mapi_ex_provider, "MAPIOpenLocalFormContainer");
mapiFunctions.OpenStreamOnFile = (void*) GetProcAddress(mapi_ex_provider, "OpenStreamOnFile@24");
mapiFunctions.ScInitMapiUtil = (void*) GetProcAddress(mapi_ex_provider, "ScInitMapiUtil@4");
mapiFunctions.WrapCompressedRTFStream = (void*) GetProcAddress(mapi_ex_provider, "WrapCompressedRTFStream@12");
}
cleanUp:

View File

@ -59,6 +59,7 @@ typedef struct MAPI_FUNCTIONS {
HRESULT (WINAPI *HrQueryAllRows) (LPMAPITABLE, LPSPropTagArray, LPSRestriction, LPSSortOrderSet, LONG, LPSRowSet *);
HRESULT (WINAPI *OpenStreamOnFile) (LPALLOCATEBUFFER, LPFREEBUFFER, ULONG, LPWSTR, LPWSTR, LPSTREAM *);
SCODE (WINAPI *ScInitMapiUtil) (ULONG ulReserved);
HRESULT (WINAPI *WrapCompressedRTFStream) (LPSTREAM, ULONG, LPSTREAM *);
} MAPI_FUNCTIONS;
extern MAPI_FUNCTIONS mapiFunctions DECLSPEC_HIDDEN;