Information about the current logged user !
- From: Depechie <glenn.versweyveld@xxxxxxxxx>
- Date: Wed, 05 Sep 2007 14:54:20 -0000
Hey guys,
small question. Can I find out if the current logged on use is a local
user or a domain user ?
And please don't use any solution that uses String parsing...
What I need is to get the display name of the current user and the
only way I'm able to do this is using a DLL wrapper :
[DllImport("secur32.dll", CharSet=CharSet.Auto)]
public static extern int GetUserNameEx (int nameFormat,
StringBuilder userName, ref int userNameSize);
But is there no .Net code available ??
Greets
Glenn
.
- Follow-Ups:
- Re: Information about the current logged user !
- From: Willy Denoyette [MVP]
- Re: Information about the current logged user !
- From: Brian Muth
- Re: Information about the current logged user !
- Prev by Date: Re: Record number when using SqlCeResultSet
- Next by Date: Re: MessageBox in multi threaded app
- Previous by thread: ViewState VS Session
- Next by thread: Re: Information about the current logged user !
- Index(es):
Relevant Pages
|