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.

50 lines
2.5 KiB

  1. // --------------------------------------------------------------------------------
  2. // Mimeutil.h
  3. // Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved
  4. // --------------------------------------------------------------------------------
  5. #ifndef __MIMEUTIL_H
  6. #define __MIMEUTIL_H
  7. #define SafeMimeOleFree SafeMemFree
  8. // --------------------------------------------------------------------------------
  9. // Random Utility Functions
  10. // --------------------------------------------------------------------------------
  11. HRESULT HrComputeLineCount(LPMIMEMESSAGE pMsg, LPDWORD pdw);
  12. HRESULT HrHasEncodedBodyParts(LPMIMEMESSAGE pMsg, ULONG cBody, LPHBODY rghBody);
  13. HRESULT HrHasBodyParts(LPMIMEMESSAGE pMsg);
  14. HRESULT HrIsBodyEncoded(LPMIMEMESSAGE pMsg, HBODY hBody);
  15. HRESULT HrCopyHeader(LPMIMEMESSAGE pMsgDest, HBODY hBodyDest, LPMIMEMESSAGE pMsgSrc, HBODY hBodySrc, LPCSTR pszName);
  16. // --------------------------------------------------------------------------------
  17. // MHTML Utility Functions
  18. // --------------------------------------------------------------------------------
  19. HRESULT HrIsInRelatedSection(LPMIMEMESSAGE pMsg, HBODY hBody);
  20. HRESULT HrSniffStreamFileExt(LPSTREAM pstm, LPSTR *lplpszExt);
  21. // --------------------------------------------------------------------------------
  22. // Random functions that probably shouldn't even be in this file
  23. // --------------------------------------------------------------------------------
  24. HRESULT HrEscapeQuotedString (LPTSTR pszIn, LPTSTR *ppszOut);
  25. // sizeof(lspzBuffer) needs to be == or > CCHMAX_CSET_NAME
  26. HRESULT HrGetMetaTagName(HCHARSET hCharset, LPSTR lpszBuffer, DWORD cchSize);
  27. // --------------------------------------------------------------------------------
  28. // international support
  29. // --------------------------------------------------------------------------------
  30. UINT uCodePageFromCharset(HCHARSET hCharset);
  31. UINT uCodePageFromMsg(LPMIMEMESSAGE pMsg);
  32. HRESULT HrIStreamWToInetCset(LPSTREAM pstmW, HCHARSET hCharset, LPSTREAM *ppstm);
  33. // --------------------------------------------------------------------------------
  34. // functions for ghosting props
  35. // --------------------------------------------------------------------------------
  36. HRESULT HrMarkGhosted(LPMIMEMESSAGE pMsg, HBODY hBody);
  37. HRESULT HrIsGhosted(LPMIMEMESSAGE pMsg, HBODY hBody);
  38. HRESULT HrGhostKids(LPMIMEMESSAGE pMsg, HBODY hBody);
  39. HRESULT HrDeleteGhostedKids(LPMIMEMESSAGE pMsg, HBODY hBody);
  40. #endif // __MIMEUTIL_H