Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / February 2008

Tip: Looking for answers? Try searching our database.

LogonUser and GetUserName API issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
madhu - 14 Feb 2008 10:55 GMT
I have got some doubts
I have a win2k machine with domain logon

When i run GetUserName API containing exe at command prompt i am
getting the username in a format in which i have logged on to the
system.

I have a exe which creates a process with the specified user (Using
LogonUser and CreateProcessAsUser) and when i run GetUserName API
throught that process i am getting the username in the format in which
it was created originally.
Is there any way by which i can get it in the format in which we have
given instead of created format?
Joe Kaplan - 14 Feb 2008 18:27 GMT
TranslateName API?

Joe K.

Signature

Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--

>I have got some doubts
> I have a win2k machine with domain logon
[quoted text clipped - 9 lines]
> Is there any way by which i can get it in the format in which we have
> given instead of created format?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.