inetcomm: Implement IMimeInternational_CanConvertCodePages.

This commit is contained in:
Huw Davies 2008-09-11 10:42:25 +01:00 committed by Alexandre Julliard
parent 2fa80dacde
commit 5d3b4a60f2
1 changed files with 15 additions and 2 deletions

View File

@ -311,8 +311,21 @@ static HRESULT WINAPI MimeInternat_GetCodePageInfo(IMimeInternational *iface, CO
static HRESULT WINAPI MimeInternat_CanConvertCodePages(IMimeInternational *iface, CODEPAGEID cpiSource,
CODEPAGEID cpiDest)
{
FIXME("stub\n");
return E_NOTIMPL;
HRESULT hr;
IMultiLanguage *ml;
TRACE("(%p)->(%d, %d)\n", iface, cpiSource, cpiDest);
/* Could call mlang.IsConvertINetStringAvailable() to avoid the COM overhead if need be. */
hr = get_mlang(&ml);
if(SUCCEEDED(hr))
{
hr = IMultiLanguage_IsConvertible(ml, cpiSource, cpiDest);
IMultiLanguage_Release(ml);
}
return hr;
}
static HRESULT WINAPI MimeInternat_DecodeHeader(IMimeInternational *iface, HCHARSET hCharset,