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
1.8 KiB

  1. #ifndef _PERFIPSEC_H_
  2. #define _PERFIPSEC_H_
  3. extern WCHAR GLOBAL_STRING[]; // Global command (get all local ctrs)
  4. extern WCHAR FOREIGN_STRING[]; // get data from foreign computers
  5. extern WCHAR COSTLY_STRING[];
  6. extern WCHAR NULL_STRING[];
  7. #define QUERY_GLOBAL 1
  8. #define QUERY_ITEMS 2
  9. #define QUERY_FOREIGN 3
  10. #define QUERY_COSTLY 4
  11. // test for delimiter, end of line and non-digit characters
  12. // used by IsNumberInUnicodeList routine
  13. //
  14. #define DIGIT 1
  15. #define DELIMITER 2
  16. #define INVALID 3
  17. #define EvalThisChar(c,d) ( \
  18. (c == d) ? DELIMITER : \
  19. (c == 0) ? DELIMITER : \
  20. (c < (WCHAR)'0') ? INVALID : \
  21. (c > (WCHAR)'9') ? INVALID : \
  22. DIGIT)
  23. #define ALIGN8(_x) (((_x) + 7) & ~7)
  24. #define IPSEC_PERF_REG_KEY "SYSTEM\\CurrentControlSet\\Services\\IPSec\\Performance"
  25. #define IPSEC_PERF_FIRST_COUNTER "First Counter"
  26. #define IPSEC_PERF_FIRST_HELP "First Help"
  27. #define IPSEC_POLAGENT_NAME "PolicyAgent"
  28. //
  29. // Function Prototypes
  30. //
  31. // these are used to insure that the data collection functions
  32. // accessed by Perflib will have the correct calling format.
  33. //
  34. PM_OPEN_PROC OpenIPSecPerformanceData;
  35. PM_COLLECT_PROC CollectIPSecPerformanceData;
  36. PM_CLOSE_PROC CloseIPSecPerformanceData;
  37. DWORD
  38. DwInitializeIPSecCounters(
  39. VOID
  40. );
  41. DWORD
  42. GetDriverData(
  43. PVOID *lppData
  44. );
  45. DWORD
  46. GetIKEData(
  47. PVOID *lppData
  48. );
  49. ULONG
  50. GetSpaceNeeded(
  51. BOOL IsIPSecDriverObject,
  52. BOOL IsIKEObject
  53. );
  54. DWORD
  55. GetQueryType (
  56. IN LPWSTR lpValue
  57. );
  58. BOOL
  59. IsNumberInUnicodeList (
  60. IN DWORD dwNumber,
  61. IN LPWSTR lpwszUnicodeList
  62. );
  63. BOOL
  64. FIPSecStarted(
  65. VOID
  66. );
  67. BOOL
  68. UpdateDataDefFromRegistry(
  69. VOID
  70. );
  71. #endif