I got a local account that got a username "rabi" when I execute "whoami /all" I get some information about that user: uname mikeschleppi\rabatscher .... enumerates all groups and some priviledges. But also not all information that I want....
Some of that info I can query by using the GetUsernameEx API. Nevertheless the User Account Manager shows me a nice display name (like: John Doe) and the email address that was used.
How can I get that information (especially full name) in Delphi? GetUsernameEx is obviously not the option here...
To clarify: The account window to manage my user account actually shows my full name
So I wondered how to get that information. I'm sure the code you guys suggested works for AD (and maybe even LDAP servers) but I'm interested in the information about the local user...