Difference between revisions of "TNTFSSecurityItem"

From Ultibo.org
Jump to: navigation, search
(Created page with "Return to Unit NTFSClass __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible m...")
 
 
Line 64: Line 64:
 
|-
 
|-
 
| <code>function Compare(ASecurityItem:TNTFSSecurityItem):Integer; virtual;</code>
 
| <code>function Compare(ASecurityItem:TNTFSSecurityItem):Integer; virtual;</code>
| &nbsp;
 
|-
 
| <code>function CompareOld(ASecurityItem:TNTFSSecurityItem):Integer; virtual; </code>
 
 
| &nbsp;
 
| &nbsp;
 
|-
 
|-
Line 186: Line 183:
 
|-
 
|-
 
! Note
 
! Note
| Replaces function below, Security Items are sorted by Offset not by Id
+
| Security Items are sorted by Offset not by Id
|-
+
|}
+
</div></div>
+
<br />
+
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
+
<pre style="border: 0; padding-bottom:0px;">function TNTFSSecurityItem.CompareOld(ASecurityItem:TNTFSSecurityItem):Integer;</pre>
+
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div>
+
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
+
{| class="wikitable" style="font-size: 14px; background: white;"
+
|-
+
! Note
+
| None documented
+
 
|-
 
|-
 
|}
 
|}

Latest revision as of 05:07, 21 June 2023

Return to Unit NTFSClass


Description


To be documented

Class definitions



TNTFSSecurityItem = class(TListObject)

Note: Data of stream $SDS in file $Secure
 
constructor Create(ALocalLock:TMutexHandle);  
destructor Destroy; override;  
private
FLocalLock:TMutexHandle;  
 
FSecurityHash:LongWord; Hash of Security Descriptor
FSecurityId:LongWord; Security Id
FSecurityOffset:Int64; Offset of this entry in $SDS
FSecuritySize:LongWord; Size of this entry in $SDS
 
FSecurity:TNTFSSecurity; Self-relative Security Descriptor
 
function AcquireLock:Boolean;  
function ReleaseLock:Boolean;  
 
function Compare(ASecurityItem:TNTFSSecurityItem):Integer; virtual;  
public
property SecurityHash:LongWord read FSecurityHash write FSecurityHash;  
property SecurityId:LongWord read FSecurityId write FSecurityId;  
property SecurityOffset:Int64 read FSecurityOffset write FSecurityOffset;  
property SecuritySize:LongWord read FSecuritySize write FSecuritySize;  
 
property Security:TNTFSSecurity read FSecurity;  
 
function CreateSecurity:Boolean;  
function NewSecurity(ASecurity:TNTFSSecurity):Boolean;  
function UpdateSecurity(ASecurity:TNTFSSecurity):Boolean;  
function DeleteSecurity:Boolean;  
function RemoveSecurity(AFree:Boolean):Boolean;  
 
function MirrorOffset:Int64;  
 
function Init(ASecurityId:LongWord; AVersion:Word):Boolean;  
 
function ReadSecurityItem(ABuffer:Pointer; var AOffset,ASize:LongWord; AVersion:Word):Boolean;  
function WriteSecurityItem(ABuffer:Pointer; var AOffset,ASize:LongWord; AVersion:Word):Boolean;  


Function declarations



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


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


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


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


function TNTFSSecurityItem.Compare(ASecurityItem:TNTFSSecurityItem):Integer;
Description: To be documented
Note Security Items are sorted by Offset not by Id


function TNTFSSecurityItem.CreateSecurity:Boolean;
Description: Create a security, setup properties do not update Item
Note None documented


function TNTFSSecurityItem.NewSecurity(ASecurity:TNTFSSecurity):Boolean;
Description: Create a security, setup properties and update Item
Note None documented


function TNTFSSecurityItem.UpdateSecurity(ASecurity:TNTFSSecurity):Boolean;
Description: To be documented
Note None documented


function TNTFSSecurityItem.DeleteSecurity:Boolean;
Description: To be documented
Note None documented


function TNTFSSecurityItem.RemoveSecurity(AFree:Boolean):Boolean;
Description: Called by RemoveSecurityItem to remove and free the security if requested
Note None documented


function TNTFSSecurityItem.MirrorOffset:Int64;
Description: To be documented
Note None documented


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


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


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


Return to Unit Reference