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.

60 lines
2.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1996 - 1999
  6. //
  7. // File: mailto.h
  8. //
  9. //--------------------------------------------------------------------------
  10. // mailto.h
  11. // Required symbols
  12. #define MAX_LENGTH 256
  13. #define MEGA_LENGTH 65535
  14. #define WIN95_REG_KEY "Software\\Microsoft\\Windows Messaging Subsystem\\Profiles"
  15. #define WINNT_REG_KEY "Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows Messaging Subsystem\\Profiles"
  16. // Options
  17. #define MAIL_QUIET 0x00000001 // Quiet - no output
  18. #define MAIL_VERBOSE 0x00000002 // Verbose - status sent to standard out
  19. // Signature
  20. ULONG MailTo(char *szRecip, // NULL delimited recipient list (one or more)
  21. char *szCC, // NULL delimited CC list (zero or more)
  22. char *szBCC, // NULL delimited BCC list (zero or more)
  23. char *szSubject, // subject (may be empty string)
  24. char *szMessage, // message text (may be empty string)
  25. char *szFileName, // NULL delimited file attachment names (zero or more)
  26. unsigned int dwOptions);// Options
  27. // szRecip - Recipient list
  28. // This should be a null terminated list of recipient names.
  29. // Each name should be separated with a null character and
  30. // the string should be terminated with two null characters.
  31. // This is consistent with the common open file dialog.
  32. // szCC - Carbon copy recipient list
  33. // This should also be a null terminated list of recipient names.
  34. // Obviously this is the list of names to be cc'd on the mail.
  35. // szBCC - Blind carbon copy recipient list
  36. // This should also be a null terminated list of recipient names.
  37. // The names on this list will also get the mail but the regular
  38. // recipients and carbon copy recipients will not know.
  39. // szSubject - Subject text of message
  40. // This should be a null terminated string that will go in the
  41. // subject field.
  42. // szMessage - Body text of message
  43. // This should be a null terminated string that will be the
  44. // body text of the message.
  45. // szFileName - List of file attachments
  46. // This should be a null terminated list of file names to attach.
  47. // The files will go on the first line before the body text.
  48. // dwOptions - See Options above
  49. // Note: You are limited to thirty total recipients and thirty total files.