TNTFSSecurityItems

From Ultibo.org
Jump to: navigation, search

Return to Unit NTFSClass


Description


To be documented

Class definitions



TNTFSSecurityItems = class(TFileSysList)

constructor Create;  
destructor Destroy; override;  
private
FSecurityLocal:TMutexHandle;  
 
function GetPrevious(ASecurityItem:TNTFSSecurityItem):TNTFSSecurityItem;  
public
function CreateSecurityItem(ANew:Boolean):TNTFSSecurityItem;  
function DestroySecurityItem(ASecurityItem:TNTFSSecurityItem):Boolean;  
function NewSecurityItem(ASecurityId:LongWord; const ASecurityOffset:Int64; ASecurity:TNTFSSecurity):TNTFSSecurityItem;  
function GetSecurityItem(ASecurityId:LongWord):TNTFSSecurityItem;  
function GetSecurityItemEx(ASecurityId:LongWord; AWrite:Boolean):TNTFSSecurityItem;  
function UpdateSecurityItem(ASecurityItem:TNTFSSecurityItem; ASecurityId:LongWord; ASecurity:TNTFSSecurity):Boolean;  
function DeleteSecurityItem(ASecurityItem:TNTFSSecurityItem):Boolean;  
function RemoveSecurityItem(ASecurityItem:TNTFSSecurityItem; AFree:Boolean):Boolean;  
 
function TotalSize:Int64;  
 
function SecurityItemCount:LongWord;  
 
function Init(AVersion:Word):Boolean;  
 
function ReadSecurityItems(ABuffer:Pointer; var AOffset,ASize:LongWord; AVersion:Word):Boolean;  
function WriteSecurityItems(ABuffer:Pointer; var AOffset,ASize:LongWord; AVersion:Word):Boolean;  


Function declarations



constructor TNTFSSecurityItems.Create;
Description: To be documented
Note None documented


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


function TNTFSSecurityItems.GetPrevious(ASecurityItem:TNTFSSecurityItem):TNTFSSecurityItem;
Description: To be documented
Note Caller must hold the lock


function TNTFSSecurityItems.CreateSecurityItem(ANew:Boolean):TNTFSSecurityItem;
Description: Create a security item, add to end of list
Note None documented


function TNTFSSecurityItems.DestroySecurityItem(ASecurityItem:TNTFSSecurityItem):Boolean;
Description: Remove the security item from the list and free
Note None documented


function TNTFSSecurityItems.NewSecurityItem(ASecurityId:LongWord; const ASecurityOffset:Int64; ASecurity:TNTFSSecurity):TNTFSSecurityItem;
Description: Create a security item, insert in sorted list
Note None documented


function TNTFSSecurityItems.GetSecurityItem(ASecurityId:LongWord):TNTFSSecurityItem;
Description: Get a security item by Id
Note None documented


function TNTFSSecurityItems.GetSecurityItemEx(ASecurityId:LongWord; AWrite:Boolean):TNTFSSecurityItem;
Description: Get a security item by Id
Note None documented


function TNTFSSecurityItems.UpdateSecurityItem(ASecurityItem:TNTFSSecurityItem; ASecurityId:LongWord; ASecurity:TNTFSSecurity):Boolean;
Description: Convert a blank to a security item
Note None documented


function TNTFSSecurityItems.DeleteSecurityItem(ASecurityItem:TNTFSSecurityItem):Boolean;
Description: To be documented
Note None documented


function TNTFSSecurityItems.RemoveSecurityItem(ASecurityItem:TNTFSSecurityItem; AFree:Boolean):Boolean;
Description: Remove the security item from the list and free if requested
Note None documented


function TNTFSSecurityItems.TotalSize:Int64;
Description: To be documented
Note None documented


function TNTFSSecurityItems.SecurityItemCount:LongWord;
Description: To be documented
Note None documented


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


function TNTFSSecurityItems.ReadSecurityItems(ABuffer:Pointer; var AOffset,ASize:LongWord; AVersion:Word):Boolean;
Description: Read the security items from the supplied buffer at the supplied offset
Note None documented


function TNTFSSecurityItems.WriteSecurityItems(ABuffer:Pointer; var AOffset,ASize:LongWord; AVersion:Word):Boolean;
Description: Write the security items to the supplied buffer at the supplied offset
Note None documented


Return to Unit Reference