🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Finding whether Console app has a window

#4096
From: Richard Casten
Date: Tue, 14 Mar 2006 19:52
7 lines
1331 bytes
I have a console application that is either executed in a console
window or is executed from another application using
CreateProcess with the creation flag set to CREATE_NO_WINDOW so
that there is no window for which the console application to
write standard output.  My question is how, within the console
application, to determine if the application was created with the
CREATE_NO_WINDOW flag.
Technical Details
Message-ID: <44171EF9.DD8A51D0@aero.org>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8446b6f28f0db0be,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Message-ID: <44171EF9.DD8A51D0@aero.org>
Date: Tue, 14 Mar 2006 11:52:26 -0800
From: Richard Casten <richard.casten@aero.org>
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Finding whether Console app has a window
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 130.221.27.185
X-Trace: newsgroups.borland.com 1142365860 130.221.27.185 (14 Mar 2006 11:51:00 -0700)
Lines: 8
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail