mirror of https://github.com/tongzx/nt5src
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
87 lines
1.3 KiB
/*++
|
|
|
|
Copyright (c) 1990 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
reloclus.hxx
|
|
|
|
Abstract:
|
|
|
|
This modules contains the declaration of the RELOCATION_CLUSTER
|
|
class. A relocation cluster is a cluster that will be relocated
|
|
somewhere else.
|
|
|
|
Author:
|
|
|
|
Ramon J. San Andres (ramonsa) 05-Nov-1991
|
|
|
|
--*/
|
|
|
|
#if !defined( _RELOCATION_CLUSTER_ )
|
|
|
|
#define _RELOCATION_CLUSTER_
|
|
|
|
DECLARE_CLASS( RELOCATION_CLUSTER);
|
|
|
|
class RELOCATION_CLUSTER : public OBJECT {
|
|
|
|
public:
|
|
|
|
DECLARE_CONSTRUCTOR( RELOCATION_CLUSTER );
|
|
DECLARE_CAST_MEMBER_FUNCTION( RELOCATION_CLUSTER );
|
|
|
|
VIRTUAL
|
|
~RELOCATION_CLUSTER(
|
|
);
|
|
|
|
NONVIRTUAL
|
|
BOOLEAN
|
|
Initialize (
|
|
IN ULONG ClusterNumber
|
|
);
|
|
|
|
VIRTUAL
|
|
LONG
|
|
Compare (
|
|
IN PCOBJECT Object
|
|
) CONST;
|
|
|
|
NONVIRTUAL
|
|
ULONG
|
|
QueryClusterNumber (
|
|
) CONST;
|
|
|
|
|
|
private:
|
|
|
|
ULONG _Cluster; // Cluster
|
|
|
|
};
|
|
|
|
|
|
INLINE
|
|
ULONG
|
|
RELOCATION_CLUSTER::QueryClusterNumber (
|
|
) CONST
|
|
/*++
|
|
|
|
Routine Description:
|
|
|
|
Obtains the cluster number of this relocation cluster
|
|
|
|
Arguments:
|
|
|
|
None.
|
|
|
|
Return Value:
|
|
|
|
ULONG - cluster number
|
|
|
|
--*/
|
|
{
|
|
return _Cluster;
|
|
}
|
|
|
|
|
|
#endif // _RELOCATION_CLUSTER_
|