🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8552

Re: Retreive connected user login name

#8552
From: JF Jolin
Date: Thu, 14 Oct 2004 17:47
37 lines
1534 bytes
14 Oct 2004 09:51:15 +0200, SST <serge_schmit@msn.com> wrote:

> I'm in a NT domain.
>
> I'm had already find all active desktop names from my domain.
>
> Now I need to find logged user name for each desktop.
>
> I'm unable to find the way or right API to use.
>
> And what if in a 2k domain or AD?
>
>
>
> Please, some help would be appreciating.
>
>
>
>
>
>
>
> (Sorry for my poor English)
>
>
>

If I am not wrong it has something to do with the identification
of a proccess (OpenProcessToken), identification of the user belonging to 
that proccess (GetTokenInformation) and then extraction of the name 
(LookupAccountSid).



-- 
JF Jolin
[Montreal, Canada]
Technical Details
Message-ID: <opsfvfowk5z6rw7b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <416e2faa$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2b09319a97a246c7,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Retreive connected user login name
References: <416e2faa$1@newsgroups.borland.com>
Message-ID: <opsfvfowk5z6rw7b@newsgroups.borland.com>
Content-Type: text/plain; charset=iso-8859-15; format=flowed
From: JF Jolin <jfj@nospam.com>
MIME-Version: 1.0
Date: Thu, 14 Oct 2004 13:47:10 -0400
User-Agent: Opera7.11/Win32 M2 build 2887
NNTP-Posting-Host: 66.158.141.182
X-Trace: newsgroups.borland.com 1097776042 66.158.141.182 (14 Oct 2004 10:47:22 -0700)
Lines: 37
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail