Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

"They ought to make butt-flavored cat food." --Gallagher


devel / comp.os.ms-windows.programmer.win32 / Re: CreateProcess and redirected input - how to "pass thru" ? Update2

SubjectAuthor
* CreateProcess and redirected input - how to "pass thru" ?R.Wieser
`* Re: CreateProcess and redirected input - how to "pass thru" ? UpdateR.Wieser
 `- Re: CreateProcess and redirected input - how to "pass thru" ? Update2R.Wieser

1
CreateProcess and redirected input - how to "pass thru" ?

<uvvsol$3i91j$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1216&group=comp.os.ms-windows.programmer.win32#1216

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: CreateProcess and redirected input - how to "pass thru" ?
Date: Sat, 20 Apr 2024 10:01:03 +0200
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <uvvsol$3i91j$1@dont-email.me>
Injection-Date: Sat, 20 Apr 2024 10:01:26 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="1a4ed7380435ed527b5600ca6ea06658";
logging-data="3744819"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX195slOy5ElW0Jbihrdk1g0/MvsmrZCzbAdjNUlYnppFEQ=="
Cancel-Lock: sha1:o/3HJRRjDOxuwGMXe/l1BHcrLHc=
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
 by: R.Wieser - Sat, 20 Apr 2024 08:01 UTC

Hello all,

I've written a "launcher" program which uses CreateProcess to start the
child. Both are console programs.

The thing is, the child (lets say its "more") accepts redirected input and
I've got no idea how to get the redirected input from the launcher to the
child.

I've tried a few things (inheriting StdIO handles), but cannot seem to get
it to work, nor does googeling turn anything up. :-(

So, the question : how do I allow the child to, if present, use the
redirected input the launcher gets.

Remark: this is *not* about the launcher talking to the child using pipes.
Examples about that are plenty. If the launcher gets cut off from StdInp
its fine by me.

Regards,
Rudy Wieser

Re: CreateProcess and redirected input - how to "pass thru" ? Update

<v00g1j$3mfrj$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1217&group=comp.os.ms-windows.programmer.win32#1217

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: CreateProcess and redirected input - how to "pass thru" ? Update
Date: Sat, 20 Apr 2024 15:30:21 +0200
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <v00g1j$3mfrj$1@dont-email.me>
References: <uvvsol$3i91j$1@dont-email.me>
Injection-Date: Sat, 20 Apr 2024 15:30:28 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="1a4ed7380435ed527b5600ca6ea06658";
logging-data="3882867"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gw25uVus8bKJUGPt8fub668du/Ern2fzbb53R4StRDw=="
Cancel-Lock: sha1:vHdvOput1VH5IwpeDxXTfzM+MwA=
X-Priority: 3
X-RFC2646: Format=Flowed; Response
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
 by: R.Wieser - Sat, 20 Apr 2024 13:30 UTC

> So, the question : how do I allow the child to, if present, use
> the redirected input the launcher gets.

As it turns out (after having tried throwing all kinds of stuff at it),
letting the child inherit the launchers StdIO handles isn't the problem.

What is is that I've put that launcher into the registry as the "open" verb
for a certain file extension.

IOW, running it from the comandline works, running it by double-clicking the
involved file fails.

I think I'm outof my depth her ...

Remark: I've also tried to add OleInitialize (just a hunch), but that didn't
make any difference. :-\

Regards,
Rudy Wieser

Re: CreateProcess and redirected input - how to "pass thru" ? Update2

<v03i6f$dnt9$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=1218&group=comp.os.ms-windows.programmer.win32#1218

  copy link   Newsgroups: comp.os.ms-windows.programmer.win32
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: address@is.invalid (R.Wieser)
Newsgroups: comp.os.ms-windows.programmer.win32
Subject: Re: CreateProcess and redirected input - how to "pass thru" ? Update2
Date: Sun, 21 Apr 2024 19:25:27 +0200
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <v03i6f$dnt9$1@dont-email.me>
References: <uvvsol$3i91j$1@dont-email.me> <v00g1j$3mfrj$1@dont-email.me>
Injection-Date: Sun, 21 Apr 2024 19:25:36 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="fc2363ffd5d3191370071206cd979785";
logging-data="450473"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX199dVJcCoE7BSfhLvsM0oN9kKY3OMmdhl0mzr5TAAHjuw=="
Cancel-Lock: sha1:pSVe5c0a+Gn3BBY3we77E4zv6Q0=
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512
X-RFC2646: Format=Flowed; Response
 by: R.Wieser - Sun, 21 Apr 2024 17:25 UTC

> What is is that I've put that launcher into the registry as the "open"
> verb for a certain file extension.

(going thru the registry:)

I checked if the launcher itself could read redirected input from StdIn, and
it couldn't.

I removed the launcher altogether, and I got the same problem : and invalid
handle.

FYI, the called (origional) program in case is cscript (for which I added a
".VBC" extension), and the "invalid handle" error is thrown by the script
that is run.

Regards,
Rudy Wieser

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor