🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Detect WinXP Login Screen

#4732
From: Thom A.
Date: Thu, 15 Dec 2005 11:40
17 lines
1643 bytes
> Use OpenDesktop() to open the "WinLogin" desktop.  In case WinLogin
> continues to exist while the user is working, you may have to use
> OpenInputDesktop() instead and then use GetUserObjectInformation() to see if
> the active desktop's name is "WinLogin".


Well, it didn't work as expected, but I can use it:

HWND hDesktop = OpenInputDesktop(0,false,DESKTOP_READOBJECTS);

returns a valid handle if the desktop is visible or a screen-saver is 
running, but returns hDesktop = 0, when the login screen is shown.

Still, this solves my problem. Thanks for your help, Gambit!!


Thomas
Technical Details
Message-ID: <43a15537$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43a099bd$1@newsgroups.borland.com> <43a0a9ae$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,eda9c56c5ddeb0a7
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 15 Dec 2005 12:40:56 +0100
From: "Thom A." <thoma@gmx.at>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.4) Gecko/20030619 Netscape/7.1 (ax)
X-Accept-Language: de-de, de
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Detect WinXP Login Screen
References: <43a099bd$1@newsgroups.borland.com> <43a0a9ae$1@newsgroups.borland.com>
In-Reply-To: <43a0a9ae$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 131.246.27.107
Message-ID: <43a15537$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1134646583 131.246.27.107 (15 Dec 2005 03:36:23 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail