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.

69 lines
2.2 KiB

  1. //
  2. // README: PerfMon surport for DNS
  3. //
  4. dns\server\dnsperf:
  5. dnsperf.ini // (copied to 'systme32' dir)
  6. // counter NAMEs & HELPs
  7. dnsperf.h // (copied to 'systme32' dir)
  8. // counter offsets
  9. // public functions to change counter pointers
  10. // e.g. INC, DEC, ADD, SUB
  11. // public counter pointers as 'extern'
  12. // counter version defination:
  13. // DNS_PERFORMANCE_COUNTER_VERSION
  14. datadns.h // # of PerfMon obj: DNS_NUM_PERF_OBJECT_TYPES
  15. // counter data offset
  16. // define: DNS_DATA_DEFINITION
  17. perfconfig.h
  18. dnsperf.c // to generate dnsperf.dll
  19. // OpenDnsPerformanceData()
  20. // CollectDnsPerformanceData()
  21. // CloseDnsPerformanceData()
  22. //
  23. // define datastructure for PerfMon: DnsDataDefinition
  24. // set 'CounterNameTitleIndex' & 'CounterHelpTitleIndex'
  25. // for each counter
  26. dnsperf.def // for dnsperf.dll exports
  27. perfutil.h
  28. perfutil.c // GetQueryType()
  29. // IsNumberInUnicodeList()
  30. dns\server\server:
  31. startperf.h
  32. startperf.c // startPerf() -- called by startDnsServer()
  33. // define & set the public counter pointers
  34. // -- accessed by other files to change counter values
  35. perfconfig.c // GetConfigParam()
  36. other files // may change counter values whereever needed, through:
  37. // public functions & public counter pointers (see dnsperf.h)
  38. //====================================
  39. NT setup:
  40. copy dnsperf.ini dnsperf.h dnsperf.dll
  41. to %windir%\system32\
  42. //====================================
  43. To add new counters for DNS:
  44. See datadns.h for help.
  45. Tip -- to view the places to be changed by following the example of
  46. the first counter, TotalQueryReceived :
  47. At dns\server\server :
  48. type 'qgrep -y TotalQueryReceived *'
  49. At dns\server\server :
  50. type 'qgrep -y TotalQueryReceived *'