Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get logged-in user's full name in windows?

How to get logged-in user's full name (the one he/she entered as his/her real name) using windows API or something else? For example how to get "John Smith", not "john" (as it were his username).

GetUserName(...) doesn't do the job because it returns the username, not the full name.

like image 857
Termopetteri Avatar asked Aug 09 '10 09:08

Termopetteri


1 Answers

Did you try GetUserNameEx(NameDisplay,...)?

like image 166
Anders Avatar answered Oct 10 '22 05:10

Anders