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.

56 lines
2.6 KiB

  1. // ------------------------------------------------------------------------------------
  2. // IMAILCMN.H
  3. // ------------------------------------------------------------------------------------
  4. #ifndef __IMAILCMN_H
  5. #define __IMAILCMN_H
  6. // ------------------------------------------------------------------------------------
  7. // INETMAILERROR
  8. // ------------------------------------------------------------------------------------
  9. typedef struct tagINETMAILERROR {
  10. DWORD dwErrorNumber; // Error Number
  11. HRESULT hrError; // HRESULT of error
  12. LPTSTR pszServer; // Server
  13. LPTSTR pszAccount; // Account
  14. LPTSTR pszMessage; // Actual error message
  15. LPTSTR pszUserName; // User Name
  16. LPTSTR pszProtocol; // protocol smtp or pop3
  17. LPTSTR pszDetails; // Details message
  18. DWORD dwPort; // Port
  19. BOOL fSecure; // Secure ssl conneciton
  20. } INETMAILERROR, *LPINETMAILERROR;
  21. // ------------------------------------------------------------------------------------
  22. // InetMail Flags
  23. // ------------------------------------------------------------------------------------
  24. #define IM_SENDMAIL FLAG01
  25. #define IM_RECVMAIL FLAG02
  26. #define IM_BACKGROUND FLAG03
  27. #define IM_NOERRORS FLAG04
  28. #define IM_POP3NOSKIP FLAG05
  29. // ------------------------------------------------------------------------------------
  30. // InetMail Delivery Notifications
  31. // ------------------------------------------------------------------------------------
  32. typedef enum tagDELIVERTY {
  33. DELIVERY_CONNECTING,
  34. DELIVERY_CHECKING,
  35. DELIVERY_SENDING,
  36. DELIVERY_RECEIVING,
  37. DELIVERY_COMPLETE, // lParam == n new messages
  38. DELIVERY_FAILURE
  39. } DELIVERY;
  40. // ------------------------------------------------------------------------------------
  41. // Prototypes
  42. // ------------------------------------------------------------------------------------
  43. HRESULT InetMail_HrInit(VOID);
  44. HRESULT InetMail_HrDeliverNow(HWND hwndView, LPTSTR pszAccount, DWORD dwFlags); // See flags above
  45. HRESULT InetMail_HrFlushOutbox(VOID);
  46. HRESULT InetMail_HrRegisterView(HWND hwndView, BOOL fRegister);
  47. VOID InetMail_RemoveNewMailNotify(VOID);
  48. HRESULT InetMail_HrClose(VOID);
  49. BOOL CALLBACK InetMailErrorDlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  50. #endif // __IMAILCMN_H