File:  [WindowsNT SDKs] / q_a / samples / inherit / readme
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 18:29:19 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: ntsdk-jun-1992, HEAD
Microsoft Windows NT Build 297 06-28-1992

 Sample: Converting Anonymous Pipes in OS/2 to Win32

Summary:

The sample INHERIT demonstrates how to redirect standard
output and standard error to an anonymous pipe via the
SetStdHandle Win32 API function call. It also demonstrates
how to convert the equivalent OS/2 API function calls needed
to do this with Win32 API functions.

In the sample, a child process is started whose standard
output and standard error handles have been redirected to an
anonymous pipe. The parent reads out of this pipe and puts
the data to both the console and to a log file specified on
the command line.

More Information:

The following is a list of the Win32 API functions used in
this sample:

   CloseHandle    CreateProcess  ReadFile       
   CreateFile     GetLastError   SetStdHandle   
   CreatePipe     GetStdHandle   WriteFile      




unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.