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.

40 lines
1.2 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Copyright (C) 1993-1996 Microsoft Corporation. All Rights Reserved.
  3. //
  4. // MODULE: Server.h
  5. //
  6. // PURPOSE: Contains defines and prototypes for the Add/Remove News
  7. // server dialog.
  8. //
  9. #ifndef _SERVER_H
  10. #define _SERVER_H
  11. interface IImnAccount;
  12. typedef enum
  13. {
  14. SERVER_NEWS = 0,
  15. SERVER_MAIL, // pop3
  16. SERVER_IMAP,
  17. SERVER_LDAP,
  18. SERVER_HTTPMAIL,
  19. SERVER_TYPEMAX
  20. } SERVER_TYPE;
  21. typedef struct tagMAILSERVERPROPSINFO
  22. {
  23. DWORD server;
  24. DWORD userName;
  25. DWORD password;
  26. DWORD promptPassword;
  27. DWORD useSicily;
  28. } MAILSERVERPROPSINFO, *LPMAILSERVERPROPSINFO;
  29. BOOL GetServerProps(SERVER_TYPE serverType, LPMAILSERVERPROPSINFO *psp);
  30. BOOL ServerProp_Create(HWND hwndParent, DWORD dwFlags, LPTSTR pszName, IImnAccount **ppAccount);
  31. HRESULT ValidServerName(LPSTR szServer);
  32. HRESULT GetIEConnectInfo(IImnAccount *pAcct);
  33. HRESULT GetConnectInfoForOE(IImnAccount *pAcct);
  34. IMNACCTAPI ValidEmailAddressParts(LPSTR lpAddress, LPSTR lpszAcct, DWORD cchSizeAcct, LPSTR lpszDomain, DWORD cchSizeDomain);
  35. #endif //_SERVER_H