🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Named Pipes as Files

#7244
From: Mike King
Date: Tue, 22 Feb 2005 16:47
25 lines
2216 bytes
"Bob Gonder" <notbg@notmindspring.invalid> wrote in message 
news:kpmm11lvtf40qt667g0a9fdl83rdo8g67p@4ax.com...
> Mike King wrote:
>
>>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?
>
> What is it exactly, that you want to do?
> '|' and '<' redirected stdin.
> '>' redirected stdout.
>
> Those pipes still work from the commandline.
>
> An application can create pipes, and launch a sub program that will
> then think those pipes are stdin and stdout.
> See CreateProcess(), and in particular, the STARTUPINFO structure.

I was thinking about a pull-modal where the data is dynamic (probably 
endless) so a file would not be the best solution.  Just as an example, I 
would like Notepad to be able to read from the pipe.  So I would click 
File -> Open then type in \\.\pipe\mynamedpipe and click Open.  Notepad then 
would show me some data that would be produce by a Windows Service or a 
application that is running in the background. 
Technical Details
Message-ID: <421b622f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <421b4505@newsgroups.borland.com> <kpmm11lvtf40qt667g0a9fdl83rdo8g67p@4ax.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: "Mike King" <emailMK@excite.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <421b4505@newsgroups.borland.com> <kpmm11lvtf40qt667g0a9fdl83rdo8g67p@4ax.com>
Subject: Re: Named Pipes as Files
Date: Tue, 22 Feb 2005 11:47:58 -0500
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
NNTP-Posting-Host: 64.45.143.248
Message-ID: <421b622f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1109090863 64.45.143.248 (22 Feb 2005 08:47:43 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!feed5.newsreader.com!newsreader.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail