This might be overkill, but Mabry (
http://www.mabry.com) sells a control that allows for complete control over most NT functions.
>Im sure this must have been posted before but I couldn't find it.
>
>Would someone tell me the api that can be used to get the
>whoami type of info under NT and windows.
>
>
>Thanks
>
>Chris
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05