Hi, to get the current windows user in c# is
System.Security.Principal.WindowsIdentity.GetCurrent().Name
Which will give you the name of the user running the current thread.

Signature
Regards,
Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com
> hi...looking for a example of
> How to get the Users suid from a windows domain
>
> thanks
Analizer1 - 03 Feb 2008 14:43 GMT
thanks...
but i have a userid and i need to look up the suid...of that user , Not
necessarly the current user
thanks
> Hi, to get the current windows user in c# is
>
[quoted text clipped - 6 lines]
>>
>> thanks
Analizer1 - 03 Feb 2008 15:25 GMT
I found it...use in directory services...
thanks again
> Hi, to get the current windows user in c# is
>
[quoted text clipped - 6 lines]
>>
>> thanks