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.

87 lines
3.1 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1993 **/
  4. /**********************************************************************/
  5. /*
  6. TCPcons.hxx
  7. This file contains the global constant definitions for the
  8. TCP Service.
  9. FILE HISTORY:
  10. KeithMo 07-Mar-1993 Created.
  11. MuraliK 03-Mar-1995 Modified to remove old definitions for
  12. the new Internet Services DLL
  13. */
  14. #ifndef _TCPCONS_H_
  15. #define _TCPCONS_H_
  16. //
  17. // No string resource IDs should be below this value. Everything below this
  18. // is reserved for the system error messages
  19. //
  20. #define STR_RES_ID_BASE 7000
  21. //
  22. // The string resource ID for the error responses is offset by this value
  23. //
  24. #define ID_HTTP_ERROR_BASE (STR_RES_ID_BASE+1000)
  25. #define ID_HTTP_ERROR_MAX (STR_RES_ID_BASE+6999)
  26. #define ID_GOPHER_ERROR_BASE (ID_HTTP_ERROR_MAX+1)
  27. #define ID_GOPHER_ERROR_MAX (ID_HTTP_ERROR_MAX+6999)
  28. #define ID_FTP_ERROR_BASE ( ID_GOPHER_ERROR_MAX + 1)
  29. #define ID_FTP_ERROR_MAX ( ID_FTP_ERROR_BASE + 6998)
  30. //
  31. // TCP API specific access rights.
  32. //
  33. #define TCP_QUERY_SECURITY 0x0001
  34. #define TCP_SET_SECURITY 0x0002
  35. #define TCP_ENUMERATE_USERS 0x0004
  36. #define TCP_DISCONNECT_USER 0x0008
  37. #define TCP_QUERY_STATISTICS 0x0010
  38. #define TCP_CLEAR_STATISTICS 0x0020
  39. #define TCP_QUERY_ADMIN_INFORMATION 0x0040
  40. #define TCP_SET_ADMIN_INFORMATION 0x0080
  41. #define TCP_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | \
  42. TCP_QUERY_SECURITY | \
  43. TCP_SET_SECURITY | \
  44. TCP_ENUMERATE_USERS | \
  45. TCP_DISCONNECT_USER | \
  46. TCP_QUERY_STATISTICS | \
  47. TCP_CLEAR_STATISTICS | \
  48. TCP_QUERY_ADMIN_INFORMATION | \
  49. TCP_SET_ADMIN_INFORMATION \
  50. )
  51. #define TCP_GENERIC_READ (STANDARD_RIGHTS_READ | \
  52. TCP_QUERY_SECURITY | \
  53. TCP_ENUMERATE_USERS | \
  54. TCP_QUERY_ADMIN_INFORMATION | \
  55. TCP_QUERY_STATISTICS)
  56. #define TCP_GENERIC_WRITE (STANDARD_RIGHTS_WRITE | \
  57. TCP_SET_SECURITY | \
  58. TCP_DISCONNECT_USER | \
  59. TCP_SET_ADMIN_INFORMATION | \
  60. TCP_CLEAR_STATISTICS)
  61. #define TCP_GENERIC_EXECUTE (STANDARD_RIGHTS_EXECUTE)
  62. #endif // _TCPCONS_H_