I am writing an application that as part of the output prints the details of the user who printed it.
I have no problem getting the username (I.e. the string that the user has to type in before their pasword) but I would like to get the Full Name.
Under NT if you fire up User Manager and add a new user there are 5 boxes you fill in:
I can get this with:
S := SizeOf(GetUserNameArray);
frmMain.txtUserName.Text := GetUserNameArray;
2. Full Name
5. Confirm Password
So, what I am after is some code (probably an API thing?) to get Full Name and Description of the currently logged in user.
Hope that makes sense.