Windows2003-3790/inetcore/outlookexpress/inetcomm/mimeole/mimeapi.h
2020-09-30 16:53:55 +02:00

41 lines
2.6 KiB
C++

// --------------------------------------------------------------------------------
// Mimeapi.h
// Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
// --------------------------------------------------------------------------------
#ifndef __MIMEAPI_H
#define __MIMEAPI_H
// Time to allow cert start times to be be early
#define TIME_DELTA_SECONDS 600 // 10 minutes in seconds
// --------------------------------------------------------------------------------
// Forward Decls
// --------------------------------------------------------------------------------
class CMimePropertyContainer;
typedef CMimePropertyContainer *LPCONTAINER;
// --------------------------------------------------------------------------------
// Prototypes
// --------------------------------------------------------------------------------
int CompareBlob(LPCBLOB pBlob1, LPCBLOB pBlob2);
HRESULT HrCopyBlob(LPCBLOB pIn, LPBLOB pOut);
IMSGPRIORITY PriorityFromStringA(LPCSTR pszPriority);
IMSGPRIORITY PriorityFromStringW(LPCWSTR pwszPriority);
HRESULT MimeOleCompareUrl(LPCSTR pszCurrentUrl, BOOL fUnEscapeCurrent, LPCSTR pszComareUrl, BOOL fUnEscapeCompare);
HRESULT MimeOleCompareUrlSimple(LPCSTR pszUrl1, LPCSTR pszUrl2);
HRESULT MimeOleWrapHeaderText(CODEPAGEID codepage, ULONG cchMaxLine, LPCSTR pszLine, ULONG cchLine, LPSTREAM pStream);
HRESULT MimeOleRecurseSetProp(IMimeMessageTree *pTree, HBODY hBody, LPCSTR pszName, DWORD dwFlags, LPCPROPVARIANT pValue);
HRESULT HrRfc1522Encode(LPMIMEVARIANT pSource, LPMIMEVARIANT pEncoded, CODEPAGEID cpiSource, CODEPAGEID cpiDest, LPCSTR pszCharset, LPSTR *ppszEncoded);
LPCSTR PszDefaultSubType(LPCSTR pszPriType);
HRESULT MimeOleGetSentTime(LPCONTAINER pContainer, DWORD dwFlags, LPMIMEVARIANT pValue);
CODEPAGEID MimeOleGetWindowsCPEx(LPINETCSETINFO pCharset);
CODEPAGEID MimeOleGetWindowsCP(HCHARSET hCharset);
LPSTR MimeOleContentBaseFromBody(IMimeMessageTree *pTree, HBODY hBody);
HRESULT MimeOleComputeContentBase(IMimeMessage *pMessage, HBODY hRelated, LPSTR *ppszBase, BOOL *pfMultipartBase);
LONG CertVerifyTimeValidityWithDelta(LPFILETIME pTimeToVerify, PCERT_INFO pCertInfo, ULONG ulOffset);
MIMEOLEAPI MimeOleEscapeStringW(LPCWSTR pszIn, LPWSTR *ppszOut);
HRESULT MimeOleQueryStringW(LPCWSTR pszSearchMe, LPCWSTR pszCriteria, boolean fSubString, boolean fCaseSensitive);
MIMEOLEAPI MimeOleGenerateFileNameW(LPCSTR pszContentType, LPCWSTR pszSuggest, LPCWSTR pszDefaultExt, LPWSTR *ppszFileName);
#endif // __MIMEAPI_H