Re: Retrieving username
"kunal s patel" <kunalspatel@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message
news:AA01ED9F-08FB-48F9-B19F-F5FCBA2B80E6@xxxxxxxxxxxxx
I have a question regarding retrieving currently logged on
user.....now i know, windows have one api called GetUserName(). Now
if i use this api from my service, i get SYSTEM as the user
name.....but i want to retrieve the user name of the person who is
currently logged in the system....is there some other apis for
that.....
http://blogs.msdn.com/oldnewthing/archive/2006/08/22/712677.aspx
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
Relevant Pages
- Re: newbe about API
... Emne: Re: newbe about API ... > I found all these API-CALL strings are finally compiled to ... more than that...and Windows simply takes this to an extreme that this ... DLL, when a weak point is found (which, with Microsoft, is something ... (alt.lang.asm) - Re: In the Shallow End
... When a document claims how an API is supposed to be used and then gives the user examples that actually work, ... Vague in your instance means you have no context to VMS or UNIX of that era. ... Windows offers lots of this stuff. ... That's why Apple had to dump a whole paradigm to plunge ahead and take the lead. ... (comp.sys.mac.advocacy) - Re: a pre-beginners question: what is the pros and cons of .net, compared to ++
... as the windows forms architecture wraps a number of activex ... and retains backwards compatibility with both COM and the classic Win32 api. ... C++ cannot inherently do video capture either, since you have to import COM. ... Outlook or Word or IM programs, each of which would run in managed code ... (microsoft.public.dotnet.general) - Re: Interpreting a BAS module
... unicode and ansi strings. ... applications make calls out to Windows to ask it to do something (e.g. ... you have to utilize an API that is designed to ... AddressOf is also used in subclassing. ... (microsoft.public.vb.general.discussion) - Re: Difference between .NET and Java
... > people that I know agree with my speculation that the CLR was in fact ... > similarities between the CLR and the Win32 API. ... Actually what I ment to say was the .NET has Windows specific functionality ... (comp.lang.java.programmer) |
|