|
Action |
Translates a Security Identifier (SID) into a name.
|
Syntax |
SIDTONAME ("sid")
|
Parameter |
SID
String representation of SID to translate.
|
Remarks |
SIDTONAME is not supported on Windows 9x.
|
Returns |
|
0 |
Name corresponding to SID. |
|
Error code |
Function failed |
|
Example |
? SidToName( "S-1-1-0") ;
displays ‘Everyone’
If InGroup( SidToName( "S-1-5-32-544"
) )
? "Must
mean current user is a member of local Administrators"
Endif