🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Hiding a console app

#10682
From: Arnie Mauer
Date: Thu, 25 Mar 2004 13:18
20 lines
1492 bytes
"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

Try the DETACHED_PROCESS flag in dwCreationFlags in CreateProcess().

- Arnie
Technical Details
Message-ID: <4062dbdf@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
From: "Arnie Mauer" <xxx@nowhere.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4062a188@newsgroups.borland.com>
Subject: Re: Hiding a console app
Date: Thu, 25 Mar 2004 08:18:28 -0500
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 209.140.211.97
Message-ID: <4062dbdf@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1080220639 209.140.211.97 (25 Mar 2004 05:17:19 -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