Chris,
You can call the GetUserNameEx API function through the P/Invoke layer
to get the display name. For the NameFormat parameter, you can pass the
value of NameDisplay from the EXTENDED_NAME_FORMAT enumeration (it has a
value of 3).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Chris Clement" <ch**********@onlyonnewsgroup.com> wrote in message
news:OJ**************@tk2msftngp13.phx.gbl...
I am trying to get the full name of a user not logged into a network on
Windows 2000/XP. I know how to get the user name (cclement), but how do I
get the full display name (Chris Clement) as it is displayed in the start
menu in Windows XP?
Any help is appreciated.
Chris