🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Service HandlerEx: SERVICE_CONTROL_SESSIONCHANGE

#12341
From: Andreas Schwarz
Date: Thu, 11 Dec 2003 09:52
24 lines
1476 bytes
Hello,

I have a little problem:

I'm running a service which has initialized a HandlerEx Callback function
and i'm waiting for
the event SERVICE_CONTROL_SESSIONCHANGE to get notify when the user is
changing or whatever happen
to the user.

Now i have the SessionID (Example: User1=0 User2=1 ...)

case SERVICE_CONTROL_SESSIONCHANGE:
   sessionid = ((PWTSSESSION_NOTIFICATION)lpEventData)->dwSessionId;

Next i want to get the username... how to do this ?

I know that this is only working on Windows XP > Systems, but how do i got
notified when the user
is changed on Windows 2000 ?

Greetings,

Andreas
Technical Details
Message-ID: <3fd83dcd@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,9ad4c0e990b3fca5,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-11 02:09:29 PST
From: "Andreas Schwarz" <andreas.schwarz@hamburg.de>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Service HandlerEx: SERVICE_CONTROL_SESSIONCHANGE
Date: Thu, 11 Dec 2003 10:52:03 +0100
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 217.237.184.18
Message-ID: <3fd83dcd@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1071136205 217.237.184.18 (11 Dec 2003 01:50:05 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail