Location: Symbol Reference > Classes > TJwSecurityId Class > TJwSecurityId Methods
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecurityId Methods

The methods of the TJwSecurityId class are listed here.

 
Name 
Description 
 
CheckSID checks if the SID instance contains a valid SID structure. If SID is not a correct SID, an exception will be raised. 
 
Create_PSID_AND_ATTRIBUTES allocates memory for a SID and Attributes structure. The SID instance will be copied into a new SID structure that is attached to the returned structure in its SID value. The new created structure must be freed by Free_PSID_AND_ATTRIBUTES.
Currently two memory blocks will be allocated and initialized:
  1. PSID_AND_ATTRIBUTES
  2. PSID

 
 
CreateCopyOfSID creates a new SID initilized sid. The values are copied from this SID instance. The SID must be freed by FreeSID
 
CreateSidIdentifierAuthority creates a TSidIdentifierAuthority structure from values. 
 
EqualDomainSid determines whether two SIDs are from the same domain.  
 
EqualPrefixSid tests two security-identifier (SID) prefix values for equality. A SID prefix is the entire SID except for the last subauthority value
This function simulates the WINAPI function GetWindowsAccountDomainSid and is therefore also available on Windows 2000.
 
 
.$IFNDEF DELPHI2009_UP 
 
EqualSid tests two security-identifier (SID) values for equality.  
 
Free_PSID_AND_ATTRIBUTES frees the memory allocated by Create_PSID_AND_ATTRIBUTES.
 
 
FreeSID frees a SID allocated by NewSID .  
 
GetAccountDomainName returns the domain account name of the SID on the computer given in SystemName. For more information see the see also section. 
 
GetAccountName returns the account name of the SID on the computer given in SystemName. For more information see the see also section. 
 
GetAccountNameUse returns the account name use of the SID on the computer given in SystemName. For more information see the see also section. 
 
GetAccountSidString gets the domain and acount name of the SID. It also returns the type of Sid Name.  
 
This is the overview for the GetAttributeString method overload. 
 
This is GetAttributesType, a member of class TJwSecurityId. 
 
This is GetCachedUserFromSid, a member of class TJwSecurityId. 
 
This is GetHashCode, a member of class TJwSecurityId. 
 
GetText creates a text that contains domain, account name and humand readable SID structure. The form is "[domain@]name (S-1-XXXXXX)" where [] is optional.  
 
This is the overview for the GetWindowsAccountDomainSid method overload. 
 
IntToSidAuth converts a value into a sid identifier structure.  
 
IsStandardSID checks if the SID is a SID defined in unit JwsclKnownSid. If this SID is a standard SID it must not be freed!  
 
NewSID allocates memory for a SID and returns the pointer to it. The size of allocated memory is always the maximum possible size of a SID. The constant SECURITY_MAX_SID_SIZE is used. The data must be freed by FreeSID .  
 
This is SetAttributesType, a member of class TJwSecurityId. 
 
SidAuthToInt converts a TSidIdentifierAuthority into an integer.  
 
This is SplitAccountString, a member of class TJwSecurityId. 
 
This is ToString, a member of class TJwSecurityId. 
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!