Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
2.6 KiB

  1. // --------------------------------------------------------------------------------
  2. // Mimeapi.h
  3. // Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  4. // --------------------------------------------------------------------------------
  5. #ifndef __MIMEAPI_H
  6. #define __MIMEAPI_H
  7. // Time to allow cert start times to be be early
  8. #define TIME_DELTA_SECONDS 600 // 10 minutes in seconds
  9. // --------------------------------------------------------------------------------
  10. // Forward Decls
  11. // --------------------------------------------------------------------------------
  12. class CMimePropertyContainer;
  13. typedef CMimePropertyContainer *LPCONTAINER;
  14. // --------------------------------------------------------------------------------
  15. // Prototypes
  16. // --------------------------------------------------------------------------------
  17. int CompareBlob(LPCBLOB pBlob1, LPCBLOB pBlob2);
  18. HRESULT HrCopyBlob(LPCBLOB pIn, LPBLOB pOut);
  19. IMSGPRIORITY PriorityFromStringA(LPCSTR pszPriority);
  20. IMSGPRIORITY PriorityFromStringW(LPCWSTR pwszPriority);
  21. HRESULT MimeOleCompareUrl(LPCSTR pszCurrentUrl, BOOL fUnEscapeCurrent, LPCSTR pszComareUrl, BOOL fUnEscapeCompare);
  22. HRESULT MimeOleCompareUrlSimple(LPCSTR pszUrl1, LPCSTR pszUrl2);
  23. HRESULT MimeOleWrapHeaderText(CODEPAGEID codepage, ULONG cchMaxLine, LPCSTR pszLine, ULONG cchLine, LPSTREAM pStream);
  24. HRESULT MimeOleRecurseSetProp(IMimeMessageTree *pTree, HBODY hBody, LPCSTR pszName, DWORD dwFlags, LPCPROPVARIANT pValue);
  25. HRESULT HrRfc1522Encode(LPMIMEVARIANT pSource, LPMIMEVARIANT pEncoded, CODEPAGEID cpiSource, CODEPAGEID cpiDest, LPCSTR pszCharset, LPSTR *ppszEncoded);
  26. LPCSTR PszDefaultSubType(LPCSTR pszPriType);
  27. HRESULT MimeOleGetSentTime(LPCONTAINER pContainer, DWORD dwFlags, LPMIMEVARIANT pValue);
  28. CODEPAGEID MimeOleGetWindowsCPEx(LPINETCSETINFO pCharset);
  29. CODEPAGEID MimeOleGetWindowsCP(HCHARSET hCharset);
  30. LPSTR MimeOleContentBaseFromBody(IMimeMessageTree *pTree, HBODY hBody);
  31. HRESULT MimeOleComputeContentBase(IMimeMessage *pMessage, HBODY hRelated, LPSTR *ppszBase, BOOL *pfMultipartBase);
  32. LONG CertVerifyTimeValidityWithDelta(LPFILETIME pTimeToVerify, PCERT_INFO pCertInfo, ULONG ulOffset);
  33. MIMEOLEAPI MimeOleEscapeStringW(LPCWSTR pszIn, LPWSTR *ppszOut);
  34. HRESULT MimeOleQueryStringW(LPCWSTR pszSearchMe, LPCWSTR pszCriteria, boolean fSubString, boolean fCaseSensitive);
  35. MIMEOLEAPI MimeOleGenerateFileNameW(LPCSTR pszContentType, LPCWSTR pszSuggest, LPCWSTR pszDefaultExt, LPWSTR *ppszFileName);
  36. #endif // __MIMEAPI_H