Source code of Windows XP (NT5)
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.

73 lines
2.4 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1993 **/
  4. /**********************************************************************/
  5. /*
  6. ftpctrs.h
  7. Offset definitions for the FTP Server's counter objects & counters.
  8. These offsets *must* start at 0 and be multiples of 2. In the
  9. FtpOpenPerformanceData procecedure, they will be added to the
  10. FTP Server's "First Counter" and "First Help" values in order to
  11. determine the absolute location of the counter & object names
  12. and corresponding help text in the registry.
  13. This file is used by the FTPCTRS.DLL DLL code as well as the
  14. FTPCTRS.INI definition file. FTPCTRS.INI is parsed by the
  15. LODCTR utility to load the object & counter names into the
  16. registry.
  17. FILE HISTORY:
  18. KeithMo 07-Jun-1993 Created.
  19. KestutiP 15-May-1999 Added uptime counter
  20. */
  21. #ifndef _FTPCTRS_H_
  22. #define _FTPCTRS_H_
  23. //
  24. // The FTP Server counter object.
  25. //
  26. #define FTPD_COUNTER_OBJECT 0
  27. //
  28. // The individual counters.
  29. //
  30. #define FTPD_BYTES_SENT_COUNTER 2
  31. #define FTPD_BYTES_RECEIVED_COUNTER 4
  32. #define FTPD_BYTES_TOTAL_COUNTER 6
  33. #define FTPD_FILES_SENT_COUNTER 8
  34. #define FTPD_FILES_RECEIVED_COUNTER 10
  35. #define FTPD_FILES_TOTAL_COUNTER 12
  36. #define FTPD_CURRENT_ANONYMOUS_COUNTER 14
  37. #define FTPD_CURRENT_NONANONYMOUS_COUNTER 16
  38. #define FTPD_TOTAL_ANONYMOUS_COUNTER 18
  39. #define FTPD_TOTAL_NONANONYMOUS_COUNTER 20
  40. #define FTPD_MAX_ANONYMOUS_COUNTER 22
  41. #define FTPD_MAX_NONANONYMOUS_COUNTER 24
  42. #define FTPD_CURRENT_CONNECTIONS_COUNTER 26
  43. #define FTPD_MAX_CONNECTIONS_COUNTER 28
  44. #define FTPD_CONNECTION_ATTEMPTS_COUNTER 30
  45. #define FTPD_LOGON_ATTEMPTS_COUNTER 32
  46. #define FTPD_SERVICE_UPTIME_COUNTER 34
  47. // These counters are currently meaningless, but should be restored if we
  48. // ever enable per-FTP-instance bandwidth throttling.
  49. /*
  50. #define FTPD_TOTAL_ALLOWED_REQUESTS_COUNTER 34
  51. #define FTPD_TOTAL_REJECTED_REQUESTS_COUNTER 36
  52. #define FTPD_TOTAL_BLOCKED_REQUESTS_COUNTER 38
  53. #define FTPD_CURRENT_BLOCKED_REQUESTS_COUNTER 40
  54. #define FTPD_MEASURED_BANDWIDTH_COUNTER 42
  55. */
  56. #endif // _FTPCTRS_H_