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.

93 lines
2.8 KiB

  1. #ifndef _ACCTUI_H
  2. #define _ACCTUI_H
  3. // max CCHMAX value from imnact.h
  4. #define CCHMAX_ACCT_PROP_SZ 256
  5. #define OPTION_OFF 0xffffffff
  6. #define PORT_CCHMAX 8
  7. #define DEF_NNTPPORT 119
  8. #define DEF_SNNTPPORT 563
  9. #define DEF_IMAPPORT 143
  10. #define DEF_SIMAPPORT 993
  11. #define DEF_SMTPPORT 25
  12. #define DEF_SSMTPPORT 25
  13. #define DEF_POP3PORT 110
  14. #define DEF_SPOP3PORT 995
  15. #define DEF_LDAPPORT 389
  16. #define DEF_SLDAPPORT 636
  17. // $TODO - These constants will be moved later
  18. #define EXPIRE_MAX 100
  19. #define EXPIRE_MIN 1
  20. #define EXPIRE_DEFAULT 5
  21. #define DEF_BREAKSIZE 60
  22. #define BREAKSIZE_MIN 16
  23. #define BREAKSIZE_MAX 16000
  24. #define MATCHES_MAX 9999
  25. #define MATCHES_MIN 1
  26. #define MATCHES_DEFAULT 100
  27. enum
  28. {
  29. iNewsServer = 0,
  30. iMailServer,
  31. iLDAPServer
  32. };
  33. // query sibling messages
  34. #define MSM_GETSERVERTYPE WM_USER
  35. #define SM_INITIALIZED (WM_USER + 2)
  36. #define SM_SETDIRTY (WM_USER + 3)
  37. #define SM_SAVECHANGES (WM_USER + 4)
  38. #define MSM_GETEMAILADDRESS (WM_USER + 5)
  39. #define MSM_GETCERTDATA (WM_USER + 6)
  40. #define MSM_GETDISPLAYNAME (WM_USER + 7)
  41. enum tagPages {
  42. PAGE_READ = 0x0001,
  43. PAGE_SEND = 0x0002,
  44. PAGE_SERVER = 0x0004,
  45. PAGE_FONTS = 0x0008,
  46. PAGE_SPELL = 0x0010,
  47. PAGE_SIG = 0x0020,
  48. PAGE_ADV = 0x0040,
  49. PAGE_RAS = 0x0080,
  50. PAGE_SEC = 0x0100,
  51. PAGE_ADVSEC = 0x0200,
  52. PAGE_GEN = 0x0400,
  53. PAGE_IMAP = 0x0800
  54. };
  55. typedef struct tagACCTDLGINFO
  56. {
  57. ACCTTYPE AcctTypeInit;
  58. DWORD dwAcctFlags;
  59. DWORD dwFlags;
  60. ACCTTYPE AcctType; // used by the dialog in single-type mode
  61. } ACCTDLGINFO;
  62. INT_PTR CALLBACK ManageAccountsDlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  63. int AcctMessageBox(HWND hwndOwner, LPTSTR szTitle, LPTSTR sz1, LPTSTR sz2, UINT fuStyle);
  64. void InitTimeoutSlider(HWND hwndSlider, HWND hwndText, DWORD dwTimeout);
  65. void SetTimeoutString(HWND hwnd, UINT pos);
  66. DWORD GetTimeoutFromSlider(HWND hwnd);
  67. void InitCheckCounter(DWORD dw, HWND hwnd, int idcCheck, int idcEdit, int idcSpin, int min, int max, int def);
  68. BOOL InvalidAcctProp(HWND hwndPage, HWND hwndEdit, int idsError, UINT idPage);
  69. BOOL Server_FAddAccount(HWND hwndList, ACCTDLGINFO *pinfo, UINT iItem, IImnAccount *pAccount, BOOL fSelect);
  70. BOOL Server_InitServerList(HWND hwnd, HWND hwndList, HWND hwndTab, ACCTDLGINFO *pinfo, TCHAR *szSelect);
  71. void Server_ImportServer(HWND hwndDlg, ACCTDLGINFO *pinfo);
  72. void Server_ExportServer(HWND hwndDlg);
  73. typedef struct _tagHELPMAP
  74. {
  75. DWORD id;
  76. DWORD hid;
  77. } HELPMAP, *LPHELPMAP;
  78. BOOL OnContextHelp(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, HELPMAP const * rgCtxMap);
  79. #endif //_ACCTUI_H