🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Hiding a console app

#10685
From: p Anders
Date: Thu, 25 Mar 2004 13:19
25 lines
1845 bytes
I'm not sure about this, but I've just been trying to do some of the same
stuff.  I was able to use "FreeConsole()" to detach the process from the
console.  The process seems to keep running but the console goes away.

As I said, I haven't done much with this - just an initial attempt and it
seemed to work.  Someone else may have more insight.

"John Franklin" <john@lesberries.co.uk> wrote in message
news:4062a188@newsgroups.borland.com...
> I need to launch programatically an application that runs as a console
> application (it's a virus scan program that does some scanning and then
> closes) but I don't want it to appear on the screen.
>
> I have tried setting the STARTUPINFO.wShowWindow in CreateProcess to
SW_HIDE
> (or SW_MINIMIZE) but this has no effect. The console window is still
> displayed.
>
> Any ideas?
>
> Thanks.
>
> John Franklin
>
>
Technical Details
Message-ID: <4062dc4f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4062a188@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e0aab47c69c9995e
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-25 05:40:08 PST
Reply-To: "p Anders" <paul.anderson@jhuapl.edu>
From: "p Anders" <paul.anderson@jhuapl.edu>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4062a188@newsgroups.borland.com>
Subject: Re: Hiding a console app
Date: Thu, 25 Mar 2004 08:19:10 -0500
Lines: 27
Organization: JHU/APL
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: 128.244.21.78
Message-ID: <4062dc4f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1080220751 128.244.21.78 (25 Mar 2004 05:19:11 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail