OK .... Re: How to find out the "current" user ?
From: Polaris (etpolaris_at_hotmail.com)
Date: 06/22/05
- Previous message: Secret_Cherokee: "System restore Files"
- In reply to: Polaris: "How to find out the "current" user ?"
- Next in thread: Eugene Gershnik: "Re: OK .... Re: How to find out the "current" user ?"
- Reply: Eugene Gershnik: "Re: OK .... Re: How to find out the "current" user ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 21 Jun 2005 23:06:15 -0700
Thanks guys for your help and information.
I think I can get currently logged on user by looking "DefaultDomainName"
and "DefaultUserName" in registry:
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
I have tested with different accounts and it worked fine.
Polaris
"Polaris" <etpolaris@hotmail.com> wrote in message
news:uHGl6zedFHA.2520@TK2MSFTNGP09.phx.gbl...
> Hi:
> I have a question on how to determine the "Currently" logged on user in
> Win-XP). I can use NetWkstaUserEnum() to get a list of logged on users,
> but how to determine which user is the one who currently own the active
> desktop ?
>
> And one more, even after log off the machine, some times, an account
> (domain\user) is still got returned by the NetWkstaUserEnum, why is that?
>
>
>
> Thanks in advance!
>
> Polaris
>
>
- Previous message: Secret_Cherokee: "System restore Files"
- In reply to: Polaris: "How to find out the "current" user ?"
- Next in thread: Eugene Gershnik: "Re: OK .... Re: How to find out the "current" user ?"
- Reply: Eugene Gershnik: "Re: OK .... Re: How to find out the "current" user ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]