Article View: borland.public.cppbuilder.nativeapi
Article #5105Re: Win XP switch user
From: Remy Lebeau (TeamB)
Date: Thu, 06 Oct 2005 17:29
Date: Thu, 06 Oct 2005 17:29
21 lines
1844 bytes
1844 bytes
"Mike Collins" <its@thebottomofthe.post> wrote in message news:43451f25$1@newsgroups.borland.com... > Hi all, can anyone tell me, if there somesort of message sent to all > applications that indicates the XP switch user has been executed > or is intended to be executed? I need to indicate to our server if > the user account under which our app is runing as switch user. You need to call WTSRegisterSessionNotification() in order to receive notifications from the Fast User Switching feature. When the user is switched, your window will receive the WM_WTSSESSION_CHANGE message. You can then check the lParam for the WTS_SESSION_LOGOFF and WTS_SESSION_LOGON codes. Once you have called WTSRegisterSessionNotification(), you will have to call WTSUnRegisterSessionNotification() when you no longer need to keep track of the user. Gambit
Technical Details
Message-ID:
<43455fbd$3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!217.73.144.44.MISMATCH!ecngs!feeder.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<43451f25$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3a004ec7b5028842 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <43451f25$1@newsgroups.borland.com> Subject: Re: Win XP switch user Date: Thu, 6 Oct 2005 10:29:13 -0700 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <43455fbd$3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1128619965 68.69.17.41 (6 Oct 2005 10:32:45 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!217.73.144.44.MISMATCH!ecngs!feeder.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail