🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Running app on another desktop

#7225
From: Daniel
Date: Mon, 07 Mar 2005 00:15
59 lines
2406 bytes
I have since read on another site that applications are only visible on  
"WinSta0".  After removing the code that creates another Windows Station,  
my application is now visible.  But I now have another problem.

In this launched application, I am trying to capture WM_QUERYENDSESSION  
and WM_ENDSESSION via WndProc() to prevent the user from logging off.  The  
code works perfectly when running under the default desktop but the  
messages are never received when running under the newly created desktop.

Any ideas how I can get this to work.

TIA.

Daniel.



On Mon, 07 Mar 2005 10:59:58 +1100, Daniel <d.jimenez@comvision.net.au>  
wrote:

> I am attempting to spawn an application on another desktop (with the new  
> desktop visible, thereby hiding the default desktop).
>
> For reference, the launching of the application is performed in a worker  
> thread, where this thread waits for the launched application to close  
> before it terminates, closing the desktop etc.
>
> I can see my launched program running in Task Manager but the new  
> desktop is not made visible.
>
> I'm currently using all access options until I can sort out where I am  
> going wrong.
>
> I'd appreciate someone pointing me where I am going wrong.  TIA.
>
> Here is the code:
>
[snip]
Technical Details
Message-ID: <opsm8qztq7oyenhq@development-ws2.comvision.intranet>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <opsm8p981moyenhq@development-ws2.comvision.intranet>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a1b849e29d6cf9bc
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Running app on another desktop
Reply-To: d.jimenez@comvision.net.au
References: <opsm8p981moyenhq@development-ws2.comvision.intranet>
Message-ID: <opsm8qztq7oyenhq@development-ws2.comvision.intranet>
Date: Mon, 07 Mar 2005 11:15:19 +1100
From: Daniel <d.jimenez@comvision.net.au>
Organization: Comvision Pty Ltd
Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15
MIME-Version: 1.0
Content-Transfer-Encoding: Quoted-Printable
User-Agent: Opera M2/7.54 (Win32, build 3929)
NNTP-Posting-Host: 60.229.104.14
X-Trace: newsgroups.borland.com 1110154556 60.229.104.14 (6 Mar 2005 16:15:56 -0800)
Lines: 59
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail