🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: mouse_event can't work under screen saver and windows logon screen.

#3370
From: Mike Collins
Date: Wed, 05 Jul 2006 09:23
29 lines
1957 bytes
What are you trying to achieve?  As is often the case there may be an 
alternative way of dealing with your problem.

As remy has stated you cant send messages to alternative desktops.  It may 
be possible if your applicaiton runs in the context of LOCAL_SYSTEM but i 
can't remember of the top of my head - seems to remember it involved 
CreateRemoteThread(), GetProcessWindowStation()  and EnumDesktopWindows().

HTH

Mike C


"mikec" <mikec@crete.com.tw> wrote in message 
news:44ab4416$1@newsgroups.borland.com...
> Hello,
>
> I use mouse_event(Win32 API) to simulate left mouse button down.
> It works fine under windows(XP) system. But if I enter screen saver's
> desktop
> that the function can't work same as Windows startup logon screen.
> I don't know why for that. Does anyone can give me a solution for solve 
> this
> problem?
>
> Any help is appreciated.
> Mike
>
> 
Technical Details
Message-ID: <44ab84f8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.albasani.net!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail
References: <44ab4416$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2a8277f1958576bc
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mike Collins" <its@TheBottomOfThePost.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <44ab4416$1@newsgroups.borland.com>
Subject: Re: mouse_event can't work under screen saver and windows logon screen.
Date: Wed, 5 Jul 2006 10:23:02 +0100
Lines: 31
Organization: SDA Ltd
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.2663
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2663
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 81.2.92.14
Message-ID: <44ab84f8$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1152091384 81.2.92.14 (5 Jul 2006 02:23:04 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.albasani.net!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail