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.

36 lines
1012 B

  1. /*
  2. * b o d y u t i l . h
  3. *
  4. * Purpose:
  5. * Utility functions for body
  6. *
  7. * History
  8. * September '96: brettm - created
  9. *
  10. * Copyright (C) Microsoft Corp. 1995, 1996.
  11. */
  12. #ifndef _BODYUTIL_H
  13. #define _BODYUTIL_H
  14. interface IMimeMessage;
  15. // header style:
  16. // Mutually Exclusive. Plain means no formatting, html means bolding on field names, table will construct the
  17. // header as a html-table
  18. #define HDR_HTML 0x10000000L
  19. #define HDR_TABLE 0x40000000L
  20. #define HDR_PLAIN 0x80000000L
  21. // additional flags:
  22. #define HDR_PADDING 0x00000001L // add CRLF before header, or <HR> tag in table mode.
  23. #define HDR_NEWSSTYLE 0x00000002L
  24. #define HDR_HARDCODED 0x00000004L // hard-coded english headers
  25. HRESULT GetHeaderTable(IMimeMessageW *pMsg, LPWSTR pwszUserName, DWORD dwHdrStyle, LPSTREAM *ppstm);
  26. void GetStringRGB(DWORD rgb, LPSTR pszColor);
  27. void GetRGBFromString(DWORD* pRBG, LPSTR pszColor);
  28. #endif //_BODYUTIL_H