Location: Symbol Reference > Classes > TJwSecurityId Class > TJwSecurityId Methods > TJwSecurityId.GetAccountSidString Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecurityId.GetAccountSidString Method
Pascal
function GetAccountSidString(const SystemName: TJwString; out DomainName: TJwString; out SidNameUse: TSidNameUse): TJwString; virtual;
Parameters 
Description 
const SystemName: TJwString 
contains the target computer name. It can be null to use the local system.  
out DomainName: TJwString 
[out] gets the domain name of this SID  
out SidNameUse: TSidNameUse 
[out] gets the SID use type. It will be one of the following constant :
  • SidTypeUser = 1;
  • SidTypeGroup = 2;
  • SidTypeDomain = 3;
  • SidTypeAlias = 4;
  • SidTypeWellKnownGroup = 5;
  • SidTypeDeletedAccount = 6;
  • SidTypeInvalid = 7;
  • SidTypeUnknown = 8;
  • SidTypeComputer = 9;
 

GetAccountSidString returns the account name associated by this SID.

GetAccountSidString gets the domain and acount name of the SID. It also returns the type of Sid Name.

If the compiler directive JWSCL_SIDCACHE or JWSCL_USE_CACHES is active GetAccountSidString uses an caching algorithm per thread basis to return the name. A new SID is stored in the global JwSidNameCache variable (per thread) and used every time the same SID is returned. A SID is determined by its SidString (property) and its System name. 

 

Exceptions 
Description 
if the call to a winapi function failed 
See CheckSID for more exceptions 
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!