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.

87 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. reloclus.hxx
  5. Abstract:
  6. This modules contains the declaration of the RELOCATION_CLUSTER
  7. class. A relocation cluster is a cluster that will be relocated
  8. somewhere else.
  9. Author:
  10. Ramon J. San Andres (ramonsa) 05-Nov-1991
  11. --*/
  12. #if !defined( _RELOCATION_CLUSTER_ )
  13. #define _RELOCATION_CLUSTER_
  14. DECLARE_CLASS( RELOCATION_CLUSTER);
  15. class RELOCATION_CLUSTER : public OBJECT {
  16. public:
  17. DECLARE_CONSTRUCTOR( RELOCATION_CLUSTER );
  18. DECLARE_CAST_MEMBER_FUNCTION( RELOCATION_CLUSTER );
  19. VIRTUAL
  20. ~RELOCATION_CLUSTER(
  21. );
  22. NONVIRTUAL
  23. BOOLEAN
  24. Initialize (
  25. IN ULONG ClusterNumber
  26. );
  27. VIRTUAL
  28. LONG
  29. Compare (
  30. IN PCOBJECT Object
  31. ) CONST;
  32. NONVIRTUAL
  33. ULONG
  34. QueryClusterNumber (
  35. ) CONST;
  36. private:
  37. ULONG _Cluster; // Cluster
  38. };
  39. INLINE
  40. ULONG
  41. RELOCATION_CLUSTER::QueryClusterNumber (
  42. ) CONST
  43. /*++
  44. Routine Description:
  45. Obtains the cluster number of this relocation cluster
  46. Arguments:
  47. None.
  48. Return Value:
  49. ULONG - cluster number
  50. --*/
  51. {
  52. return _Cluster;
  53. }
  54. #endif // _RELOCATION_CLUSTER_