Windows NT 4.0 source code leak
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.
 
 
 
 
 
 

71 lines
881 B

/*++
Copyright (c) 1993 Microsoft Corporation
Module Name:
treemap.hxx
Abstract:
Map files to their parent directory, by starting sector number.
The entries are packed into an array, sorted. We binary search
to find the key.
Author:
Matthew Bradburn (mattbr) 01-Dec-1993
Environment:
ULIB, User Mode
--*/
#include "ulib.hxx"
DECLARE_CLASS(TREE_MAP_ENTRY);
DECLARE_CLASS(TREE_MAP);
class TREE_MAP_ENTRY {
public:
USHORT child;
USHORT parent;
};
class TREE_MAP {
public:
BOOLEAN
Initialize(
USHORT size
);
VOID
SetEntry(
USHORT child,
USHORT parent
);
USHORT
QueryEntry(
USHORT child
) CONST;
VOID
ReplaceParent(
USHORT OldParent,
USHORT NewParent
);
USHORT
DeleteEntry(
USHORT child
);
private:
TREE_MAP_ENTRY* _map;
USHORT _size;
USHORT _max_size;
};