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.

55 lines
950 B

  1. /*++
  2. Copyright (C) 1997-2001 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. History:
  6. --*/
  7. //***************************************************************************
  8. //
  9. // class CClassMapInfo
  10. //
  11. //***************************************************************************
  12. #ifndef _CLASSMAP_H_
  13. #define _CLASSMAP_H_
  14. class CClassMapInfo
  15. {
  16. IWbemClassObject *m_pClassDef;
  17. LPWSTR m_pszClassName;
  18. BOOL m_bSingleton;
  19. DWORD m_dwObjectId;
  20. LONG m_dwNameHandle;
  21. DWORD m_dwNumProps;
  22. DWORD *m_pdwIDs;
  23. DWORD *m_pdwHandles;
  24. DWORD *m_pdwTypes;
  25. friend class CNt5PerfProvider;
  26. friend class PerfHelper;
  27. void SortHandles();
  28. public:
  29. CClassMapInfo();
  30. ~CClassMapInfo();
  31. BOOL Map(
  32. IWbemClassObject *pObj
  33. );
  34. LONG GetPropHandle(DWORD dwId);
  35. DWORD GetObjectId() { return m_dwObjectId; }
  36. BOOL IsSingleton() { return m_bSingleton; }
  37. };
  38. #endif