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.

125 lines
4.0 KiB

  1. //*******************************************************************
  2. //
  3. // Copyright(c) Microsoft Corporation, 1996
  4. //
  5. // FILE: INETCFG.H
  6. //
  7. // PURPOSE: Contains API's exported from inetcfg.dll and structures
  8. // required by those functions.
  9. // Note: Definitions in this header file require RAS.H.
  10. //
  11. //*******************************************************************
  12. #ifndef _INETCFG_H_
  13. #define _INETCFG_H_
  14. #ifndef UNLEN
  15. #include <lmcons.h>
  16. #endif
  17. // Generic HRESULT error code
  18. #define ERROR_INETCFG_UNKNOWN 0x20000000L
  19. #define MAX_EMAIL_NAME 64
  20. #define MAX_EMAIL_ADDRESS 128
  21. #define MAX_LOGON_NAME UNLEN
  22. #define MAX_LOGON_PASSWORD PWLEN
  23. #define MAX_SERVER_NAME 64 // max length of DNS name per RFC 1035 +1
  24. // Flags for dwfOptions
  25. // install exchange and internet mail
  26. #define INETCFG_INSTALLMAIL 0x00000001
  27. // Invoke InstallModem wizard if NO MODEM IS INSTALLED
  28. #define INETCFG_INSTALLMODEM 0x00000002
  29. // install RNA (if needed)
  30. #define INETCFG_INSTALLRNA 0x00000004
  31. // install TCP (if needed)
  32. #define INETCFG_INSTALLTCP 0x00000008
  33. // connecting with LAN (vs modem)
  34. #define INETCFG_CONNECTOVERLAN 0x00000010
  35. // Set the phone book entry for autodial
  36. #define INETCFG_SETASAUTODIAL 0x00000020
  37. // Overwrite the phone book entry if it exists
  38. // Note: if this flag is not set, and the entry exists, a unique name will
  39. // be created for the entry.
  40. #define INETCFG_OVERWRITEENTRY 0x00000040
  41. // Do not show the dialog that tells the user that files are about to be installed,
  42. // with OK/Cancel buttons.
  43. #define INETCFG_SUPPRESSINSTALLUI 0x00000080
  44. // Check if TCP/IP file sharing is turned on, and warn user to turn it off.
  45. // Reboot is required if the user turns it off.
  46. #define INETCFG_WARNIFSHARINGBOUND 0x00000100
  47. // Check if TCP/IP file sharing is turned on, and force user to turn it off.
  48. // If user does not want to turn it off, return will be ERROR_CANCELLED
  49. // Reboot is required if the user turns it off.
  50. #define INETCFG_REMOVEIFSHARINGBOUND 0x00000200
  51. // Indicates that this is a temporary phone book entry
  52. // In Win3.1 an icon will not be created
  53. #define INETCFG_TEMPPHONEBOOKENTRY 0x00000400
  54. #ifdef __cplusplus
  55. extern "C"
  56. {
  57. #endif // __cplusplus
  58. // constants for INETCLIENTINFO.dwFlags
  59. #define INETC_LOGONMAIL 0x00000001
  60. #define INETC_LOGONNEWS 0x00000002
  61. // Struct INETCLIENTINFO
  62. //
  63. // This structure is used when getting and setting the internet
  64. // client parameters
  65. //
  66. // The members are as follows:
  67. //
  68. // dwSize
  69. // size of this structure, for future versioning
  70. // this member should be set before passing the structure to the DLL
  71. // dwFlags
  72. // miscellaneous flags
  73. // see definitions above
  74. // szEMailName
  75. // user's internet email name
  76. // szEMailAddress
  77. // user's internet email address
  78. // szPOPLogonName
  79. // user's internet mail server logon name
  80. // szPOPLogonPassword
  81. // user's internet mail server logon password
  82. // szPOPServer
  83. // user's internet mail POP3 server
  84. // szSMTPServer
  85. // user's internet mail SMTP server
  86. // szNNTPLogonName
  87. // user's news server logon name
  88. // szNNTPLogonPassword
  89. // user's news server logon password
  90. // szNNTPServer
  91. // user's news server
  92. typedef struct tagINETCLIENTINFO
  93. {
  94. DWORD dwSize;
  95. DWORD dwFlags;
  96. CHAR szEMailName[MAX_EMAIL_NAME + 1];
  97. CHAR szEMailAddress[MAX_EMAIL_ADDRESS + 1];
  98. CHAR szPOPLogonName[MAX_LOGON_NAME + 1];
  99. CHAR szPOPLogonPassword[MAX_LOGON_PASSWORD + 1];
  100. CHAR szPOPServer[MAX_SERVER_NAME + 1];
  101. CHAR szSMTPServer[MAX_SERVER_NAME + 1];
  102. CHAR szNNTPLogonName[MAX_LOGON_NAME + 1];
  103. CHAR szNNTPLogonPassword[MAX_LOGON_PASSWORD + 1];
  104. CHAR szNNTPServer[MAX_SERVER_NAME + 1];
  105. } INETCLIENTINFO, *PINETCLIENTINFO, FAR *LPINETCLIENTINFO;
  106. #ifdef __cplusplus
  107. }
  108. #endif // __cplusplus
  109. #endif //_INETCFG_H_#