Commit 30930239 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

inetcomm: Add wrapper functions MimeOleFindCharset and MimeOleGetDefaultCharset.

parent b9356960
......@@ -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
......
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment