TNTFSAttrDef

From Ultibo.org
Jump to: navigation, search

Return to Unit NTFSClass


Description


To be documented

Class definitions



TNTFSAttrDef = class(TListObject)

Note: Data of file $AttrDef
 
constructor Create(ALocalLock:TMutexHandle);  
destructor Destroy; override;  
private
FLocalLock:TMutexHandle;  
 
FAttributeName:String; Label in Unicode
FAttributeType:LongWord; Type
FDisplayRule:LongWord; Display rule
FCollateRule:LongWord; Collation rule
FAttrDefFlags:LongWord; Flags (See Consts)
FMinimumSize:Int64; Minimum size
FMaximumSize:Int64; Maximum size
 
FAttributeHash:LongWord;  
 
function AcquireLock:Boolean;  
function ReleaseLock:Boolean;  
 
function GetAttributeName:String;  
procedure SetAttributeName(const AAttributeName:String);  
 
function GetIsIndexed:Boolean;  
function GetIsResident:Boolean;  
function GetIsUncompressed:Boolean;  
 
function Compare(AAttrDef:TNTFSAttrDef):Integer; virtual;  
public
property AttributeName:String read GetAttributeName write SetAttributeName;  
property AttributeType:LongWord read FAttributeType write FAttributeType;  
property DisplayRule:LongWord read FDisplayRule write FDisplayRule;  
property CollateRule:LongWord read FCollateRule write FCollateRule;  
property AttrDefFlags:LongWord read FAttrDefFlags write FAttrDefFlags;  
property MinimumSize:Int64 read FMinimumSize write FMinimumSize;  
property MaximumSize:Int64 read FMaximumSize write FMaximumSize;  
 
property IsIndexed:Boolean read GetIsIndexed;  
property IsResident:Boolean read GetIsResident;  
property IsUncompressed:Boolean read GetIsUncompressed;  
 
function Init(AIndex:Integer;AVersion:Word):Boolean;  
 
property AttributeHash:LongWord read FAttributeHash;  
 
function ReadAttrDef(ABuffer:Pointer; var AOffset,ASize:LongWord; AVersion:Word):Boolean;  
function WriteAttrDef(ABuffer:Pointer; var AOffset,ASize:LongWord; AVersion:Word):Boolean;  


Function declarations



constructor TNTFSAttrDef.Create(ALocalLock:TMutexHandle);
Description: To be documented
Note None documented


destructor TNTFSAttrDef.Destroy;
Description: To be documented
Note None documented


function TNTFSAttrDef.AcquireLock:Boolean;
Description: To be documented
Note None documented


function TNTFSAttrDef.ReleaseLock:Boolean;
Description: To be documented
Note None documented


function TNTFSAttrDef.GetAttributeName:String;
Description: To be documented
Note None documented


procedure TNTFSAttrDef.SetAttributeName(const AAttributeName:String);
Description: To be documented
Note None documented


function TNTFSAttrDef.GetIsIndexed:Boolean;
Description: To be documented
Note None documented


function TNTFSAttrDef.GetIsResident:Boolean;
Description: To be documented
Note None documented


function TNTFSAttrDef.GetIsUncompressed:Boolean;
Description: To be documented
Note None documented


function TNTFSAttrDef.Compare(AAttrDef:TNTFSAttrDef):Integer;
Description: Compare attrdef by type and name for sort order
Note The passed attrdef is the first value in a standard compare

Name is compared using a case insensitive compare method


function TNTFSAttrDef.Init(AIndex:Integer; AVersion:Word):Boolean;
Description: To be documented
Note None documented


function TNTFSAttrDef.ReadAttrDef(ABuffer:Pointer; var AOffset,ASize:LongWord; AVersion:Word):Boolean;
Description: Read the attrdef data from the supplied buffer at the supplied offset
Note None documented


function TNTFSAttrDef.WriteAttrDef(ABuffer:Pointer; var AOffset,ASize:LongWord; AVersion:Word):Boolean;
Description: Write the attrdef data to the supplied buffer at the supplied offset
Note None documented


Return to Unit Reference