Well if we look at the code we see that it reads this from the registry ProfileImagePath which typically is just the FOLDER name.

SidToName on the otherhand also gives the Domain the account comes from.


JOHNDOE
 vs.
SOMEDOMAIN\JOHNDOE
 


Edited by NTDOC (2006-06-24 04:16 AM)