namespace ProcessHacker.Common.Objects
{
public interface IReferenceCountedObject
{
///
/// Decrements the reference count of the object.
///
/// The old reference count.
int Dereference();
///
/// Decrements the reference count of the object.
///
/// Whether to dispose managed resources.
/// The old reference count.
int Dereference(bool managed);
///
/// Increments the reference count of the object.
///
/// The old reference count.
int Reference();
}
}