inetcomm: Add wrapper functions MimeOleFindCharset and MimeOleGetDefaultCharset.

oldstable
Huw Davies 2008-09-23 12:07:43 +01:00 committed by Alexandre Julliard
parent b9356960db
commit 3093023979
2 changed files with 35 additions and 3 deletions

View File

@ -59,7 +59,7 @@
@ stub MimeOleDecodeHeader
@ stub MimeOleEncodeHeader
@ stub MimeOleFileTimeToInetDate
@ stub MimeOleFindCharset
@ stdcall MimeOleFindCharset(str ptr)
@ stub MimeOleGenerateCID
@ stub MimeOleGenerateFileName
@ stub MimeOleGenerateMID
@ -71,7 +71,7 @@
@ stub MimeOleGetCodePageCharset
@ stub MimeOleGetCodePageInfo
@ stub MimeOleGetContentTypeExt
@ stub MimeOleGetDefaultCharset
@ stdcall MimeOleGetDefaultCharset(ptr)
@ stub MimeOleGetExtContentType
@ stub MimeOleGetFileExtension
@ stub MimeOleGetFileInfo

View File

@ -547,6 +547,22 @@ HRESULT WINAPI MimeOleGetInternat(IMimeInternational **internat)
return S_OK;
}
HRESULT WINAPI MimeOleFindCharset(LPCSTR name, LPHCHARSET charset)
{
IMimeInternational *internat;
HRESULT hr;
TRACE("(%s, %p)\n", debugstr_a(name), charset);
hr = MimeOleGetInternat(&internat);
if(SUCCEEDED(hr))
{
hr = IMimeInternational_FindCharset(internat, name, charset);
IMimeInternational_Release(internat);
}
return hr;
}
HRESULT WINAPI MimeOleGetCharsetInfo(HCHARSET hCharset, LPINETCSETINFO pCsetInfo)
{
IMimeInternational *internat;
@ -560,5 +576,21 @@ HRESULT WINAPI MimeOleGetCharsetInfo(HCHARSET hCharset, LPINETCSETINFO pCsetInfo
hr = IMimeInternational_GetCharsetInfo(internat, hCharset, pCsetInfo);
IMimeInternational_Release(internat);
}
return S_OK;
return hr;
}
HRESULT WINAPI MimeOleGetDefaultCharset(LPHCHARSET charset)
{
IMimeInternational *internat;
HRESULT hr;
TRACE("(%p)\n", charset);
hr = MimeOleGetInternat(&internat);
if(SUCCEEDED(hr))
{
hr = IMimeInternational_GetDefaultCharset(internat, charset);
IMimeInternational_Release(internat);
}
return hr;
}