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.

38 lines
842 B

  1. /*
  2. - perfcommon.h
  3. -
  4. * Purpose:
  5. * Declare data structures common to both perfapp.hpp and perfdll.h
  6. *
  7. * Notes:
  8. * These structs control the layout of shared memory blocks shared
  9. * between an application and its related PerfMon Extenstion DLL.
  10. *
  11. */
  12. #pragma once
  13. //
  14. // INSTREC is key portion of INSTCNTR (below)
  15. typedef struct _instrec
  16. {
  17. BOOL fInUse; // In-Use flag
  18. TCHAR szInstName[MAX_PATH]; // Instance Name
  19. } INSTREC;
  20. //
  21. // INSTCNTR is in the Instance Counter Shared Memory Block
  22. typedef struct _instcntr
  23. {
  24. DWORD cMaxInstRec; // Maximum # of Instances (can grow)
  25. DWORD cInstRecInUse; // Count of Instances in Use
  26. } INSTCNTR_DATA;
  27. //
  28. // INSTCNTR_ID is the index of the INSTREC in INSTCNTR_DATA
  29. typedef DWORD INSTCNTR_ID;
  30. #define INVALID_INST_ID (INSTCNTR_ID) -1