🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Named Pipes as Files

#7245
From: Remy Lebeau (TeamB)
Date: Tue, 22 Feb 2005 19:34
14 lines
1365 bytes
"Mike King" <emailMK@excite.com> wrote in message
news:421b4505@newsgroups.borland.com...

> From time to time, I find that it would be nice to pipe input into
> a GUI application like one would do for a console application by
> using the '|' character.  Is it possible to create a named pipe and
> pull content from it as if it were a file?

Look at GetStdHandle() or GetStartupInfo() to get the process's STDIN pipe,
and then you can use that with ReadFile().


Gambit
Technical Details
Message-ID: <421b8942$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <421b4505@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bcb64eadaf6e372
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <421b4505@newsgroups.borland.com>
Subject: Re: Named Pipes as Files
Date: Tue, 22 Feb 2005 11:34:35 -0800
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <421b8942$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1109100866 68.69.17.41 (22 Feb 2005 11:34:26 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail