home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 March / CHIPCD_3_98.iso / software / testsoft / exchange / bin / dsactrnm.h < prev    next >
C/C++ Source or Header  |  1997-08-25  |  2KB  |  61 lines

  1. //
  2. //  dsactrnm.h
  3. //
  4. //  Offset definition file for exensible counter objects and counters
  5. //
  6. //  These "relative" offsets must start at 0 and be multiples of 2 (i.e.
  7. //  even numbers). In the Open Procedure, they will be added to the 
  8. //  "First Counter" and "First Help" values of the device they belong to, 
  9. //  in order to determine the  absolute location of the counter and 
  10. //  object names and corresponding help text in the registry.
  11. //
  12. //  this file is used by the extensible counter DLL code as well as the 
  13. //  counter name and help text definition file (.INI) file that is used
  14. //  by LODCTR to load the names into the registry.
  15. //
  16. #define DSAOBJ 0
  17. #define ACCVIOL 2
  18. #define BROWSE 4
  19. #define ABREAD 6
  20. #define DSREAD 8
  21. #define REPL 10
  22. #define THREAD 12
  23. #define ABWRITE 14
  24. #define DSWRITE 16
  25. #define XDSCLIENT 18
  26. #define ABCLIENT 20
  27. #define PENDSYNC 22
  28. #define REMREPUPD 24
  29. #define REPLOBJS 26
  30. #define ABVREADS 28
  31. #define ABVWRITES 30
  32. #define ABVMODIFIES 32
  33. #define LDAPCSEARCHES 34
  34. #define LDAPSEARCHES 36
  35.  
  36. #define DSA_PERF_COUNTER_BLOCK    TEXT("Microsoft.Exchange.DSA.Perf")
  37.  
  38. extern volatile unsigned long * pcAccViol;
  39. extern volatile unsigned long * pcBrowse;
  40. extern volatile unsigned long * pcABRead;
  41. extern volatile unsigned long * pcDSRead;
  42. extern volatile unsigned long * pcRepl;
  43. extern volatile unsigned long * pcThread;
  44. extern volatile unsigned long * pcABWrite;
  45. extern volatile unsigned long * pcDSWrite;
  46. extern volatile unsigned long * pcXDSClient;
  47. extern volatile unsigned long * pcABClient;
  48. extern volatile unsigned long * pcPendSync;
  49. extern volatile unsigned long * pcRemRepUpd;
  50. extern volatile unsigned long * pcReplObjs;
  51. extern volatile unsigned long * pcABVreads;
  52. extern volatile unsigned long * pcABVwrites;
  53. extern volatile unsigned long * pcABVmodifies;
  54. extern volatile unsigned long * pcLDAPCSearches;
  55. extern volatile unsigned long * pcLDAPSearches;
  56.  
  57. #define INC(x) InterlockedIncrement((LPLONG)x)
  58. #define DEC(x) InterlockedDecrement((LPLONG)x)
  59. #define ISET(x, y) InterlockedExchange((LPLONG)x, y)
  60.  
  61.